Differences

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

english:technics:system-variables [2010/10/16 07:19]
Knut Heermann (flip-flop)
english:technics:system-variables [2018/06/03 18:09] (current)
Line 133: 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 312: 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~~
english/technics/system-variables.1287206397.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