test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • btreynolds1 Friend
    #166734

    Hi..
    We want to define the mainnav block inside the header block.

    How do we do that ?

    Phill Moderator
    #403176

    Copy the block you want the main nave to be in from plugins>system>jat3>base-themes>default>blocks>yourblock and place it in the templates blocks directory. You will then need to add the following in the new code where you want the menu.

    [PHP]<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <!– jdoc:include type=”menu” level=”0″ / –>
    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id=”ja-subnav” class=”clearfix”>
    <?php $jamenu->genMenu (1); ?>
    <!– jdoc:include type=”menu” level=”1″ / –>
    </div>
    <?php endif;?>
    <ul class=”no-display”>
    <li><a href=”<?php echo $this->getCurrentURL();?>#ja-content” title=”<?php echo JText::_(“Skip to content”);?>”><?php echo JText::_(“Skip to content”);?></a></li>
    </ul>[/PHP]

    btreynolds1 Friend
    #403227

    Hi..
    Yes I know the code.

    But what I mean is,

    Lets say, I want to define Main nav block inside the header block, so I enetered this code,


    <block name="header" type="header" main-inner="1">
    <block name="mainnav" type="mainnav" main-inner="1"></block>
    </block>

    btreynolds1 Friend
    #403228

    So, it dint work.

    So, is my above code wrong ?

    Phill Moderator
    #403250

    You need to perform the override as I suggested above.

    btreynolds1 Friend
    #403251

    Ok let me test and see if it works..

    btreynolds1 Friend
    #403255

    Ok, I dont have to touch blocks .
    All I did was paste the menu code in header.php of my theme and it worked fine.

    So, no relationship with layout block for menu ?

    btreynolds1 Friend
    #403256

    And In blocks folder on plugins folder, I see the php files only.

    So, where are the blocks xml defined ?

    And how can I override them on my templates ?

    I mean the xml files, where we define position of the blocks, like we do in Magento.

    Phill Moderator
    #403287

    Please read throught the Wiki as it will detail all of this – http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides

    btreynolds1 Friend
    #403290

    Yes already done.

    ALl this comes out of the confusions.

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

This topic contains 10 replies, has 2 voices, and was last updated by  btreynolds1 13 years, 4 months ago.

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