NAVIGATION
This shows you the differences between two versions of the page.
|
english:technics:system-variables [2010/09/26 18:25] Claus |
english:technics:system-variables [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 110: | Line 110: | ||
| // top article count for article list mode in site structure -> category -> top article count: | // top article count for article list mode in site structure -> category -> top article count: | ||
| dumpVar($GLOBALS['content']['struct'][$content['cat_id']]['acat_topcount']; // (count) | dumpVar($GLOBALS['content']['struct'][$content['cat_id']]['acat_topcount']; // (count) | ||
| + | |||
| + | // Article title of the current article (detail mode) | ||
| + | dumpVar($GLOBALS['content']['article_title']); | ||
| + | |||
| + | // Article subtitle of the current article (detail mode) | ||
| + | dumpVar($GLOBALS['content']['articles'][$GLOBALS['content']['article_id']]['article_subtitle']); | ||
| [/PHP] | [/PHP] | ||
| Line 127: | Line 133: | ||
| The variable ##$content['all_keywords']## //(or ##$GLOBALS['content']['all_keywords']## if used in functions )// supplies the Keywords of the current article. | The variable ##$content['all_keywords']## //(or ##$GLOBALS['content']['all_keywords']## if used in functions )// supplies the Keywords of the current article. | ||
| - | E.g.: //Forum [[http://forum.phpwcms.org/viewtopic.php?p=120863#p120863|Css eines Artikels ändern]]// [DE] | + | **E.g.:** Write the keywords into an array: |
| - | A special CSS formatting for an article: | + | <code php> |
| + | $keywords_array = convertStringToArray($GLOBALS['content']['all_keywords']); | ||
| + | </code> | ||
| - | **Question:** \\ | + | \\ |
| - | //"If I liked to indicate a special css for only one article , where will I do that? | + | |
| + | |||
| + | |||
| + | **E.g.:** //Forum [[http://forum.phpwcms.org/viewtopic.php?p=120863#p120863|Css eines Artikels ändern]]// [DE] | ||
| + | |||
| + | A special CSS formatting for an article: | ||
| - | For explanation, I would like to have individual articles with a dark instead of a bright page background." // | + | > **Question:** \\ |
| + | > //"If I liked to indicate a special css for only one article , where will I do that? | ||
| + | > | ||
| + | > For explanation, I would like to have individual articles with a dark instead of a bright page background." // | ||
| - | **Answer:** \\ | + | > **Answer:** \\ |
| - | //"I would work with a special keyword by using a frontend_render script to trigger it accordingly. | + | > //"I would work with a special keyword by using a frontend_render script to trigger it accordingly. |
| Set the keyword "*CSS-dark*" into the appropriate fiel dof the article. When rendering is checked out the <body> tag is enhanced by the corresponding class. This normally can be defined via CSS."// | Set the keyword "*CSS-dark*" into the appropriate fiel dof the article. When rendering is checked out the <body> tag is enhanced by the corresponding class. This normally can be defined via CSS."// | ||
| Line 306: | Line 322: | ||
| </code> | </code> | ||
| + | \\ | ||
| ~~UP~~ | ~~UP~~ | ||
| + | |||
| + | |||
| + | ===== CP News in Detail View ===== | ||
| + | |||
| + | |||
| + | |||
| + | Check if a news CP is in the detail view: | ||
| + | |||
| + | <code PHP> | ||
| + | if(isset($_getVar['newsdetail'])) { ..... | ||
| + | </code> | ||
| + | |||
| + | |||
| + | \\ | ||
| + | ~~UP~~ | ||