Create a new modul position

GK User
Fri Jan 13, 2012 5:46 pm
HI,
i am using the gamemagazine template and I would like to add a new modulposition on the top right of the site where I can put a topmenu and 2 or 3 social media buttons (FB and Twitter) just like in the template "boutique". See the screenshot:

sample3.JPG


Is that possible?
I read a lot about adding new positions, but your templates seem to be more complex, I already added the position called "nav_top" into the TemplateDetails.xml and I guess I have to enter something like

Code: Select all
in index.php

<div id="nav_top">
<div class="box box1"> <jdoc:include type="modules" name="nav_top" style="xhtml"  /></div>
<br clear="all" />
</div>
--------------------
in template.css

div#nav_top{
float:right;
text-align:right;
margin-right: 100px;
margin-top: 10px;
}



please help me out
thanks stefan
User avatar
Junior Boarder

teitbite
Fri Jan 13, 2012 6:59 pm
Hi

Our templates are not much different than what You have found. The only difference is that most of the templates got all HTML code placed in index.php and we have split this code into couple smaller for template section each. This files can be found in /layouts/blocks and the one You are looking for is called top.php or mainnav.php, sorry I'm not sure which one was used it this template.
User avatar
Moderator

GK User
Fri Jan 13, 2012 11:24 pm
hi,
thank you. it worked perfectly allthough i found the file you ment in logo.php. I just copied the lines from the other template (boutique) into my template, copied the css and adapted it and entered the new mod-position into TemplateDetail.xml. Here take a look at the result:
Please mark this post as solved!!!

sample5.JPG
User avatar
Junior Boarder

GK User
Tue May 08, 2012 1:19 am
Hi staenzer,

I'm trying to do the exact same thing. I'm familiar with how to add new module positions but can you post the code you added in logo.php as well as the css from Boutique to get your menu to lay horizontally and aligned to the right like that?

I'm just having trouble getting it to look right.
User avatar
Fresh Boarder

teitbite
Tue May 08, 2012 3:21 pm
Hi

If You have a position made already and menu placed in it please show me a page so I'll tell You what css to add to make it look ok.
User avatar
Moderator

GK User
Tue May 08, 2012 3:31 pm
Hi teitbite,

I didn't think I'd hear back from the original poster, so I started a new thread on my attempt to create a Top Menu above the search and login/register links here: https://www.gavick.com/forums/game-maga ... 16336.html

Once I get this figured out, I'll post a step-by-step solution on that thread. I'm almost there I just need some direction on a few css tweaks.
User avatar
Fresh Boarder

teitbite
Wed May 09, 2012 5:01 pm
Hi

Ok. I'm following this link to give You some tips :)
User avatar
Moderator


cron