Hi folks,
is it possible to write the current page ID into the body tag?
EXAMPLE:
Current Page: index.php?testpage
Body tag: <body id="testpage">
Greetings,
Oldboy.
ID for body tag
yes
I have no doubt that this is possible,
- you would have to insert this into the code (php-scripts)
- you have to check out which is the phpwcms-variable for the id
OR
- you truncate the URL also using PHP (also in the source code)
Hope this gives you a starting point - I'm a bit lazy today...
Greetings, Ren
- you would have to insert this into the code (php-scripts)
- you have to check out which is the phpwcms-variable for the id
OR
- you truncate the URL also using PHP (also in the source code)
Hope this gives you a starting point - I'm a bit lazy today...
Greetings, Ren
Hi
try this (in template section)
Never tested, should work
//edit:
ARGGSS... this should happen in HTML Head ...
Jürgen
try this (in template section)
Code: Select all
[PHP]
if(isset($GLOBALS['LEVEL_ID'][1])) {
$level_id = $GLOBALS['LEVEL_ID'][1];
$name= $GLOBALS['LEVEL_STRUCT'][$GLOBALS['LEVEL_KEY'][$level_id]];
echo '<body id="'.$name. '">' ;
}
[/PHP]
//edit:
ARGGSS... this should happen in HTML Head ...
Jürgen
script
Hi,
I _guess_ you need to change the index.php around the lines containing
Use the variables above
Cheers, Ren
I _guess_ you need to change the index.php around the lines containing
Code: Select all
$content['page_start']
Cheers, Ren