How to link to different detailpages in {news}

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.
Jacob B

Re: How to link to different detailpages in {news}

Post by Jacob B »

That I know, but the question is how to sort the items when they separate in categories automatically, because I'm calling the news module two times now. Currently I use this use this:

{news number='3' category="1" detailpage="1news"}
{news number='3' category="2" detailpage="2news" }

Resulting in:

item1 - category1 - date_new
item2 - category1 - date_older
item3 - category1 - date_oldest
item4 - category2 - date_new
item5 - category2 - date_older
item6 - category2 - date_oldest

But I want this, while I need to keep the possibility of having different detailpages for the two categories:

item1 - category1 - date_new
item4 - category2 - date_new
item2 - category1 - date_older
item5 - category2 - date_older
item3 - category1 - date_oldest
item6 - category2 - date_oldest
Last edited by Jacob B on Mon Oct 15, 2007 8:00 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How to link to different detailpages in {news}

Post by calguy1000 »

There isn't much you can do here IMHO without a code modification.  There is currently no way of assigning extra attributes to a category, such as 'which detailpage' to use.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”