NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:show_article_cp [2010/01/18 08:03] Knut Heermann (flip-flop) |
english:phpwcms_replacer_rts:frontend_render:show_article_cp [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 33: | Line 33: | ||
| Where **[X]** is the sort criterion e.g. **A{SHOW_CP} .... B{SHOW_CP} .... C{SHOW_CP} ....** | Where **[X]** is the sort criterion e.g. **A{SHOW_CP} .... B{SHOW_CP} .... C{SHOW_CP} ....** | ||
| - | Place this tag at first in comment field for correct sorting (If you need)!!! | + | :!: Place this tag at first in comment field for correct sorting (If you need) :!: |
| And -> CP status: [x] visible (Or change "acontent_visible" in script). | And -> CP status: [x] visible (Or change "acontent_visible" in script). | ||
| Line 159: | Line 159: | ||
| </code> | </code> | ||
| - | \\ | + | ~~UP~~ |
| ====== Update v1.1: Changing the sorting criterion ====== | ====== Update v1.1: Changing the sorting criterion ====== | ||
| 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''%%. | ||