Code: Select all
#bodyHome #header {
background-image: url(bgHome.gif);
}
#bodyProd #header {
background-image: url(bgProd.gif);
}
However I have not found a way to add an ID to the body tag.
Is there a smart way to solve this issue?
Code: Select all
#bodyHome #header {
background-image: url(bgHome.gif);
}
#bodyProd #header {
background-image: url(bgProd.gif);
}
Code: Select all
$content['page_start'] .= '</head>'.LF.'<body>'.LF;
Code: Select all
$content['page_start'] .= '</head>'.LF.'<body id="'.$alias=$GLOBALS['content']['struct'][($GLOBALS['aktion'][0])]['acat_alias'].'">';' >'.LF;
Code: Select all
<body id="whatever_category_alias">
Code: Select all
body#whatever_category_alias #my_bg_header_pic {
background-color: #99FF66;
background-image:none;
}
Code: Select all
$content['page_start'] .= '</head>'.LF.'<body id="'.$alias=$GLOBALS['content']['struct'][($GLOBALS['aktion'][0])]['acat_alias'].'" class="'.$alias=$GLOBALS['content']['struct'][($GLOBALS['aktion'][0])]['acat_alias'].'">'.LF;
Code: Select all
<body id="test" class="test">
Yes, that's a pity indeed...I get for each navigation a new ID and class.
Code: Select all
// inject body tag in case of class or id attribute
$body_inject = '<body';
if($content['body_id'] !== false) {
if(!empty($template_default['body']['id'])) {
$body_inject .= ' id="'.$template_default['body']['id'].$content['body_id'].'"';
}
if(!empty($template_default['body']['class'])) {
$body_inject .= ' class="'.$template_default['body']['class'].$content['body_id'].'"';
}
}
$content['page_start'] .= $body_inject.'>'.LF;
Code: Select all
[] class [ _____ ]
[] id [ _____ ]
Code: Select all
$template_default['body']['id'] = 'myid_';
$template_default['body']['class'] = '';
Had a look at your quoted code and again a look at inject_body_id.php.I will not implement additional backend fields.
Code: Select all
$template_default['body']['id'] = 'myid_';
$template_default['body']['class'] = '';
Code: Select all
$template_default['body']['id'] = '';
$template_default['body']['class'] = 'level1 sublevel3';