This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
components-depending-on-the_page [2017/02/28 00:50] Timbow [Several Pages Each with Different Components] |
components-depending-on-the_page [2017/02/28 00:56] (current) Timbow [Several Pages Each with Different Components] |
||
---|---|---|---|
Line 13: | Line 13: | ||
else {get_component('mary');} ?> </code> | else {get_component('mary');} ?> </code> | ||
which in English reads | which in English reads | ||
- | **If** the page slug is //index// insert the component //peter//, **otherwise if** the page slug is //about// insert the component //paul// and **otherwise** just insert the component //mary//. | + | |
+ | >**If** the page slug is //index// insert the component //peter//, **otherwise if** the page slug is //about// insert the component //paul// and **otherwise** just insert the component //mary//. | ||