NAVIGATION
This shows you the differences between two versions of the page.
deutsch:ersetzer_rts:frontend_render:randomcp [2010/01/27 14:44] Claus |
deutsch:ersetzer_rts:frontend_render:randomcp [2018/06/03 18:09] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
FIXME übersetzen | FIXME übersetzen | ||
- | Zeigt einen zufällig ausgewählten Content Part aus einem vorgewählten Artikel (Du gibtst die Artikel-ID ein den Ersetzer ein - es wird ein Zufallsinhaltsabschnitt aus dem Artikel angezeigt. Simpel, nicht wahr?) | + | Zeigt einen zufällig ausgewählten Content Part aus einem vorgewählten Artikel (Du gibtst die Artikel-ID in den Ersetzer ein - es wird ein Zufallsinhaltsabschnitt aus dem Artikel angezeigt. Simpel, nicht wahr?) |
AUTHOR: Jens Zetterström | AUTHOR: Jens Zetterström | ||
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" |