Content Widgets Screencast Demo

editaddcontenteditaddcontenteditaddcontenteditaddcontent 

How many content area can I put on a template?
You can create as many content widget as you want in a template

How can I create Content Areas?
To create a content widget simply put:
{%content:name-of-content-area}

Where do I put these content areas?
anywhere you want to be able to add content for this page.

Give me some code example to add these content areas to my templates:
EX: {%content:left-top} or {%content:1} or {%content:xyz} etc..

editadd-staticeditadd-staticeditadd-staticeditadd-static 

Why do you call it "static" content?
Whatever you put in this content widget will appear on EVERY PAGE that uses this static content widget.

Why would I use this for?? Same content on every page?
A good example would be your footer text. it appears on every page.

Give me some code example to add these content areas to my templates:
to add a footer just add: {%static:footer}

editadd-headereditadd-headereditadd-headereditadd-header 

Why did you create a header widget when we already have the content widget?
The content widget opens a very fancy editor allowing for HTML editing and all. We wanted the header to W3C compliant every time, so this is why we added this widget that opens a one line text field, nothing else than text can be added.

Give me some code example to add these header areas to my templates:
to add an h2 header for example just add: <h2>{%header:xyz}</h2>

editadd-static-header editadd-static-header editadd-static-header editadd-static-header  

Why do you call it "static" header?
Whatever you put in this content widget will appear on EVERY PAGE that uses this static header widget.

Why would I use this for?? Same header on every page?
A good example would be your header text. it appears on every page.

Give me some code example to add these headers to my templates:
to add a header just add: {%staticheader:siteName}

editadd-codeeditadd-codeeditadd-codeeditadd-code 

What do you mean? I can add PHP code from the front?
Yes, you can add scripts right there in the front. But pay attention! This is an advanced feature and you should know what you are doing when using it.

Why would I want to use this feature?
Maybe as a quick shortcut to pull data from a database, use the "include" php function to bring up the latest statistics from a message board??

Is there any thing else I should know?
Yes! When entering PHP code in this area, do not use <?php ---  ?> Enter your code without the PHP markup.

Give me some code example to add these header areas to my templates:
to add an h2 header for example just add: <h2>{%code:xyz}</h2>