Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • bollog Friend
    #162239

    Hi everyone,

    I would like to assign search module into the right side of my main menu bar like in the JA Business template. I have already found this thread here but am currently working on JA Portfolio template at both Joomla 1.5 and 1.6 installations. Can you please direct me how to exactly because I searched for the ‘<div class=”ja-mainnav-mask”> </div>’ into the ‘templatesja_portfolioblocksmainnav.php’ file but could not locate it.

    Regards,

    George

    khoand Friend
    #384653

    Hi,
    Add this code into <joomla url>templatesja_portfolioblocksmainnav.php file


    <?php if($this->countModules('search_main')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

    after


    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>

    – Set search module is search_main

    bollog Friend
    #384661

    Hi khoand and thanks for your reply.

    Well I installed a new quickstart sample data of JA Portfolio for Joomla 1.5 on my localhost. I opened the ‘templatesja_portfolioblocksmainnav.php’ file and added the code as advised. See edited file below

    [PHP]<?php
    /*
    # ————————————————————————
    # JA Portfolio Template
    # ————————————————————————
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license – PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
    # bound by Proprietary License of JoomlArt. For details on licensing,
    # Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
    # Author: JoomlArt.com
    # Websites: http://www.joomlart.comhttp://www.joomlancers.com
    # Redistribution, Modification or Re-licensing of this file in part of full,
    # is bound by the License applied.
    # ————————————————————————
    */
    ?>
    <?php $this->genBlockBegin ($block) ?>
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>

    <!– StartStop Search Module Position –>
    <?php if($this->countModules(‘search_main’)) : ?>
    <div id=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>
    <?php endif; ?>
    <!– StartStop Search Module Position –>

    <?php $this->genBlockEnd ($block) ?>

    <!– jdoc:include type=”menu” level=”0″ / –>
    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id=”ja-subnav” class=”wrap”>
    <div class=”main clearfix”>
    <?php $jamenu->genMenu (1); ?>
    <!– jdoc:include type=”menu” level=”1″ / –>
    </div>
    </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].

    Then I set ‘search_main’ position just created at the position parameters of the ‘search’ module and refresh at frontend. As you may see in the attached print screen, search is not function. Neither text can be added and get clicked in order to run the search function nor search ‘text’ can be displayed. What am I missing here?

    Thanks


    1. search-in-mainav
    bollog Friend
    #384670

    Aslo what the padding solution would be in order to for it be in center alignment?

    I tried to place it in the template’s ‘top’ module position instead, since I still need to move it from its original ‘search’ position so I can exploit its space for other purposes. It would be a lot much nicer though, if search module could perfectly fit in that place without its original layout parameters get modified. On the other hand I very like its layout parameters (box, icon, height and width) and would like them to remain the same.

    I guess the solution will be somehow get managed via the ‘Quick Contact’ ‘mod_custom’ type module as it already does for the other three items available in the list (Sales, Email and Sites) right? But what code should be added within the html tag in order for the search module to be listed last in the list and remain its original look (as when placed at the search module default position) unchanged?

    Please advise.

    Thanks in advance!


    1. search-at-top
    khoand Friend
    #385339

    Hi,
    Sorry for reply lately. You try replace search_main with search. And remove this code from <joomla url>porfolio16templatesja_portfolio1blocksheader.php


    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

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

This topic contains 5 replies, has 2 voices, and was last updated by  khoand 13 years, 7 months ago.

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