News Module Browsecat Help Needed

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

News Module Browsecat Help Needed

Post by applejack »

Hi

I am trying to use the News modules browsecat function so that it displays in 2 different ways.

The structure of the News Categories is:-

Marketing
    January 2008
    February 2008
    etc

Programs
    January 2008
    February 2008
    etc

I need 2 displays one with the list of children regardless of the parent and showing the total count for that child category

January 2008 (5)
February 2008 (2)

And the second display showing just the parent also showing the total count

Marketing (7)
Programs (4)

For both displays each will link to a page showing all the articles for that type of category.

A more complex News category structure would be to have 3 levels and in this case to also have the display for the years

Marketing
    2008
        January 2008
        February 2008
        etc
    2007
        January 2007
        February 2007
        etc

Programs
    2008
        January 2008
        February 2008
        etc
    2007
        January 2007
        February 2007
        etc
Last edited by applejack on Fri Feb 22, 2008 2:25 pm, edited 1 time in total.

Website Design & Production
http://www.applejack.co.uk
Pierre M.

Re: News Module Browsecat Help Needed

Post by Pierre M. »

Hello,

I don't understand why you divide with time. Aren't start date and end date builin news ? Couldn't you just have "Marketing" and "Programs" categories and use the category and the time as parameters of the {news ...} call ? Or is it impossible to mix parameters this way ?

Pierre M.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: News Module Browsecat Help Needed

Post by applejack »

Hi Pierrre

It makes sense to be able to categorise News in multiple ways for a user to be able to navigate i.e. by type and by date. This is I am told pretty standard way of doing it for Blogs.

Website Design & Production
http://www.applejack.co.uk
Pierre M.

Re: News Module Browsecat Help Needed

Post by Pierre M. »

Yes, of course, I understand it "makes sense to be able to categorise News in multiple ways for a user to be able to navigate i.e. by type and by date". My point was to try to use categories for the type and then use parameters of the {news ...} tag call (have you seen the help about it ?) to get the wished result (category xyz from start date to end date).

Pierre M.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: News Module Browsecat Help Needed

Post by applejack »

If one were able to pass the start and end dates to the browsecat function then yes it would be possible to do it the way you suggested but as the standard install you can't. I am sure that with some Smarty code in the browsecat template or the underlying code then this could be achieved.

Website Design & Production
http://www.applejack.co.uk
Post Reply

Return to “CMSMS Core”