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
Different news category for each page [Solved]
Different news category for each page [Solved]
Last edited by starbits on Wed Oct 10, 2007 12:56 am, edited 1 time in total.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Different news category for each page
{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.
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.
Re: Different news category for each page
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
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.

