This is an old revision of the document!


Conditional Replacers

This makes it possible to show or hide code in dependance of having content or not. If no content no code is generated
This way our source code remains clean an will not be “polluted” by any empty and unneccessary stuff.

The Principle

damit das funktioniert, gibt es mehrere BasisWrapper Ein Beispiel von Oliver:

    <body>
        <header>
            <nav>{NAV_LIST_UL:BP}</nav>
    [HEADER]
            <section class="header-content">{HEADER}</section>
    [/HEADER]
        </header>
        <div class"main[LEFT] has-marginal-left[/LEFT][RIGHT] has-marginal-right[/RIGHT]">
    [LEFT]
            <section class="col-left">{LEFT}</section>
    [/LEFT]
            <article>
                {CONTENT}
            </article>
    [RIGHT]
            <section class="col-left">{RIGHT}</section>
    [/RIGHT]
        </div>
        <footer>
            <p>&copy; 2015 Whatever</p>
    [FOOTER]
            <section class="footer-content">{FOOTER}</section>
    [/FOOTER]
        </footer>
    </body>
english/phpwcms-system/admin/template/conditional_replacers.1423410565.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0