Different news category for each page [Solved]

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
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Different news category for each page [Solved]

Post by starbits »

Hi all,

I am working on my first CMSMS site and what I want to do is have the right column of each of my pages be news.  But I don't want the same news articles on every page.  I figured I would create a template with {news category="{title}"} and then I could simply put the articles I want on each page by putting them into the appropriate news categories.  Unfortunately nesting tags this way does not work.

I could also create a separate template for each page, but the only thing different in the entire template would be {news category="Services"} versus {news category="Clients"}, and I would have to do one template for each page, which is tacky.

Is there a better way to do this?

Thanks,
Steve
Last edited by starbits on Wed Oct 10, 2007 12:56 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Different news category for each page

Post by calguy1000 »

{news category=$page_alias}
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.
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: Different news category for each page

Post by starbits »

Perfect! Thanks.

I also just found your Get_Template_Vars which would have helped had I looked at it earlier:
http://wiki.cmsmadesimple.org/index.php ... plate_vars

Thanks again,
Steve
Last edited by starbits on Wed Oct 10, 2007 1:04 am, edited 1 time in total.
Post Reply

Return to “CMSMS Core”