test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • aspik Friend
    #171609

    How to add a class in split.class.php ?

    pluginssystemjat3jat3coreparamsparams.xml


    <field name="mega_class" type="text" size="30" default="" label="ADDITIONAL_CLASS" description="ADDITIONAL_CLASS_DESC" />

    in pluginssystemjat3jat3coremenusplit.class.php

    $mega_class = ?????? ;


    function beginMenu($startlevel = 0, $endlevel = 10)
    {
    if ($startlevel == 0) {
    echo "<div id="ja-splitmenu" class="mainlevel clearfix">n";
    } else {
    echo "<div class='sublevel".$mega_class."'>n";
    }
    }

    aspik Friend
    #428716


    defined('_JEXEC') or die;
    $mega_class = ????????;
    ?>
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <!-- jdoc:include type="menu" level="0" / -->
    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id="ja-subnav <?php echo $mega_class; ?>" class="clearfix">
    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    <?php endif;?>

    jooservices Friend
    #428720

    Hi
    Would you mind explain a bit.?
    If you already find out php to render html. So why don’t you put your class here ?

    Thank you

    aspik Friend
    #428724

    need to add a class

    <div id="ja-subnav <?php echo $mega_class; ?>" class="clearfix">

    look at images


    1. 00
    2. 1
    3. 2
    4. 5
    aspik Friend
    #428726

    I painted as necessary to make. Hard to speak English.
    Thank you


    1. 233
    jooservices Friend
    #428730

    Okies as far i can understand.
    You are looking into

    pluginssystemjat3jat3base-themesdefaultblocksmainnav.php
    And want to add classname into

    <div id="ja-subnav" class="clearfix">
    via backend params ?
    To do that i afraid you will need T3 core hacking.
    Thank you

    aspik Friend
    #428736

    >T3 core hacking
    Yes.
    How to do it?

    jooservices Friend
    #428839

    Hi
    In case you need core hacking T3. Please follow up our wiki to understand about T3.
    http://wiki.joomlart.com/wiki/Main_Page

    Thank you,
    ps:// if you still can’t follow up with document please let’s me know . I’ll try to find out the code for you.

    Thank you,

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

This topic contains 8 replies, has 2 voices, and was last updated by  jooservices 13 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum