Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Override Default Templates by Content Type #119

Open
cliftonc opened this Issue · 1 comment

1 participant

@cliftonc
Owner

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
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.