Hello,
i tried to use not default detailtemplate on site, but news are opening with custom detailtemplate.
I tried to clean cache both on site and computer, but problem still exists.
CMS MS 1.10.3
<td class="afisha-list-name-2"><a href="{$entry->moreurl detailtemplate="tv"}" class="afisha-list-name-link">{$entry->title|cms_escape}</a></td>
[SOLVED] News detailtemplate doesn't work
[SOLVED] News detailtemplate doesn't work
Last edited by romancho on Wed Sep 12, 2012 10:01 pm, edited 1 time in total.
Re: News detailtemplate doesn't work
You need to read the News modules Help, that is not how you call the detail template...
Re: News detailtemplate doesn't work
I tried again and again.
I read help several times. But it still doesn't work.
So when I open this page - http://kazan.romanovlab.ru/index.php?page=milo-tv - template is ok.
But when I try to open any sub-page of the category - it opens default template for news.
So - this is how I call template from page:
{news articleid=5 action="detail" category="tv" detailtemplate="tv" summarytemplate="tv"}
And here - how I call it from summarytemlate - <td class="afisha-list-name-2"><a href="{$entry->moreurl detailtemplate="tv"}" class="afisha-list-name-link">{$entry->title|cms_escape}</a></td>
I haven't found in help what I do wrong with calling detailtemplate - where is my mistake?
And another thing.
I have two almost similar pages, and code also the same on it.
But on the first one (http://kazan.romanovlab.ru/index.php?page=guest-stars-2) ascending order works, and on another (http://kazan.romanovlab.ru/index.php?page=top-artists) - no.
Why can it be so?
Maybe problems with cash or staff like this?
I read help several times. But it still doesn't work.
So when I open this page - http://kazan.romanovlab.ru/index.php?page=milo-tv - template is ok.
But when I try to open any sub-page of the category - it opens default template for news.
So - this is how I call template from page:
{news articleid=5 action="detail" category="tv" detailtemplate="tv" summarytemplate="tv"}
And here - how I call it from summarytemlate - <td class="afisha-list-name-2"><a href="{$entry->moreurl detailtemplate="tv"}" class="afisha-list-name-link">{$entry->title|cms_escape}</a></td>
I haven't found in help what I do wrong with calling detailtemplate - where is my mistake?
And another thing.
I have two almost similar pages, and code also the same on it.
But on the first one (http://kazan.romanovlab.ru/index.php?page=guest-stars-2) ascending order works, and on another (http://kazan.romanovlab.ru/index.php?page=top-artists) - no.
Why can it be so?
Maybe problems with cash or staff like this?
Re: News detailtemplate doesn't work
I see one thing that for sure doesn't belong...
<a href="{$entry->moreurl detailtemplate="tv"}"
<a href="{$entry->moreurl detailtemplate="tv"}"