Differences

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

deutsch:ersetzer_rts:frontend_render:wrap-article-list [2010/02/24 02:28]
Knut Heermann (flip-flop)
deutsch:ersetzer_rts:frontend_render:wrap-article-list [2018/06/03 18:09] (current)
Line 7: Line 7:
Dazu werden im jeweiligen Template zwei neue Tags benötigt **%%<!--ARTICLEX_ENTRY//-->%%** und **%%<!--ARTICLEX_END//-->%%**. Dazu werden im jeweiligen Template zwei neue Tags benötigt **%%<!--ARTICLEX_ENTRY//-->%%** und **%%<!--ARTICLEX_END//-->%%**.
 +
 +Eingebaute Alternative //(seit V1.3.3 2007-05-18)//: [[deutsch/phpwcms-system/artikel#wrapper_fuer_artikellisten_-und_detaildarstellung|Wrapper für Artikellisten -und Detaildarstellung:]]
\\ \\
Line 138: Line 140:
$_suffix = '</div>'; // behind articles-list $_suffix = '</div>'; // behind articles-list
$_a_entry = '<!--ARTICLEX_ENTRY//-->'; $_a_entry = '<!--ARTICLEX_ENTRY//-->';
- $_a_end = '<!--ARTICLEX_END//-->';+ $_a_end = '<!--ARTICLEX_END//-->';
// ----------------------------------------------- // -----------------------------------------------
// reverting for faster replace // reverting for faster replace
- $_a_end = strrev($_a_end);+ $_a_end = strrev($_a_end);
$_suffix = strrev($_suffix); $_suffix = strrev($_suffix);
// make a regex like pattern // make a regex like pattern
$_a_entry = preg_quote($_a_entry, '/'); $_a_entry = preg_quote($_a_entry, '/');
- $_a_end = preg_quote($_a_end, '/');+ $_a_end = preg_quote($_a_end, '/');
Line 160: Line 162:
$content["all"] = preg_replace('/'.$_a_end.'/',$_suffix.LF,$content["all"],1); $content["all"] = preg_replace('/'.$_a_end.'/',$_suffix.LF,$content["all"],1);
$content["all"] = strrev($content["all"]); $content["all"] = strrev($content["all"]);
 +
} }
?> ?>
</code> </code>
deutsch/ersetzer_rts/frontend_render/wrap-article-list.1266974915.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