| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
New static page horizontal menu | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() 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? |
|||||||||
#4
|
|||||||
|
|||||||
![]() Hmmm...that must be a custom skin as that is not a standard template.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Yes - it is the fashion mosiac skin
|
|||||||||
#6
|
|||||||
|
|||||||
![]() You need to specify these things when posting, it makes a HUGE difference
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||||
|
|||||||||
![]() I am sorry - Thank you for your quick responses - I'll add it to my signature
![]() |
|||||||||
#8
|
|||||||
|
|||||||
![]() 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 |
|||||||
#9
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#10
|
|||||||
|
|||||||
![]() 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 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|