X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   New static page horizontal menu (https://forum.x-cart.com/showthread.php?t=30595)

reachforlife 04-20-2007 01:20 PM

New static page horizontal menu
 
I created static pages and have changed my code to keep them from showing up in my help zone. I created a new menu called new_menu.tpl:

{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{capture name=menu}
<div class="categories">
{include file="pages_menu.tpl"}
</div>
{/capture}
{ include file="menu.tpl" menu_title="" menu_content=$smarty.capture.menu }

I would like to include this file in my bottom.tpl file so that I have these items at the bottom of every page HOWEVER - it is displaying the links vertically with bullet - I want it to display horizontally with a | between each link.

How do I accomplish this? Thanks in advance.

balinor 04-20-2007 03:43 PM

Re: New static page horizontal menu
 
You would need to alter pages_menu.tpl to use <span> tags instead of <div> tags or <br> tags.

reachforlife 04-21-2007 05:02 AM

Re: New static page horizontal menu
 
I have that file open but I do not see any <div> or <br> tags to alter
here it is:

{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{section name=pg loop=$pages_menu}
{capture name=bullet}<a href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</a> {/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/section}

If I alter this, will it affect other menus?

balinor 04-21-2007 05:36 AM

Re: New static page horizontal menu
 
Hmmm...that must be a custom skin as that is not a standard template.

reachforlife 04-21-2007 05:43 AM

Re: New static page horizontal menu
 
Yes - it is the fashion mosiac skin

balinor 04-21-2007 05:49 AM

Re: New static page horizontal menu
 
You need to specify these things when posting, it makes a HUGE difference :(

reachforlife 04-21-2007 05:54 AM

Re: New static page horizontal menu
 
I am sorry - Thank you for your quick responses - I'll add it to my signature :)

balinor 04-23-2007 06:39 AM

Re: New static page horizontal menu
 
Hi there...sorry I didn't get back to you, but please don't double post a question. I have removed your second post on this topic.

Post your customer/main/bullet.tpl template and I'll see what is causing it to be vertical.

reachforlife 04-23-2007 07:01 AM

Re: New static page horizontal menu
 
Thanks for helping me with this -

Here is the files I am using:

skin1/bottom.tpl
<table width="100%" cellpadding="0" cellspacing="0">
<tr><td class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td></tr>
<tr><td class="Bottom"><div align="center">{include file="customer/new_menu.tpl" }</div></td></tr>
<tr>
<td class="BottomBox">
<table width="100%" cellpadding="0" cellspacing="0"><tr>
<td class="Bottom" align="left">{include file="main/prnotice.tpl"}</td>
<td class="Bottom" align="right">{include file="copyright.tpl"}</td>
</tr></table>
</td>
</tr>
</table>

skin1/customer/new_menu.tpl
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{capture name=menu}
<div class="categories">
{include file="pages_menu.tpl"}
</div>
{/capture}
{ include file="menu.tpl" menu_title="" menu_content=$smarty.capture.menu }

pages_menu.tpl
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{section name=pg loop=$pages_menu}
{capture name=bullet}<a href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</a>{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/section}

menu.tpl
{if $usertype eq "C"}
{ include file="menu_customer.tpl"}
{else}
<table cellspacing="1" width="100%" class="VertMenuBorder">
<tr>
<td class="VertMenuTitle">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>{$link_begin}<img src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" class="VertMenuTitleIcon" alt="{$menu_title|escape}" />{$link_end}</td>
<td width="100%">{if $link_href}<a href="{$link_href}">{/if}<font class="VertMenuTitle">{$menu_title}</font>{if $link_href}</a>{/if}</td>
</tr></table>
</td>
</tr>
<tr>
<td class="VertMenuBox">
<table cellpadding="{$cellpadding|default:"5"}" cellspacing="0" width="100%">
<tr><td>{$menu_content}<br /></td></tr>
</table>
</td></tr>
</table>
{/if}

customer/main/bullet.tpl
{* $Id: bullet.tpl,v 1.1 2006/01/19 13:35:09 max Exp $ *}
{if $usertype eq "C"}
<table cellspacing="0" cellpadding="0">
<tr>
<td><img src="{$ImagesDir}/customer_images/{if $welc}vert_menuwelc_bullet{elseif $catmenu}vert_menucat_bullet{else}vert_menu_bullet {/if}.gif" class="{if $welc || $catmenu}BulletWelc{else}Bullet{/if}" alt="" /></td>
<td valign="middle" height="18">{$content}</td>
</tr>
</table>
{else}
{$content}
{/if}

Thanks again for helping me with this.

balinor 04-23-2007 07:21 AM

Re: New static page horizontal menu
 
Ok, let's try this first. Replace your entire bullet.tpl with this (make a backup of the old one first):

<span style="padding-right: 10px;">{$content}</span>

See if that gets them to go horizontal at least, then we'll play with the formatting.


All times are GMT -8. The time now is 02:40 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.