Search module on menu

October 08 Joomla Templates
GK User
Thu Mar 08, 2012 2:47 pm
Hello.
Is there any solution to have search on menu like there:
http://www.yootheme.com/demo/themes/joo ... 2/balance/ ?

Btw. maybe you R working on Ajax based search module like on this site?
Regards. Paul
User avatar
Junior Boarder

GK User
Thu Mar 08, 2012 3:27 pm
Hi Paul,

Open file: \templates\gk_twn2\layouts\default.php

Find:
Code: Select all
<?php if($this->modules('search')) : ?>
                 <div id="gkSearch">
                    <jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" />
                 </div>
                 <?php endif; ?>   

Move to after:
Code: Select all
<?php
                  $this->menu->loadMenu($this->getParam('menu_name','mainmenu'));
                   $this->menu->genMenu($this->getParam('startlevel', 0), $this->getParam('endlevel',-1));
               ?>

Just try and let me know if it helps.

BTW, you can use this ajax search module http://extensions.joomla.org/extensions ... earch/3547 or find others from http://extensions.joomla.org/extensions ... ite-search

Cheers,
User avatar
Platinum Boarder

GK User
Thu Mar 08, 2012 4:28 pm
Hello Don.
Unfortunately it didn't work. After page reload I can find that in the source code but it looks like it hidden somewhere.

Side effect of this modification is with bar where top menu is displayed. I've hide it via CSS (print screen) and this modification make this bar back again.

Thank you for your input in my topic :)
Regards. Paul
User avatar
Junior Boarder

GK User
Thu Mar 08, 2012 5:36 pm
Can you send me a PM to provide with FTP access then I will try further for you?

Thanks,
User avatar
Platinum Boarder

GK User
Fri Mar 09, 2012 3:31 pm
I changed the code to exactly what I suggested you before, and add this css code to override.css to make some change then it can appear:
Code: Select all
.gk-menu{
   width:800px;
   float: left;
}
#gkSearch{
   float: left;
}

Currently this code doesn't work because you haven't enabled override mode, just go to template setting and turn on CSS Override mode then your site will look like http://easycaptures.com/fs/uploaded/469/1166335947.jpg
User avatar
Platinum Boarder

GK User
Fri Mar 09, 2012 4:18 pm
Aloha.
Thank you for your modification.
I set on advanced setting of template css override to on like on attachment.
I've cleared the cache etc. on joomla and on my computer and there is still no search on this bar.
Any ideas?
Regards. Paul
User avatar
Junior Boarder

GK User
Mon Mar 12, 2012 2:11 pm
It works now, there was a comment line not being closed causing the code not working. Please check and confirm the same.

Cheers,
User avatar
Platinum Boarder

GK User
Mon Mar 12, 2012 2:35 pm
Hello Don.
Success. Thank you. Now it looks as I wish. Gr8 work.
Thank you.
Regards. Paul
User avatar
Junior Boarder

GK User
Mon Mar 12, 2012 4:15 pm
You are most welcome Paul, just feel free to let me know if you need any other helps.

Cheers,
User avatar
Platinum Boarder

GK User
Mon Mar 12, 2012 4:44 pm
Thank you.
I feel, that's why I make another topic ;)
https://www.gavick.com/forums/the-news- ... 14727.html

Regards. Paul
User avatar
Junior Boarder

GK User
Tue Mar 13, 2012 11:47 am
Ok just let me check :D
User avatar
Platinum Boarder


cron