In the Azure theme, the primary page layout (page.tpl + base.tpl) takes
advantage of an array-based capture variable:

[{capture append="oxidBlock_pageBody"}]
.
.
.
[{/capture}]

This is perfect for extending the main page as the oxidBlock_pageBody
capture variable is just waiting to be appended to with built-in or custom
additions...  Except I don't think this ever happens.  The
oxidBlock_pageBody only ever seems to get one append (not really appended,
just assigned a value).

The base.tpl is already set up with a foreach loop to output multiple
blocks of the oxidBlock_pageBody variable, yet it will only ever loop
once.  When I first saw this foreach loop I was expecting to find something
along the lines of...

[{capture append="oxidBlock_pageBody"}]
    [{block name="page_addons"}][{/block}]
[{/capture}]

This would have made it really easy to add widgets to the main page layout
(social widgets, sidebars, popups, etc.) with a simple block override, and
never affecting any template files.

Just thought it strange to have all this functionality built-in, but no way
to take advantage of it.  If others agree, maybe an override-able capture
block could be added to a future release.  And the same could apply to
other capture+append usage as well (e.g. pageHead).

Kind regards,
Shaun.
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to