test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • David Porré Friend
    #159996

    Hello,
    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 Shapes

    aman204 Friend
    #376131

    1) 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; ?>”>

    David Porré Friend
    #376200

    Hello aman204,

    Thanks for you help !

    Best regards,
    David aka Shapes

    Khanh Le Moderator
    #376923

    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.

    aman204 Friend
    #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 Friend
    #380128

    when 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 Moderator
    #380165

    It will be available in version 1.2.4, are going to be released with the new template JA Methys.

    Paul Massell Friend
    #380181

    Thank 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>

Viewing 8 posts - 1 through 8 (of 8 total)

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