Differences

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"
deutsch/ersetzer_rts/frontend_render/randomcp.1264599899.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