Differences

This shows you the differences between two versions of the page.

deutsch:ersetzer_rts:frontend_render:randomcp [2009/06/15 09:13]
Knut Heermann (flip-flop)
deutsch:ersetzer_rts:frontend_render:randomcp [2018/06/03 18:09] (current)
Line 1: Line 1:
-{{indexmenu_n>720}} +{{indexmenu_n>800}}
====== RANDOMCP ====== ====== RANDOMCP ======
FIXME übersetzen FIXME übersetzen
-Shows a random content part from within a given article (you supply the article ID - it show a random content part from within that article)+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 14: 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.1245050034.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