Register   Login
     
  Latest Posts  
Module Development Techniques
by hchattaway on 11/23/2008 5:14 PM
Customizing the URL a little further
by tmahmud on 11/23/2008 4:11 PM
RE: Google Maps
by smcculloch on 11/23/2008 10:29 AM
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
RE: I cant get rss feeds to work correctly
by davidthomson on 11/22/2008 11:14 PM
  Forums  
Subject: Categories Question
Prev Next
You are not authorized to post a reply.

Author Messages
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


6/27/2005 4:39 PM  
I recently received this question from a member on this site and it's easier if I post it here.

I am using the News Article module and the i am facing a problem... I am having many categories (economy, politics, sports etc) and i also have a section with the main article of the day.

What i wanted is to be able to move the main article to one of the other categories.

The problem is that i added many times the News Article module and each of it has its categories, its articles etc. I mean that i can't move articles from one News Article module to other.

For this scenario you are best to only have one "instance" of the news articles module on your site and use the "Add Existing Module" option to add that same instance to various sections of your site. You can then filter each of those sections via a category.

I know some people that use the featured option to show article for the homepage and have seperate pages for each category.

Scott McCulloch
Site Administrator
Mike PhanouUser is Offline
Registered Users
Nuke Addict
Nuke Addict
Posts:61

6/27/2005 11:18 PM  
I will try that Scott, thanks!
Mike PhanouUser is Offline
Registered Users
Nuke Addict
Nuke Addict
Posts:61

6/28/2005 12:32 PM  
Posted By smcculloch on 6/27/2005 4:39:21 PM
I recently received this question from a member on this site and it's easier if I post it here.

I am using the News Article module and the i am facing a problem... I am having many categories (economy, politics, sports etc) and i also have a section with the main article of the day.

What i wanted is to be able to move the main article to one of the other categories.

The problem is that i added many times the News Article module and each of it has its categories, its articles etc. I mean that i can't move articles from one News Article module to other.

For this scenario you are best to only have one "instance" of the news articles module on your site and use the "Add Existing Module" option to add that same instance to various sections of your site. You can then filter each of those sections via a category.

I know some people that use the featured option to show article for the homepage and have seperate pages for each category.


Scott i tried that by i found out that i can only add an instance of a news articles module once in every tab. If i could add more than one it would be what i was looking for...
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


6/28/2005 3:34 PM  

Ah, because using "Add Existing Module" uses UpdateTabModuleSettings which is only unique to Tab/Module. Not sure how to get around that, hmm..

If there seperate modules it would work with launch links on.

You might have to use the Latest Articles module to achieve what you need and just have a central articles module somewhere on your site.


Scott McCulloch
Site Administrator
Dax DavisUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:328


6/29/2005 4:12 AM  
Scott, I have to admit the "add an existing module" stuff is pretty confusing for my clients (and me sometimes).  It would be cool if we had the ability to check a setting that says to use articles sitewide or not.  It would acheive the same effect in a little more stratightforward a way.  I would think you would then modify the queries to not pay attention to the module id.

Dax
Tom LucasUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:9

7/21/2005 1:31 PM  
Definately second that one!
Jack HoelzUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:810


7/21/2005 2:07 PM  
Because adding an "exisitng module "works so well with NewsArticles what I do is install an instance of the news article module on each clients site, then set the module to premium. If they want another instance of the module someplace the MUST add an existing module.

Get The Net!!

Jack Hoelz
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


7/21/2005 6:04 PM  
Posted By jhoelz on 7/21/2005 2:07:13 PM
Because adding an "exisitng module "works so well with NewsArticles what I do is install an instance of the news article module on each clients site, then set the module to premium. If they want another instance of the module someplace the MUST add an existing module.


Nice - I had not thought of using it like that..

Scott McCulloch
Site Administrator
Jack HoelzUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:810


7/22/2005 5:17 AM  

 It's almost too simple really! They control whats displayed in each instance by categories.

I have a site in development right now for some "Seniors" (the "webmaster" is 82) and I am controlling ALL of the dynamic content using the NewsArtilces and LatestNews modules. It's working fantastic. The categories are the pages they want the info displayed on. It's so simple!


Get The Net!!

Jack Hoelz
Tom LucasUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:9

7/22/2005 12:40 PM  

Jhoelz,

And you have that working on DNN 3.1? I'm getting errors when attempting to add another instance via the "Add existing module" option.

Also when I do, it is acting like a complete other installation of the module since the categories from the parent module never show up....

I'll keep looking.

Tom LucasUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:9

7/22/2005 12:51 PM  

On the copied instance I am getting the following:

Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.NullReferenceException: Object reference not set to an instance of an object. at DnnForge.NewsArticles.ucListing.LoadTemplates() at DnnForge.NewsArticles.ucListing.BindListing() at DnnForge.NewsArticles.ucNewsListing.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DnnForge.NewsArticles.NewsArticles.LoadControlType() at DnnForge.NewsArticles.NewsArticles.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

 

Any Ideas?

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


7/23/2005 2:41 AM  
Posted By lucast on 7/22/2005 12:51:17 PM

On the copied instance I am getting the following:

Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.NullReferenceException: Object reference not set to an instance of an object. at DnnForge.NewsArticles.ucListing.LoadTemplates() at DnnForge.NewsArticles.ucListing.BindListing() at DnnForge.NewsArticles.ucNewsListing.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DnnForge.NewsArticles.NewsArticles.LoadControlType() at DnnForge.NewsArticles.NewsArticles.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

 

Any Ideas?



Tom, anything peculiar about your installation? This is the first problem I've seen with the Add Existing Module functionality.

Do you just have a few categories defined, a few templates (standard?) and a few articles?


Scott McCulloch
Site Administrator
Jack HoelzUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:810


7/23/2005 5:14 AM  
Can you add any exisiting module?

Get The Net!!

Jack Hoelz
Tom LucasUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:9

7/23/2005 5:22 AM  

Scott,

Let's chalk it up to a fluke then I guess. It is a new DNN 3.1 installation using your 4.0.7 Articles. I'll drop the installation and try again. Funny, overnight I can now see the article but get same error trying to view the full article. I'll try again.

Jhoelz,

Yes I can add copies of other modules just fine.

 

You are not authorized to post a reply.
Forums > Modules > News Articles > Categories Question



ActiveForums 3.7