[solved] show newsbox only if news page is active
Posted: Sat Dec 22, 2012 8:29 pm
Hello fellow CMSMS'ers
I hope this is the right place to ask. Recently it has become a bit difficult to understand all the forum categories.
Well. I have a news page on a website where not many news will be posted. So we will deactivate the news page if nothing important is going on. My idea is to also have a newsbox showing on the start page, but only if the news page is active.
I thought I could simply make a tag on the start page, like this: {menu includeprefix="news" template="newsbox"} and make a {news} tag in the "newsbox" menu template. But it did not work, so obviously a menu template has no access to {news}.
Maybe I need to put in a smarty code on the startpage, which works like: if menu item "news" == active, show {news summarytemplate="x"}
But I know not enough about smarty. Can someone help me with this? Or other recommendations?
Thank you,
Thom
I hope this is the right place to ask. Recently it has become a bit difficult to understand all the forum categories.
Well. I have a news page on a website where not many news will be posted. So we will deactivate the news page if nothing important is going on. My idea is to also have a newsbox showing on the start page, but only if the news page is active.
I thought I could simply make a tag on the start page, like this: {menu includeprefix="news" template="newsbox"} and make a {news} tag in the "newsbox" menu template. But it did not work, so obviously a menu template has no access to {news}.
Maybe I need to put in a smarty code on the startpage, which works like: if menu item "news" == active, show {news summarytemplate="x"}
But I know not enough about smarty. Can someone help me with this? Or other recommendations?
Thank you,
Thom