News readmore link to bespoke details template

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
sonia
New Member
New Member
Posts: 2
Joined: Tue Jul 27, 2010 11:54 am

News readmore link to bespoke details template

Post by sonia »

I am trying to send a readmore link on the News Summary template to a custom details template.  My developer is away and I'm having issues with the syntax.  Any help would be appreciated.

This completely breaks the summary page :(

{/if}
{foreach from=$items item=entry}



{$entry->title|cms_escape} moreurl|detailtemplate:funding}" title="Read more about {$entry->title|cms_escape:htmlall}">Read more »



{/foreach}


I think the smart tag would include: detailtemplate="funding"

but not sure how to integrate with the summary page template.  Any help would be appreciated. thanks.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: News readmore link to bespoke details template

Post by RonnyK »

Sofia,

the default summary template has logic inside, that calls the more-link.

When calling news, like {news detailtemplate="some-template"} then it knows what detailtemplate to open after clicking more-link in summary.... This is only needed if another detailtemplate then the default should be opened.

Parameter are available for moretext f.e. if you want another label there.

Ronny
Post Reply

Return to “CMSMS Core”