-
AuthorPosts
-
David Porré Friend
David Porré
- Join date:
- September 2014
- Posts:
- 194
- Downloads:
- 44
- Uploads:
- 5
- Thanks:
- 23
- Thanked:
- 9 times in 1 posts
February 10, 2011 at 11:58 am #159996Hello,
I have set a Page Class Suffix on an Menu Item but it is not showing up in the frontend. Tried a few variations no luck.It only applies to
<div class="blog_mysuffix">
I need to have different CSS class to different Page Menu Items for different backgrounds in “ja-container”.
How could I get this done ?
Hoping for answers,
Best regards,
David aka Shapesaman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
February 11, 2011 at 6:34 am #3761311) Try go to plugins/system/jat3/base-themes/default/page/default.php file and add this::
<?php
$itemid = JRequest::getVar(‘Itemid’);
$menu = &JSite::getMenu();
$active = $menu->getItem($itemid);
$params = $menu->getParams( $active->id );
$pageclass = $params->get( ‘pageclass_sfx’ );
?>above this::
<?php if ($this->isIE() && ($this->isRTL())) { ?>
2) Then, You can change this::
<body id=”bd” class=”<?php echo $this->getBodyClass();?>”>
to
<body id=”bd” class=”<?php echo $this->getBodyClass();?> <?php echo $pageclass; ?>”>
2 users say Thank You to aman204 for this useful post
David Porré FriendDavid Porré
- Join date:
- September 2014
- Posts:
- 194
- Downloads:
- 44
- Uploads:
- 5
- Thanks:
- 23
- Thanked:
- 9 times in 1 posts
February 11, 2011 at 1:04 pm #376200Hello aman204,
Thanks for you help !
Best regards,
David aka ShapesKhanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
February 16, 2011 at 7:33 am #376923Thank Aman for your suggestion. I’ve just updated this feature into T3v2 Framework. A new class will be added into Body tag when the page class suffix is set for that page in menu parameter. Eg: if the page class suffix is “-home”, class “body-home” will be added into Body.
1 user says Thank You to Khanh Le for this useful post
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
February 18, 2011 at 6:05 am #377281<em>@khanh le 221783 wrote:</em><blockquote>Thank Aman for your suggestion. I’ve just updated this feature into T3v2 Framework. A new class will be added into Body tag when the page class suffix is set for that page in menu parameter. Eg: if the page class suffix is “-home”, class “body-home” will be added into Body.</blockquote>
You are welcome 🙂
Paul Massell FriendPaul Massell
- Join date:
- May 2013
- Posts:
- 96
- Downloads:
- 2
- Uploads:
- 6
- Thanks:
- 13
- Thanked:
- 9 times in 1 posts
March 7, 2011 at 9:43 pm #380128when you say updated, do you mean that it is in the current distro of T3v2 or that it will be added to the next published distribution?
I’m asking because I’m getting a weird behavior where I’m getting a border frame around my home page and adding/changing a page class suffix doesn’t seem to help to remove it.
thanks
Paul<em>@khanh le 221783 wrote:</em><blockquote>Thank Aman for your suggestion. I’ve just updated this feature into T3v2 Framework. A new class will be added into Body tag when the page class suffix is set for that page in menu parameter. Eg: if the page class suffix is “-home”, class “body-home” will be added into Body.</blockquote>
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
March 8, 2011 at 2:16 am #380165It will be available in version 1.2.4, are going to be released with the new template JA Methys.
Paul Massell FriendPaul Massell
- Join date:
- May 2013
- Posts:
- 96
- Downloads:
- 2
- Uploads:
- 6
- Thanks:
- 13
- Thanked:
- 9 times in 1 posts
March 8, 2011 at 3:06 am #380181Thank you. I will wait then.
<em>@khanh le 226141 wrote:</em><blockquote>It will be available in version 1.2.4, are going to be released with the new template JA Methys.</blockquote>
-
AuthorPosts
This topic contains 8 replies, has 4 voices, and was last updated by Paul Massell 13 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum