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:08] Knut Heermann (flip-flop) created |
deutsch:ersetzer_rts:frontend_init:cp_trigger:cp-bilder-spezial-count-img [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Bilder spezial: Anzahl Bilder ====== | ====== Bilder spezial: Anzahl Bilder ====== | ||
| - | **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 |