-
AuthorPosts
-
April 1, 2011 at 12:21 pm #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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 3, 2011 at 11:22 am #384653Hi,
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_mainApril 3, 2011 at 4:50 pm #384661Hi 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.com – http://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
April 3, 2011 at 5:55 pm #384670Aslo 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!
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 8, 2011 at 2:32 am #385339Hi,
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; ?>
AuthorPostsViewing 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
Jump to forum