Differences

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

english:phpwcms_replacer_rts:frontend_render:show_article_cp [2010/01/18 08:10]
Knut Heermann (flip-flop)
english:phpwcms_replacer_rts:frontend_render:show_article_cp [2018/06/03 18:09] (current)
Line 306: Line 306:
?> ?>
</code> </code>
 +
 +~~UP~~
 +\\
 +
 +===== For programmers: =====
 + 
 +
 +<note tip>
 + 
 +**The basic routine to determine the IDs of all items in a category:**
 +<code php>
 +   $article = array();
 +  
 +   foreach($GLOBALS['content']['articles'] as $value) {
 +      $article[] = $value['article_id'];
 +   }
 +
 +   if(count($article)) {
 +      ........
 +
 +</code>
 +\\
 +
 +**The ID of the current article:**
 +<code php>
 +$GLOBALS['aktion'][1];
 +</code>
 +\\
 +If the IDs of the CPs of an article are required, they must be read from the DB. CP-IDs are not held in the parent hierarchy, in this case the articles. \\
 +The routine for this is shown in the RT.
 +
 +Interesting for this is the inserted tag {SHOW_CONTENT:....} and/or the function
 +<code php>function showSelectedContent($param='') { ...</code>
 +in %%''/include/inc_front/ext.func.inc.php''%%.
english/phpwcms_replacer_rts/frontend_render/show_article_cp.1263798627.txt.gz · Last modified: 2018/06/03 18:08 (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