Register   Login
     
  Latest Posts  
RE: Can'd add photo
by rsobari on 3/21/2010 10:17 AM
Tracking image/file clicks
by spirit on 3/21/2010 8:46 AM
Catcha doesnt seem to work
by chaloum on 3/20/2010 8:16 PM
RE: Recently created articles are not shown in list
by atriage on 3/20/2010 10:15 AM
RE: Recently created articles are not shown in list
by spirit on 3/20/2010 10:08 AM
RE: Introducing the most powerful News Slider for Ventrian News Articles
by jhoelz on 3/19/2010 9:29 PM
Rich Snippets for Review, Ratings etc!
by georgelew on 3/19/2010 7:49 PM
Recently created articles are not shown in list
by atriage on 3/19/2010 11:18 AM
RE: News Articles Tokens
by spirit on 3/19/2010 10:43 AM
Author post count and link in listing.item.html
by mattbunce on 3/19/2010 10:18 AM
  Forums  
Subject: how to use news article source with dnn source to change and compile whole source code?
Prev Next
You are not authorized to post a reply.

Author Messages
nafisehUser is Offline
Registered Users

Posts:25


6/28/2009 12:27 AM  

I want to use news article source with dotnetnuke source to change the source code.

I saw this article:

  1. Download your chosen module (both Private Assembly & Source Code)
  2. Install Private Assembly version via Host -> Module Definitions -> Upload New Module
  3. Extract the Source Code into a separate folder under desktop modules (e.g. LinkSource for the links module source)
  4. Update the module definitions of the module (Host -> Module Definitions) by modifying each control and change the source to point to your newly created source folder. Each control must point at its equivalent.
  5. Load up your project and start debugging!

 

I did these steps:

  1. I install dotnetnuke with its complete source code
  2. Then I install NewsArticles.00.07.39.zip to portal
  3. After that I extract NewsArticles.00.07.39.Source.zip and copy it into a separate folder called NewsArticlesSource under desktop modules
  4. In Host -> Module Definitions, I change all control to point to mentioned folder. For example I changed DesktopModules/ DnnForge - NewsArticles/NewsArticles.ascx to DesktopModules/NewsArticlesSource/NewsArticles.ascx and in each one of 4 module I changed the folder to NewsArticlesSource
  5. and I change the name of ex folders to see dotnetnuke call news article from source completely or not.

But there are something like templates and App_LocalResources and … which are using somethings in the ex folders. What should I do? I get some errors in rating even!

 

 

 

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


6/29/2009 7:53 AM  
What is ex folders?

Do you mean you get errors when building?

Scott McCulloch
Site Administrator
nafisehUser is Offline
Registered Users

Posts:25


6/29/2009 10:17 PM  

Hi Scott

I means 4 folders which were created when I install the news Articles module (ex folders -->previous folders):

DnnForge - LatestArticles, DnnForge - NewsArchives, DnnForge - NewsArticles, DnnForge - NewsSearch

The new folder under Desktop Module is NewsArticlesSource which I copied the complete source of news Article there.

I wanna use source of this module to trace it in visual studio 2005. Is there any document which shows how I do this step by step?

 

Regards

Nafiseh

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


6/29/2009 10:53 PM  
I normally expand the source into just one folder, e.g. DnnForge - NewsArticles, and update the module definitions to point to the controls in this folder (for the satellite modules).

There is no step by step document.

Scott McCulloch
Site Administrator
nafisehUser is Offline
Registered Users

Posts:25


7/04/2009 1:02 AM  

Do you mean When the new folder (which I copied source of module there) should have the same name as DnnForge - NewsArticles ?

Are the above-mentioned steps that I've done right?

Actually I can compile whole source but I can not trace it. It means that when I change code behind part of this module nothing happens. It's probable that it uses the previous dll's.

I'm checking to see what can I do about this.


Regards,

Nafiseh

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


7/06/2009 7:50 AM  
Are the assemblies publishing to DNN's bin folder? Are they updating?

Scott McCulloch
Site Administrator
nafisehUser is Offline
Registered Users

Posts:25


7/07/2009 10:26 PM  
No, they aren't. They don't update. Ventrian.NewsArticles.dll, Ventrian.NewsArticles.Secure.dll and Ventrian.NewsArticles.SqlDataProvider.dll are intact.

Is this happening because of the first installation of Private Assembly? or Should I do any special settings in visual studio to build the dlls again?

I know, I'm donig something wrong. Any idea?

Regards,
Nafiseh

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


7/07/2009 10:30 PM  
In your project settings in visual studio, change it to publish to the bin folder of DNN.

Scott McCulloch
Site Administrator
nafisehUser is Offline
Registered Users

Posts:25


7/11/2009 2:26 AM  

Hi Scott
I'm sorry for asking lots of question.

In a simple web application project, I can simply right click on project, choose properties and in compile section set "Build outputpath" to bin. But in dotnetnuke source, I couldn't find this option.  Its behaviour is like website not web application. You can see the property page in picture which is attached to this post.

On the other hand, in ventrian.newsarticle.vbproj I saw this line

<

 

OutputPath>..\..\bin\OutputPath>

So it means the out put path is set to bin

Could u help me?

One more question: can I compile the source of new article as a project?

 






nafisehUser is Offline
Registered Users

Posts:25


7/11/2009 10:46 PM  

Hi scott

I'm working with visual studio 2005. So I've changed the Ventrian.NewsArticles.vbproj file:

 

 

 

and used source of module in different solution then the ventrian.newsarticles.dll was built.

The next step is changing date format in archive to shamsi date.

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


7/13/2009 6:48 AM  
Great - is this working now?

Scott McCulloch
Site Administrator
nafisehUser is Offline
Registered Users

Posts:25


7/13/2009 10:05 PM  
Hi Scott

Yes, thanks. I can build it and trace it now. So I'm facing with new problems to learn your code.

Regards

Nafiseh
You are not authorized to post a reply.
Forums > Modules > News Articles > how to use news article source with dnn source to change and compile whole source code?



ActiveForums 3.7