Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]Yorick Peterse[/eluser]
[quote author="Phil Sturgeon" date="1248104806"]Exactly. How do we add a widget area into a page?[/quote]

Specify which areas are available for the current template (so you can choose one of them in the backend):

areas.json (stored in the current template)

Code:
{"area1","area2"}

In your template, add something like the following :

Code:
<div id="sidebar">
    &lt;?php $this->widgets->load('area1'); ?&gt;
</div>

That will load all widgets for area 1


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 07-20-2009, 06:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB