Category/article/cp -ids

data base:

phpwcms_articlecontent (ContentParts)
  • phpwcms_articlecontent.acontent_id = CP ID
  • phpwcms_articlecontent.acontent_aid = ID of the article in that the CP is


phpwcms_article (Article)
  • phpwcms_article.article_id = ID of the article
  • phpwcms_article.article_cid = ID of the category in that the article is


phpwcms_articlecat (Categories)
  • phpwcms_article.acat_id = ID of the category


During runtime:

$GLOBALS['aktion'][0];  = Category  ID (Output always)
$GLOBALS['aktion'][1];  = Article ID (Output only in article detail view)


All categories: → $content[“struct”]
All articles: → $content[“articles”]

dumpVar($GLOBALS['content']["struct"]);   // category structure
dumpVar($GLOBALS['content']["articles"]); // actual article structure
dumpVar(get_actcat_articles_data('54'));  // All articles behind the category with ID e.g. 54

See also: System variables

english/technics/system-variables/category-article-cp-ids.txt · Last modified: 2018/06/03 18:09 (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