How to add new module above mainmenu?

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
Tue Oct 08, 2013 9:54 am
Reply with quote
Report this post
Hi guys,

I have been trying to add a new module above "mainmenu" to use for language switch.
I tried your guide below, but as my knowledge in PHP is low, every time I edited the default.php my homepage
shows a blank page with a error related to the line I changed.

Could you please tell me exactly where I should add the new line into the default.php?

http://www.gavick.com/documentation/joo ... -position/

Best regards
User avatar
Senior Boarder

GK User
Tue Oct 08, 2013 8:47 pm
Reply with quote
Report this post
ok, sure give a minute.
User avatar
Platinum Boarder

GK User
Tue Oct 08, 2013 9:00 pm
Reply with quote
Report this post
1) Inside this file : gk_startup\templateDetails.xml add new position name, after
<position>lang</position>

for example
Code: Select all
<position>new_up</position>


2) Than : gk_startup\layouts\default.php

Under
Code: Select all
<?php if(count($app->getMessageQueue())) : ?>
    <jdoc:include type="message" />
    <?php endif; ?>


Add

Code: Select all
   <jdoc:include type="modules" name="new_up" />


Save and upload changed file

RESULT after publishing module (custom html) in this position,
module-new-position.png


rest work do with <div> and ID or class (css)
00.png
User avatar
Platinum Boarder

GK User
Thu Oct 10, 2013 4:45 pm
Reply with quote
Report this post
Thank you very much!!
It is working now, good job.
User avatar
Senior Boarder


cron