Adding a Module Position...

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
Sun Jul 14, 2013 9:44 pm
Reply with quote
Report this post
Is there any way to add a module position on top of everything?

Screen-Shot-2013-07-14-at-1.39.24-PM.jpg


Thanks,

David
User avatar
Expert Boarder

GK User
Sun Jul 14, 2013 10:42 pm
Reply with quote
Report this post
Yes. Please follow this documentation:
http://www.gavick.com/documentation/joo ... -position/
User avatar
Moderator

GK User
Wed Jul 17, 2013 6:46 pm
Reply with quote
Report this post
Thank you for your reply Cyberek. I have been attempting to do this for hours now. If you can answer one question, I would be so grateful!

I am attempting to place the following code into the Default.php file (my new position is "way_top"):

<?php if($this->modules(‘way_top’)) : ?>
<div class=”newstyle”>
<jdoc:include type=”modules” name=”way_top” style=”<?php echo $this->module_styles['way_top']; ?>” />
</div>
<?php endif; ?>

Where in the Default.php file do I place this code if I want it to show up at the very top of my template (above the logo and menu)?

Thank you so much for your help :D

David
User avatar
Expert Boarder

GK User
Wed Jul 17, 2013 6:52 pm
Reply with quote
Report this post
First of all, You need to check the code...
all:
‘ and ’ needs to be '
” needs to be "

Secondly, depending on result You would like to get, place the code just before or after line:
Code: Select all
<div class="gkPage" id="gkHeaderNav">
User avatar
Moderator

GK User
Wed Jul 17, 2013 7:04 pm
Reply with quote
Report this post
Thank you so much for the quick response. I tried what you said and I am getting this error:

Fatal error: Call to undefined method GKTemplate::modules() in /homepages/26/d400654158/htdocs/IBDSF/templates/gk_simplicity/layouts/default.php on line 58


I'm sure what else to do...

Thank you again for your help!

David
User avatar
Expert Boarder

GK User
Wed Jul 17, 2013 8:02 pm
Reply with quote
Report this post
try replacing:
Code: Select all
<?php if($this->modules(‘way_top’)) : ?>

with:
Code: Select all
<?php if($this->API->modules('way_top')) : ?>
User avatar
Moderator

GK User
Wed Jul 17, 2013 8:16 pm
Reply with quote
Report this post
Ok, it looks like we're making some progress here! I got it to display, but only on the home page... I guess the way the template is set up, the nav bar changes when you scroll down or switch pages.

Any idea how I can get this module position on other pages as well?

Thanks sooo much!!! :D
User avatar
Expert Boarder

GK User
Wed Jul 17, 2013 10:37 pm
Reply with quote
Report this post
Never mind, I got it! Thank you so much Cyberek!!!
User avatar
Expert Boarder

GK User
Thu Jul 18, 2013 6:50 am
Reply with quote
Report this post
What was the case?
User avatar
Moderator

GK User
Thu Jul 18, 2013 4:06 pm
Reply with quote
Report this post
As you mentioned earlier in the thread, I placed the code below this line:

<div class="gkPage" id="gkHeaderNav">

That got it to display on every page. I then was able to make it look clean by changing some CSS.

Thanks again for your help!
User avatar
Expert Boarder

GK User
Thu Jul 18, 2013 5:15 pm
Reply with quote
Report this post
No problem. I'm glad You have figured it out on your own.
User avatar
Moderator


cron