PDA

View Full Version : Static & Category Menu


sdin
01-07-2008, 08:58 AM
Hi,
Is there a way to put the Static Page menu (like Home, etc) in the same line with Category Menu?
Currently, when we enable the DHTML menu, it shows the static page menu on top and category menu on the second line.
Thanks.

Micha
01-08-2008, 10:02 AM
To do this you need to edit following template:

templates\xhtml\box\dhtml_menu.tpl

Take this code:

<vte:box module="box_pages">
<vte:params>
<vte:param name="cache" value="1" />
</vte:params>
<vte:template>
<li><a href="{VIVVO_URL}"><vte:value select="{LNG_GO_HOME}" /></a></li>
<vte:foreach item="page" from="{page_list}">
<li><a href="{VIVVO_URL}{page.get_href}"><vte:value select="{page.title}" /></a></li>
</vte:foreach>
</vte:template>
</vte:box>

and place it right after <ul class="adxm menu"> line of code (should be around line 10).

That way you'll have your static pages and category pages in same line.

Next, you just need to remove include for pages.tpl in your header template.

sdin
01-08-2008, 03:57 PM
Wow! Exactly what I wanted! thanks so much!!

krany
01-09-2008, 03:00 AM
Can be use it to place the Search box in the same order (line) as dhtml menu?

Micha
01-09-2008, 10:18 AM
Can be use it to place the Search box in the same order (line) as dhtml menu?

Go to your themes\default\css\style.css file and find .search class (should be around line 82 right bellow /*** Search box ***/ comment).

Remove text-align: right; property and add following two properties:

float: right;
margin-top: -32px;

That should lift search box up in the same line as DHTML menu.

cwbullet@mac.com
01-22-2009, 04:33 PM
This works, but it adds the domain names twice to the pages link.

http://cwbullet.org/http://cwbullet.org/index.php/civil-war-bullet-about-us.html

krcko
01-22-2009, 05:06 PM
instead of this:

<li><a href="{VIVVO_URL}{page.get_href}"><vte:value select="{page.title}" /></a></li>

write this:

<li><a href="{page.get_href}"><vte:value select="{page.title}" /></a></li>

cwbullet@mac.com
01-30-2009, 08:00 PM
I am trying to get this to work. I followed the directions, but now am getting it in 3 lines. Take a look a my page and tell me what I am doing wrong.

Thanks.

http://cwbullet.org/