Page 1 of 1

Two different templates for news details!

Posted: Sat Oct 17, 2020 9:35 am
by darchik
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!

Re: Two different templates for news details!

Posted: Sat Oct 17, 2020 2:27 pm
by DIGI3
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

Re: Two different templates for news details!

Posted: Tue Apr 04, 2023 9:43 am
by (M)
Set some quotes around the detailtemplate name to get the correct detailtemplate:

Code: Select all

{cms_module_hint module=News detailtemplate='my_detail_template'}
With Pretty urls active.