News Module - Summary Template Editor

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
avon_g

News Module - Summary Template Editor

Post by avon_g »

I cant seem to find any reference anywhere about the Summary Template Editor in the News Module.
I can see and edit the "Sample" Template and add new ones but i cant seem to find anywhere that
these templates are then used....

TIA
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: News Module - Summary Template Editor

Post by RonnyK »

If you go to "Content -> News -> Summary template", you'll see that below the textarea, all listed templates are available. On of them has the mark "default". If you don't give a parameter for a specific template, this is the one being pulled.

Ronny
avon_g

Re: News Module - Summary Template Editor

Post by avon_g »

can you advise as to where the parameter for a specific template goes....this is the problem I am having
TIA
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: News Module - Summary Template Editor

Post by RonnyK »

From the help,
(optional) summarytemplate="sometemplate.tpl" - Use a separate template for displaying the article summary. It have to live in modules/News/templates.
(optional) detailtemplate="sometemplate.tpl" - Use a separate template for displaying the article detail. It have to live in modules/News/templates.
I think that you don't need the ".tpl" at the end anymore, as they are no files anymore, but stored in the DB. So call the news with something like:

Code: Select all

{news summarytemplate="yournondefaulttemplate" }
Ronny
Locked

Return to “Layout and Design (CSS & HTML)”