NAVIGATION
This shows you the differences between two versions of the page.
deutsch:technik:systemvariablen:kategorie-artikel-cp-ids [2010/03/30 10:52] Knut Heermann (flip-flop) |
deutsch:technik:systemvariablen:kategorie-artikel-cp-ids [2018/06/03 18:08] (current) |
||
---|---|---|---|
Line 9: | Line 9: | ||
== phpwcms_articlecontent (ContentParts) == | == phpwcms_articlecontent (ContentParts) == | ||
- | * **phpwcms_articlecontent['acontent_id']** = ID des CPs | + | * **%%phpwcms_articlecontent.acontent_id%%** = ID des CPs |
- | * **phpwcms_articlecontent['acontent_aid']** = ID des Artikels in dem sich der CP befindet | + | * **%%phpwcms_articlecontent.acontent_aid%%** = ID des Artikels in dem sich der CP befindet |
\\ | \\ | ||
== phpwcms_article (Artikel) == | == phpwcms_article (Artikel) == | ||
- | * **phpwcms_article['article_id']** = ID des Artikels | + | * **%%phpwcms_article.article_id%%** = ID des Artikels |
- | * **phpwcms_article['article_cid']** = ID der Kategorie in der sich der Artikel befindet | + | * **%%phpwcms_article.article_cid%%** = ID der Kategorie in der sich der Artikel befindet |
\\ | \\ | ||
Line 22: | Line 22: | ||
- | * **phpwcms_article['acat_id']** = ID der Kategorie | + | * **%%phpwcms_article.acat_id%%** = ID der Kategorie |
\\ | \\ | ||
- | ====== ====== | ||
- | **Zur Laufzeit:** | + | |
+ | ===== Zur Laufzeit: ===== | ||
<code php> | <code php> | ||
- | $GLOBALS['aktion'][0]; = Kategorie ID | + | $GLOBALS['aktion'][0]; = Kategorie ID (wird immer ausgegeben) |
- | $GLOBALS['aktion'][1]; = Artikel ID | + | $GLOBALS['aktion'][1]; = Artikel ID (Ausgabe nur im Artikeldetail- nicht im Listen-Modus) |
</code> | </code> | ||
+ | |||
+ | \\ | ||
+ | Alle Kategorien: -> ##%%$content["struct"]%%## \\ | ||
+ | Alle Artikel: -> ##%%$content["articles"]%%## \\ | ||
+ | <code php> | ||
+ | dumpVar($GLOBALS['content']["struct"]); // Ebenen-Struktur | ||
+ | dumpVar($GLOBALS['content']["articles"]); // Aktuelle Artikel-Struktur | ||
+ | dumpVar(get_actcat_articles_data('54')); // Alle Artikel in der Kategorie mit der ID z.B. 54 | ||
+ | </code> | ||
Siehe hierzu auch: [[deutsch/technik/systemvariablen]] | Siehe hierzu auch: [[deutsch/technik/systemvariablen]] | ||