[SOLVED] News detailtemplate doesn't work

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
romancho
Forum Members
Forum Members
Posts: 11
Joined: Sun Feb 08, 2009 9:52 pm

[SOLVED] News detailtemplate doesn't work

Post by romancho »

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>
Last edited by romancho on Wed Sep 12, 2012 10:01 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News detailtemplate doesn't work

Post by Dr.CSS »

You need to read the News modules Help, that is not how you call the detail template...
romancho
Forum Members
Forum Members
Posts: 11
Joined: Sun Feb 08, 2009 9:52 pm

Re: News detailtemplate doesn't work

Post by romancho »

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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News detailtemplate doesn't work

Post by Dr.CSS »

I see one thing that for sure doesn't belong...

<a href="{$entry->moreurl detailtemplate="tv"}"
Post Reply

Return to “CMSMS Core”