Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Override Default Templates by Content Type #119

Open
cliftonc opened this issue Sep 30, 2011 · 1 comment
Open

Override Default Templates by Content Type #119

cliftonc opened this issue Sep 30, 2011 · 1 comment

Comments

@cliftonc
Copy link
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
Copy link
Owner Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant