• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] how to give index a $page-name for "body-$page" ??

Started by ollipaust,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ollipaustTopic starter

hi
i found that the index has no $page-variable. this causes that in the <body>tag theres a missing class which actually every page has. i specially mean for com_home.

i mean this

Quote<body class="touch-gesture body-" style="">

i would wish if you select "com_home.php" as index that the bodytag looks like this

Quote<body class="touch-gesture body-home" style="">

how can i do this?
  •  

PHPVibe A.

Same way in tpl.globals.php

$head .= '</head>
<body class="touch-gesture body-'.$page.'" style="">


Change it to
if(!isset($page) || nullval($page)) {$pcs ='home'; } else {$pcs = $page;}
$head .= '</head>
<body class="touch-gesture body-'.$pcs.'" style="">


ollipaustTopic starter

Quote from: Alexander on
Same way in tpl.globals.php

$head .= '</head>
<body class="touch-gesture body-'.$page.'" style="">


Change it to
if(!isset($page) || nullval($page)) {$pcs ='home'; } else {$pcs = $page;}
$head .= '</head>
<body class="touch-gesture body-'.$pcs.'" style="">


thank you works perfect  8)
  •  

Similar topics (7)