NAVIGATION
This shows you the differences between two versions of the page.
|
deutsch:ersetzer_rts:frontend_init:cp_trigger:cp-bilder-spezial-count-img [2011/03/23 12:10] Knut Heermann (flip-flop) |
deutsch:ersetzer_rts:frontend_init:cp_trigger:cp-bilder-spezial-count-img [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Mit diesem kleinen Script wird die Anzahl der Bilder des CPs "Bilder spezial" ermittelt und das Ergebnis am Platzhalter **%%[%IMG_COUNT%]%%** im CP-Template eingesetzt. | Mit diesem kleinen Script wird die Anzahl der Bilder des CPs "Bilder spezial" ermittelt und das Ergebnis am Platzhalter **%%[%IMG_COUNT%]%%** im CP-Template eingesetzt. | ||
| + | |||
| Line 43: | Line 44: | ||
| function CP_IMGSPECIAL_count_img ($text, & $data) { | function CP_IMGSPECIAL_count_img ($text, & $data) { | ||
| - | if($data['acontent_type'] == 31 AND strpos($text, '<!--img_special_count//-->') ) { // 31 is CP img special | + | if($data['acontent_type'] == 31 AND strpos($text, '[%IMG_COUNT%]') ) { // 31 is CP img special |