Page 1 of 1

News readmore link to bespoke details template

Posted: Wed Sep 08, 2010 6:49 pm
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.

Re: News readmore link to bespoke details template

Posted: Wed Sep 08, 2010 7:44 pm
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