You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file shows the templates provided by the "default" theme. This could be used as a guide to know the default provided variables or to just copy+paste the base template to build your own placed on your app or custom package.
All templates shares the following naming convension CT_[endpoint_key]_[theme_name]_[display_name].
The provided templates are used to build Content Type specific templates adding the content type id (ctid) at the end of the template name like CT_[endpoint_key]_[theme]_[display]_[ctid].
This way you could extend any of the template layers depending your use case.
Shared template helpers
The following keys will be available on all display templates (not on wrapper templates) by default.
meta.title: (String) the page title.
meta.summary: (String) some description.
meta.help: (String) some useful guidelines.
ct.pathTo.[endpoint_key]: (String) the name of the route for each endpoint (useful to write links dynamically using {{pathFor route='ct.pathTo.index'}}).
ct.fields: (Object) array of the fields specified in the collection's schema.
ct.labels: (Object) key-value labels.
Templates
List of Meteor templates provided with the default theme.
template: a reactive var containing the name of the display to be rendered. You could update this display without running the route again by doing MyAwesomeContentType.setDisplay('index', 'new-display');.
template: a reactive var containing the name of the display to be rendered. You could update this display without running the route again by doing MyAwesomeContentType.setDisplay('index', 'new-display');.
template: a reactive var containing the name of the display to be rendered. You could update this display without running the route again by doing MyAwesomeContentType.setDisplay('index', 'new-display');.
template: a reactive var containing the name of the display to be rendered. You could update this display without running the route again by doing MyAwesomeContentType.setDisplay('index', 'new-display');.
template: a reactive var containing the name of the display to be rendered. You could update this display without running the route again by doing MyAwesomeContentType.setDisplay('index', 'new-display');.