NAVIGATION
This shows you the differences between two versions of the page.
|
deutsch:ersetzer_rts:frontend_render:randomcp [2010/01/27 14:45] Claus |
deutsch:ersetzer_rts:frontend_render:randomcp [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 13: | Line 13: | ||
| Put the code in **/frontend_render/** (for example in a file called **random_cp.php**). | Put the code in **/frontend_render/** (for example in a file called **random_cp.php**). | ||
| <note tip>If the article content part contains replacement tags (for example {SITE}), they will not be replaced because code in /frontend_render/ is executed after those replacement tags already have been processed. To fix, put the code in content.article.inc.php instead. </note> | <note tip>If the article content part contains replacement tags (for example {SITE}), they will not be replaced because code in /frontend_render/ is executed after those replacement tags already have been processed. To fix, put the code in content.article.inc.php instead. </note> | ||
| - | |||
| ==== USAGE: ==== | ==== USAGE: ==== | ||
| - | **{RANDOMCP:article_id}** //(where article_id is the id of the ARTICLE).// | + | **{RANDOMCP:article_id}** //(article_id ist die ID des ARTIKELS).// |
| ==== RCS: ==== | ==== RCS: ==== | ||
| - | set article to invisible, but CPs to visible | + | Setze den Artikel auf "unsichtbar", die Content Parts jedoch auf "sichtbar" |