-
Notifications
You must be signed in to change notification settings - Fork 13
create:template
Rob Sanchez edited this page Mar 7, 2015
·
4 revisions
Create a new template. If the template group does not already exist, it will be created.
$ eecli create:template <template>
Template name (ex. site/index site/test)
Use stdin as template contents.
Enable PHP.
Parse PHP on input.
Cache for X seconds.
Protect javascript.
Template Notes.
Type. Default: webpage.
Create a template
$ eecli create:template site/index
Multiple templates
$ eecli create:template site/index site/foo
With php enabled
$ eecli create:template --php site/index
With php enabled on input
$ eecli create:template --php --input site/index
With caching on (for 300 seconds)
$ eecli create:template --cache=300 site/index
Protect javascript
$ eecli create:template --protect_js site/index
Set a type: webpage, feed, css, js, static, xml
$ eecli create:template --type=xml site/index
- create:category
- create:category_group
- create:channel
- create:field:<fieldtype>
- create:field_group
- create:global_variable
- create:member
- create:member_group
- create:snippet
- create:status
- create:status_group
- create:template
- create:template_group
- create:upload_pref