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

Editing menu.tpl.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-05-2003, 10:03 AM
 
john80y john80y is offline
 

X-Adept
  
Join Date: May 2003
Posts: 459
 

Default Editing menu.tpl.

My template looks like this
Code:
<TABLE border=0 cellPadding=5 cellSpacing=0 width="100%"> <TR> <TD class=VertMenuTitle height=26>{$link_begin}[img]{$ImagesDir}/{$dingbats}[/img]{$link_end}</TD> {if $link_href} <TD class=VertMenuTitle height=26 valign=center width=80%><font class=VertMenuTitle>{$menu_title}</font></TD> {else} <TD class=VertMenuTitle height=26 valign=center width=80%><font class=VertMenuBoxNewsTitle>{$menu_title}</font></TD> {/if} </TR> <TR> <TD colspan="2" class=VertMenuBox>{$menu_content} </TD></TR> </TABLE>


The template uses $menu_content to show what is displayed... Where can I edit $menu_content ????
Reply With Quote
  #2  
Old 10-05-2003, 10:58 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

you pass it during the include like

{include template.tpl menu_content="my menu is here"}

That template will then have $menu_content allocated to it internally
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #3  
Old 10-05-2003, 12:33 PM
 
john80y john80y is offline
 

X-Adept
  
Join Date: May 2003
Posts: 459
 

Default

lol I still don't get it.
Reply With Quote
  #4  
Old 10-05-2003, 12:36 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

Look in your home tpl.

Notice all the includes like?

{include template.tpl}

Well if you put

{include template.tpl menu_content="my menu is here"}

your passing a paramater called menu_content to the sub template, in your case menu.tpl, in menu tpl you'll see {$menu_content} this will be replaced with whatever you passed in the include statement
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
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 03:25 PM.

   

 
X-Cart forums © 2001-2020