Hello!
News module: Can't customize custom template for news details.
What am I doing wrong?
Example
{news category=Way summarytemplate="NewsSummaryWay" summarypage='trips' detailtemplate="NewsDetailWay" detailpage='trips'}
1. summary template - works, detailpage - works!
2. detail template - doesn't work! ((
I have two sections on the site: news and travel. These are different categories of news.
For the site news, I already use other templates for the summary display and for the news detail. News templates are installed by default and work fine.
Thanks for the help!
Two different templates for news details!
Re: Two different templates for news details!
I think it's to do with the parameter not being passed when using pretty urls. In your summary template detail page(s), you could try using {cms_module_hint} in the Smarty data field to set the appropriate detailtemplate - see https://docs.cmsmadesimple.org/tags/cms ... odule_hint
Not getting the answer you need? CMSMS support options
Re: Two different templates for news details!
Set some quotes around the detailtemplate name to get the correct detailtemplate:
With Pretty urls active.
Code: Select all
{cms_module_hint module=News detailtemplate='my_detail_template'}