Adding Search

Responsive community-minded music Joomla template with JomSocial extension support.
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
Thu Dec 12, 2013 11:19 am
Reply with quote
Report this post
Hello,

I'd like to add search into my template right next to the Login space... how can i do that?

I had someone try to help me in the help desk, but they directed me here. Thank you. Your help is appreciated.
User avatar
Fresh Boarder

GK User
Thu Dec 12, 2013 10:07 pm
Reply with quote
Report this post
Hi.
I will try to help you a little bit.

1) Add new module position : http://www.gavick.com/documentation/joo ... -position/

2) Here: gk_musicstate\layouts\default.php
Probably around line ~105 , after login "position" code

3) Publish there a search module

4) Use CSS to make better look & position.
Custom CSS Tip: http://www.gavick.com/documentation/joo ... -template/
User avatar
Platinum Boarder

GK User
Fri Dec 13, 2013 4:05 am
Reply with quote
Report this post
Hello,

Thank you for pointing me to these articles.

I've done Steps one:

<!-- Template specific Module Positions -->
<position>breadcrumb</position>
<position>header</position>
<position>login</position>
<position>search</position>
<position>header_bottom</position>

Step 2:

// definitions of module positions default styles
$GK_TEMPLATE_MODULE_STYLES = array(
'breadcrumb' => 'none',
'lang' => 'none',
'login' => 'none',
'search' => 'none',
'header' => 'none',

BUT i got stuck on step 3:

I've attached an image.
Screen Shot 2013-12-12 at 7.02.35 PM.png

Following the instructions http://www.gavick.com/documentation/joo ... -position/

However, I get this:
Screen Shot 2013-12-12 at 7.02.35 PM.png


i've already published a module to that position as well.

What am I doing incorrect? thank you.
User avatar
Fresh Boarder

GK User
Sat Dec 14, 2013 9:10 am
Reply with quote
Report this post
actually, i think i figured it out.. i was looking at the other code and i noticed this.
<?php if($this->API->modules('myposition')) : ?>

your instructions say to do this

<?php if($this->modules('myposition')) : ?>

notice the API> that fixed the issue.. now i have to figure out how to move it exactly into place.
User avatar
Fresh Boarder

GK User
Sun Dec 15, 2013 11:18 pm
Reply with quote
Report this post
Thanks for report. I've just updated manual.
p.s.
Probably firebug will help to find out which css you should change/override.
User avatar
Platinum Boarder


cron