Page Class Suffix: only applies to the H1.componentheading? - Joomla! Forum - community, help and support
hi all,
i hope can this.
i read documentation:
http://docs.joomla.org/tutorial:using_c ... ass_suffix
...and did search here - got no results.
can tell me why suffix applying h1.componentheading ?
i'm using 'skeleton template tableless'. problem? if can working , applied (body) or (div id="page") it'll solve lot of problems. until i've been using links css files in custom html modules overrides. i'll able more sensibly instead , less css files.
please [it'll favourite christmas present] thanks,
john
i hope can this.
i read documentation:
http://docs.joomla.org/tutorial:using_c ... ass_suffix
...and did search here - got no results.
can tell me why suffix applying h1.componentheading ?
i'm using 'skeleton template tableless'. problem? if can working , applied (body) or (div id="page") it'll solve lot of problems. until i've been using links css files in custom html modules overrides. i'll able more sensibly instead , less css files.
please [it'll favourite christmas present] thanks,
john
actually, seems work:
http://docs.joomla.org/using_the_page_c ... plate_code
by itemid
to load page class suffix associated current itemid, add top of index.php file:
and then:
but, i'm worried this, don't understand:
security
any ideas folks?
john
http://docs.joomla.org/using_the_page_c ... plate_code
by itemid
to load page class suffix associated current itemid, add top of index.php file:
code: select all
<?php
$itemid = jrequest::getvar('itemid');
$menu = &jsite::getmenu();
$active = $menu->getitem($itemid);
$params = $menu->getparams( $active->id );
$pageclass = $params->get( 'pageclass_sfx' );
?>and then:
code: select all
<body id="<?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?>">but, i'm worried this, don't understand:
security
you should use htmlspecialchars() in code before writing html attribute, else open attack vector inject script code page.
any ideas folks?
john
Comments
Post a Comment