i need an extra module position, on top of the main navi

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 3:08 pm
Reply with quote
Report this post
hi there

hope you can help me getting an extra position within the storebox template. please check image...

regards
emel
User avatar
Platinum Boarder

GK User
Sun Jul 14, 2013 3:50 pm
Reply with quote
Report this post
All about adding module position:
http://www.gavick.com/documentation/joo ... -position/

If You will have any additional questions, feel free to ask.
User avatar
Moderator

GK User
Mon Jul 15, 2013 2:30 pm
Reply with quote
Report this post
unfortunately, didn't work out for me...

specifically the last step i think leads to hickups...

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

(in which i've replaced " myposition' with " logobanner".

as you can see, site is broken now
http://test.foodgenique.nl/

---------------
previous steps:
in the gk.const.php, added:
// definitions of module positions default styles
$GK_TEMPLATE_MODULE_STYLES = array(
'logobanner' => 'gk_style',

within template details.xml, added:
<positions>
<!-- Template specific Module Positions -->
<position>logobanner</position>

------------------------
hope to receive some tips!
regards
emel
User avatar
Platinum Boarder

GK User
Mon Jul 15, 2013 8:21 pm
Reply with quote
Report this post
Could You zip the file default.php and attach it to your replay (after attaching please remember to insert it "inline").
User avatar
Moderator

GK User
Tue Jul 16, 2013 8:18 am
Reply with quote
Report this post
default.php.zip
hi
thanx for helping me out! hereby the zip.
User avatar
Platinum Boarder

GK User
Tue Jul 16, 2013 12:38 pm
Reply with quote
Report this post
if this is not the right info's uploaded please let me know. my site is currently down :(
User avatar
Platinum Boarder

GK User
Tue Jul 16, 2013 9:47 pm
Reply with quote
Report this post
Please use attached file.
They look almost same, but if You look closer to " and ' signs, You will find the difference.
default.php.zip


Correct
Code: Select all
           <?php if($this->modules('logobanner')) : ?>
         <div class="newstyle">
         <jdoc:include type="modules" name="logobannern" style="<?php echo $this->module_styles['logobanner']; ?>" />
         </div>
         <?php endif; ?>


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

User avatar
Moderator

GK User
Wed Jul 17, 2013 10:23 am
Reply with quote
Report this post
hi, i've tried this, but unfortunately no success... I also took out a small error:
name=”logobannern”

should offcourse be logobanner (without N)

but still, no difference... :(

what to do next
User avatar
Platinum Boarder

GK User
Wed Jul 17, 2013 11:31 am
Reply with quote
Report this post
solved!
User avatar
Platinum Boarder

GK User
Wed Jul 17, 2013 3:46 pm
Reply with quote
Report this post
Great. What was the problem?
User avatar
Moderator

GK User
Wed Jul 17, 2013 4:48 pm
Reply with quote
Report this post
a friend of mine took a look.

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

API is being used in the template, which was in the code....

(hope this helps others)
User avatar
Platinum Boarder


cron