Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • munders Friend
    #166579

    Hi all,

    Does anyone know how to create a new menu position that sits between the header and mainnav positions on the JA Rave 1.6 template?

    I only need to add text links, and don’t want graphic rollovers etc.

    I understand that i need to create a new menu in Menu Manager but don’t know how to write the new position code etc.

    Please see the graphic attached for location details.

    Many thanks


    1. NEWMENU
    Phill Moderator
    #402397

    Is this the J1.5 or J1.6 version?

    munders Friend
    #402398

    It says that above, JA Rave 1.6.

    Thanks.

    Phill Moderator
    #402400

    Sorry, missed that bit.

    Create a new file called header.php in templates>ja_rave>blocks>header.php containing the following code.

    <?php
    /*
    # ------------------------------------------------------------------------
    # JA T3 System plugin for Joomla 1.6
    # ------------------------------------------------------------------------
    # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    # @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
    # Author: J.O.O.M Solutions Co., Ltd
    # Websites: http://www.joomlart.com - http://www.joomlancers.com
    # ------------------------------------------------------------------------
    */
    ?>
    <?php
    $app = & JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    if ($this->getParam('logoType', 'image')=='image'): ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam('logoText'))=='') ? $siteName : JText::_(trim($this->getParam('logoText')));
    $sloganText = JText::_(trim($this->getParam('sloganText'))); ?>
    <div class="logo-text">
    <h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>
    <?php if($this->countModules('topnav')) : ?>
    <div id="topnav">
    <jdoc:include type="modules" name="topnav" />
    </div>
    <?php endif; ?>
    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

    That will give you a new position called topnav where you want it though you may want to style it in some way.

    Then creat either a custom html module with your links in or create a new menu item and put a menu module in this position styled as a flat list.

    munders Friend
    #402405

    Fantastic , thanks Phil.

    I got it to work, very impressed.

    The only issue is with the layout. My links are vertical. Do you know what code i need to make it horizontal please? Graphic attached to show current position.

    Thanks again!


    1. links
    Phill Moderator
    #402406

    In J1.5 you used to be able to select flat list. I’ll do some tests with J1.6.

    Phill Moderator
    #402408

    Please add the following code to the end of templates>ja_rave>css>template.css then add the custom menu class menu1 (make sure you put a leading space in there).


    .menu1 li
    {
    float: left;
    padding: 10px;
    }

    You should be able to add any additional styling in with the padding should you wish.

    munders Friend
    #402479

    Many thanks, much appreciated.

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

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

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