calipso icon indicating copy to clipboard operation
calipso copied to clipboard

Override Default Templates by Content Type

Open cliftonc opened this issue 14 years ago • 1 comments

To enable content types to be really useful, we need to enable the over-ride of the default templates by type.

Default templates are:

modules/core/content/templates/list.html 
modules/core/content/templates/show.html

TODO:

Add new fields to content type;

listOverride : boolean listTemplate : string showOverride: boolean showTemplate : string

Modify content module so that it checks to see if the list or show over-ride is enabled for the given content type, and if so, use the template in the content type instead.

This may require re-factoring of the list.html to separate the iterator from the template - as the iterator will probably stay the same, but the template may differ (e.g. a list of content of different types needs to be dealt with).

cliftonc avatar Sep 30 '11 09:09 cliftonc

Link to issue #117, link to gist: https://gist.github.com/1252291

cliftonc avatar Sep 30 '11 09:09 cliftonc