Placeholders used to substitute html block after page/component inheritance. Mark html block with <haq:placeholder> tag and use <haq:content> to override it (ID must be same for both tags).

src/pages/layout/template.html file:

        <div class="header"> ... </div>
        <div class="content">
            <haq:placeholder id="myContent">
                Default html block. This is layout page.
        <div class="footer"> ... </div>

src/pages/index/template.html file:

<haq:content id="myContent">
    Overrided html block. This is index page.

Example above assume index page extends layout page, so you have in src/pages/index/config.xml file:

    <extends component="pages.layout" />

version #205, modified 2013-02-01 02:03:04 by yar3333