NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms-system:admin:template:conditional_replacers [2015/02/10 18:34] Claus |
english:phpwcms-system:admin:template:conditional_replacers [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 51: | Line 51: | ||
| ===== Want some examples? ===== | ===== Want some examples? ===== | ||
| - | really? Here is the first, very simple\\ | + | ==== LEFT visible? ==== |
| + | |||
| + | really? Here is the first, very simple (corrected by Oliver ;) )\\ | ||
| <code html> | <code html> | ||
| [LEFT] | [LEFT] | ||
| - | <div class="col-md-3"> | + | <div class="col-md-3"> |
| - | {LEFT} | + | {LEFT} |
| - | </div> | + | </div> |
| - | <div class="col-md-9"> | + | |
| - | {CONTENT} | + | |
| - | </div> | + | |
| [/LEFT ] | [/LEFT ] | ||
| - | [LEFT_ELSE] | + | <div class="col-md-[LEFT]9[/LEFT][LEFT_ELSE]12[/LEFT_ELSE]"> |
| - | <div class="col-md-12"> | + | {CONTENT} |
| - | {CONTENT} | + | </div> |
| - | </div> | + | |
| - | [/LEFT_ELSE] | + | |
| </code> | </code> | ||
| What does it do? Right what it should: in case {LEFT} has no content the main content will expand to 12 columns. Otherwise there is a column 3 and column 9 (bootstrap) | What does it do? Right what it should: in case {LEFT} has no content the main content will expand to 12 columns. Otherwise there is a column 3 and column 9 (bootstrap) | ||
| + | |||
| + | |||
| + | ==== LEVEL1_ID visible? ==== | ||
| + | by Oliver [[forum.phpwcms.org/viewtopic.php?f=16&t=24638|Forum]] | ||
| + | <code html> | ||
| + | [LEFT] | ||
| + | <div class="col-md-3"> | ||
| + | [LEVEL1_ID]{NAV_LIST_UL: F, {LEVEL1_ID} , , act_path , active } [/LEVEL1_ID] | ||
| + | {LEFT} | ||
| + | </div> | ||
| + | [/LEFT ] | ||
| + | <div class="col-md-[LEFT]9[/LEFT][LEFT_ELSE]12[/LEFT_ELSE]"> | ||
| + | {CONTENT} | ||
| + | </div> | ||
| + | </code> | ||
| + | |||
| + | ==== Level there? ==== | ||
| + | <code> | ||
| + | [IF_CAT:28,29,30]<!-- whatever -->[/IF_CAT] | ||
| + | [IF_NOTCAT:0,1,2]<!-- whatever -->[/IF_NOTCAT] | ||
| + | </code> | ||