search in template menu

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Apr 20, 2013 2:15 am
Reply with quote
Report this post
Hi,
I would like to place a search module to the template menu bar at the top of the site.
How can I do this?
Thanks!
User avatar
Senior Boarder

GK User
Sat Apr 20, 2013 10:13 am
Reply with quote
Report this post
Hi, where exactly could you add a screenshot with arrrow? Inline Menu or like extra menu item?

This may help (my comment also): http://gavick.com/magazine/how-to-loadi ... items.html
User avatar
Platinum Boarder

GK User
Sat Apr 20, 2013 10:54 am
Reply with quote
Report this post
I would like to have something like this:

search-in-template-menu.jpg
User avatar
Senior Boarder

GK User
Sat Apr 20, 2013 11:52 am
Reply with quote
Report this post
This need a little modification in core template file and small css changes.
By our support : I can give you only few tips, not finished solution.

1) template/gk_news/layouts/default.php
2) find this section id="gkPageTop"
3) Before Login code:
Code: Select all
<?php if($this->API->modules('login')) : ?>

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

you can try to add also without <div>..</div>

4) Delete "search" code from line 130-134
5) Using CSS try to get a good position of search module and nice background effects etc.
User avatar
Platinum Boarder

GK User
Sat Apr 20, 2013 12:03 pm
Reply with quote
Report this post
p.s.
If you will add this simple code:
Code: Select all
<span style="float:left;"><jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" /></span>


You will get search & login icons inline.
search.png


If think that real CSS customization of search module should take you about 40 minutes, to get this same effect which you demonstrated below. I made few similar jobs in last year.
User avatar
Platinum Boarder


cron