Template snippets

Mar 15, 2013

Another 1.2 addition, snippets gives editors control over content that might otherwise be hidden away in templates, or needs to be used in multiple places but only edited once.

 Usage is pretty simple, in Admin > Content > Snippets, create a new chunk of HTML using the editor, give it a short, memorable name, and save.

Now, either in your template, or in your page content, or even inside another snippet (just don't use a snippet inside itself or you'll find yourself in an infinite recursion loop!) put

[[snippet:the name you gave it above]]

That's it!

It's not a major feature.. but if you would like clients to be able to easily edit/tweak/update things like their footer contact details it may prove quite handy. 

Tom

Your Comments

post a comment