Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

New static page horizontal menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-20-2007, 01:20 PM
  reachforlife's Avatar 
reachforlife reachforlife is offline
 

Member
  
Join Date: Apr 2007
Posts: 26
 

Default 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.
__________________
Reach For Life
www.reachforlife.com
X-Cart Version # 4.1.6
Fashion Mosiac Skin
Reply With Quote
  #2  
Old 04-20-2007, 03:43 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-21-2007, 05:02 AM
  reachforlife's Avatar 
reachforlife reachforlife is offline
 

Member
  
Join Date: Apr 2007
Posts: 26
 

Default 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?
__________________
Reach For Life
www.reachforlife.com
X-Cart Version # 4.1.6
Fashion Mosiac Skin
Reply With Quote
  #4  
Old 04-21-2007, 05:36 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: New static page horizontal menu

Hmmm...that must be a custom skin as that is not a standard template.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-21-2007, 05:43 AM
  reachforlife's Avatar 
reachforlife reachforlife is offline
 

Member
  
Join Date: Apr 2007
Posts: 26
 

Default Re: New static page horizontal menu

Yes - it is the fashion mosiac skin
__________________
Reach For Life
www.reachforlife.com
X-Cart Version # 4.1.6
Fashion Mosiac Skin
Reply With Quote
  #6  
Old 04-21-2007, 05:49 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: New static page horizontal menu

You need to specify these things when posting, it makes a HUGE difference
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 04-21-2007, 05:54 AM
  reachforlife's Avatar 
reachforlife reachforlife is offline
 

Member
  
Join Date: Apr 2007
Posts: 26
 

Default Re: New static page horizontal menu

I am sorry - Thank you for your quick responses - I'll add it to my signature
__________________
Reach For Life
www.reachforlife.com
X-Cart Version # 4.1.6
Fashion Mosiac Skin
Reply With Quote
  #8  
Old 04-23-2007, 06:39 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 04-23-2007, 07:01 AM
  reachforlife's Avatar 
reachforlife reachforlife is offline
 

Member
  
Join Date: Apr 2007
Posts: 26
 

Default 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.
__________________
Reach For Life
www.reachforlife.com
X-Cart Version # 4.1.6
Fashion Mosiac Skin
Reply With Quote
  #10  
Old 04-23-2007, 07:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:45 AM.

   

 
X-Cart forums © 2001-2020