Differences

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

deutsch:ersetzer_rts:frontend_init:cp_trigger:cp-comment-output [2011/02/20 09:40]
Knut Heermann (flip-flop) created
deutsch:ersetzer_rts:frontend_init:cp_trigger:cp-comment-output [2018/06/03 18:09] (current)
Line 6: Line 6:
===== Beschreibung: ===== ===== Beschreibung: =====
 +
 +Wird der TAG **{CPCOMMENT}** im CP Text oder in einer Vorlage gesetzt, so wird an dieser Stelle der Inhalt des zugehörigen Kommentarfelds ausgegeben.
Die Klasse %%<span="cpcomment"> .... </span>%% wurde als Umschließer für die Kommentausgabe gesetzt. Die Klasse %%<span="cpcomment"> .... </span>%% wurde als Umschließer für die Kommentausgabe gesetzt.
Line 83: Line 85:
      if( in_array($data['acontent_id'], array(10,6,14,29)) ) { // is used only when the CP-filter is needed.       if( in_array($data['acontent_id'], array(10,6,14,29)) ) { // is used only when the CP-filter is needed.
             
-        // Replace the TAG and put a class around it.+        // Replaces the TAG and put a class around it.
        $text = str_replace("{CPCOMMENT}",       '<span class="cpcomment">'.$data['acontent_comment'].'</span>', $text);  // replace cp Comment         $text = str_replace("{CPCOMMENT}",       '<span class="cpcomment">'.$data['acontent_comment'].'</span>', $text);  // replace cp Comment
                 
deutsch/ersetzer_rts/frontend_init/cp_trigger/cp-comment-output.1298191202.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