NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:wrap_show_contentx [2011/01/20 13:58] Knut Heermann (flip-flop) |
english:phpwcms_replacer_rts:frontend_render:wrap_show_contentx [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 27: | Line 27: | ||
| **- 04.04.2010 KH:** Improvement over the original: If you are running SHOW_CONTENT from [PHP]... now [PHP-Code] in articles/CPs can be addressed a second time with this tag. \\ | **- 04.04.2010 KH:** Improvement over the original: If you are running SHOW_CONTENT from [PHP]... now [PHP-Code] in articles/CPs can be addressed a second time with this tag. \\ | ||
| **- 05.03.2010 KH:** Parses all system RTs and mailto: conversion for JS-eMail address. \\ | **- 05.03.2010 KH:** Parses all system RTs and mailto: conversion for JS-eMail address. \\ | ||
| - | **- 19.01.2011 KH:** Parsing of SHOW_CONTENT when in a embedded CP this RT appears a second time. | + | **- 19.01.2011 KH:** Parsing of SHOW_CONTENT when in embedded CPs this RT appears a second time. |
| \\ | \\ | ||
| Line 323: | Line 323: | ||
| // +KH 19.01.11 parse SHOW_CONTENT a second time | // +KH 19.01.11 parse SHOW_CONTENT a second time | ||
| - | if (strpos($string, '{SHOW_CONTENT:') != false) | + | while (strpos($string, '{SHOW_CONTENT:') != false) |
| $string = preg_replace('/\{SHOW_CONTENT:(.*?)\}/e', 'showSelectedContent("$1");', $string); | $string = preg_replace('/\{SHOW_CONTENT:(.*?)\}/e', 'showSelectedContent("$1");', $string); | ||