A question about creating additional module positions

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu Jun 28, 2012 8:28 pm
I have a question about creating additional module positions. As an example of what i mean...

In the World News II Template there is a module position at the top of the page called "Logo" Am I able to create another module position identical to the Logo module position and have it sit below the Logo module. I would call this module Logo2.

Thanks
George
User avatar
Expert Boarder

Konrad M
Thu Jun 28, 2012 8:30 pm
Hi,
please read this instruction about adding new module position https://www.gavick.com/documentation/jo ... -position/
User avatar

GK User
Thu Jun 28, 2012 8:34 pm
Hi Konrad,

I have read those instructions. However it does not say anything about the module position that is being created. How would I give it the position below the existing logo module?
User avatar
Expert Boarder

Konrad M
Thu Jun 28, 2012 8:42 pm
Try paste code of your new position in to layouts/blocks/logo.php . Of course you will need some css rules to align it properly.
User avatar

GK User
Thu Jun 28, 2012 8:54 pm
Where are the instruction on Gavick for that?
User avatar
Expert Boarder

Konrad M
Fri Jun 29, 2012 1:42 pm
User avatar

GK User
Fri Jun 29, 2012 7:38 pm
Thanks
User avatar
Expert Boarder

GK User
Sun Jul 08, 2012 2:46 am
I followed all the steps in adding a new module position but i cannot see the module position listed in the sitemap...I am using joomla 2.5, and the world news 2 template

I need this module for my 728px by 90px google adsense to the right of my logo. I have moved my logo to the right by adding the code in the Overide css in the template.

I followed the step by step instruction on
https://www.gavick.com/documentation/jo ... -position/ but i still dont see the module position

step 1 ......The first step in adding a new module position to your active template is to edit the templateDetails.xml file. This is located under the template folder. Once opened for code editing, locate the <postions></positions> tags:
<postions>mytop</positions>

step2: Add the new module position tot he template module styles by editing the gk.const.php file located in /lib/framework.
'mytop' = 'none'

STep 3: All template files are located in the layouts folder. Default.php is the default template view, and it contains code blocks located in layouts/blocks. The module may be added directly into the default.php file or to one of these blocks. Paste the following code:
<?php if($this->modules(‘mytop’)) : ?>
<div>
<jdoc:include type=”modules” name=”mytop” style=”<?php echo $this->module_styles['mytop']; ?>” />
</div>
<?php endif; ?>

I SEE THE MODULE POSITION WHEN I SELECT POSITIONS FOR MY CUSTOM HTML BUT I DONT KNOW WHAT TO DO TO CUSTOMISE MY CSS.............
CAN SOMEONE HELP ME??? :x
User avatar
Fresh Boarder

GK User
Sun Jul 08, 2012 8:27 am
I beleive you are missing the following...
You also need to add

Code: Select all
<jdoc:include type="modules" name="mytop" />layouts/block/top.php (or whichever block you are adding to)


The block will be depend on the template you are using.

Regards
George
User avatar
Expert Boarder

GK User
Mon Jul 09, 2012 9:52 am
TWN2.jpg
Thanks for replying to my problem. I would like to get this straight from u. You are saying that i need to add the following line to my Default.php....
<jdoc:include type="modules" name="mytop" />layouts/block/top.php

<?php if($this->modules(‘mytop’)) : ?>
<div>
<jdoc:include type="modules" name="mytop" />layouts/block/top.php
<jdoc:include type=”modules” name=”mytop” style=”<?php echo $this->module_styles['mytop']; ?>” />
</div>
<?php endif; ?>



Well after i added it, the new position (MYTOP) shows up in the sitemap but it is above my LOGO. and i want my logo to be on the right and the new position (MYTOP) to be in the middle between my logo and login


i have attached a print screen above.... So please let me know what i need to do to get the logo to the right and my google ad banner to the middle
User avatar
Fresh Boarder

Konrad M
Tue Jul 10, 2012 10:32 am
@topafric please give us url to your site. It will be much easier to help you.
User avatar

GK User
Tue Jul 10, 2012 12:05 pm
@Konrad the website address is http://beddy.de/
User avatar
Fresh Boarder

Konrad M
Tue Jul 10, 2012 12:08 pm
Ok, please publish something in your module position and describe what exactly want to achieve.
User avatar

GK User
Tue Jul 10, 2012 3:35 pm
@konrad... I have published something to the new position called MYTOP which i can see in the template site map but i cannot see it when i view my website. below is the picture screen of my site map and picture screen of my webiste. I want the google banner ad to be between the logo and my login(which is to the right top)

Pic1
User avatar
Fresh Boarder

GK User
Wed Jul 11, 2012 9:10 pm
can anyone help me with this module position????????????@KONRAD
User avatar
Fresh Boarder


cron