Problem adding new 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
Mon Apr 22, 2013 5:28 am
Reply with quote
Report this post
Hi, my first issue since I have the subscription (great work Gavickpro) ;)

I follow Adding a new module position from Gavickpro Documentation, but the website "crash" in the last step, when I add in the file templates/gk_startup/layouts/default.php:

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


I add this code just before:

Code: Select all
</body>
</html>


I need to create a new module position in any of the positions as shown in the attached image, preferably to the right of mainbody position.

Sin-título-1.jpg



Thanks a lot for your time.
User avatar
Fresh Boarder

GK User
Mon Apr 22, 2013 6:05 am
Reply with quote
Report this post
(Late) edit: I need to create a new module position in any of the positions as shown in the attached image, preferably to the right of MAINMENU position.
User avatar
Fresh Boarder

GK User
Mon Apr 22, 2013 6:10 am
Reply with quote
Report this post
Please try following code.

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


See you around...
User avatar
Platinum Boarder

GK User
Mon Apr 22, 2013 6:45 am
Reply with quote
Report this post
Thanks a lot for your (very) quick response. The site don't crash anymore, but I can't see the module.

templates/gk_startup/templateDetails.xml (idiomas is the new module name):

Code: Select all
<positions>
                  <!-- Template specific Module Positions -->
                  <position>breadcrumb</position>
                  <position>header</position>
                  <position>social</position>
                  <position>login</position>
                  <position>idiomas</position>   


templates/gk_startup/lib/framework/gk.const.php:

Code: Select all
$GK_TEMPLATE_MODULE_STYLES = array(
   'breadcrumb' => 'none',
   'login' => 'none',   
   'lang' => 'none',
   'idiomas' => 'none',


templates/gk_startup/layouts/default.php:

Code: Select all
   <?php if($this->API->modules(‘idiomas’)) : ?>
   <div>
   <jdoc:include type=”modules” name=”idiomas” style=”<?php echo $this->module_styles['idiomas']; ?>” />
   </div>
   <?php endif; ?>
</body>
</html>


Module config:

Sin-título-2.jpg


Thanks again for your help.
User avatar
Fresh Boarder

GK User
Mon Apr 22, 2013 7:33 am
Reply with quote
Report this post
In module settings > menu assignments, for test purposes assign the menu to show on all pages pls.

Let us know.
User avatar
Platinum Boarder

GK User
Mon Apr 22, 2013 10:23 am
Reply with quote
Report this post
Hi again,

Module Assignment: On all pages

Menu Selection: All selected, on all pages

:S
User avatar
Fresh Boarder

GK User
Mon Apr 22, 2013 9:58 pm
Reply with quote
Report this post
Bump! ;)

Any other suggestions? If needed, I can offer you access to the back-end or FTP.

Thanks a lot again.
User avatar
Fresh Boarder

GK User
Tue Apr 23, 2013 1:23 am
Reply with quote
Report this post
Ok, send access details to my email normanuk[at]live.co.uk. admin & ftp.

Please include this topic link in your email.

See you around...
User avatar
Platinum Boarder

GK User
Tue Apr 23, 2013 3:23 pm
Reply with quote
Report this post
Received your details in email. Checking it now. I am assuming you want it next to main menu.

Let me know.
User avatar
Platinum Boarder

GK User
Tue Apr 23, 2013 5:05 pm
Reply with quote
Report this post
All DONE!

Our first experience with Gavickpro support are simple amazing!

TYSM!
User avatar
Fresh Boarder

GK User
Tue Apr 23, 2013 5:06 pm
Reply with quote
Report this post
No problem at all, any questions / problems post in our forums ; )

See you around...
User avatar
Platinum Boarder


cron