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

Template structure & variables- e.g., $link_begin

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-22-2004, 05:52 AM
 
jparadise jparadise is offline
 

Newbie
  
Join Date: Sep 2004
Location: New York, NY
Posts: 7
 

Default Template structure & variables- e.g., $link_begin

I'm working on modifying the templates and am trying to get a handle on all the variables.

In menu.tpl, what feeds the variable {$link_begin} //full source code below?

I can't figure out what file is passing that variable.
Thanks!
Joshua

Code:
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> <TR> <TD class=VertMenuBorder> {*controls hairline border around all side menu tables was cellPadding=1 cellSpacing=1 *} <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> <TR> <TD class=VertMenuTitle>{$link_begin}[img]{$ImagesDir}/{$dingbats}[/img]{$link_end} {if $link_href} <font class=VertMenuTitle>{$menu_title}</font> {else} <font class=VertMenuBoxNewsTitle>{$menu_title}</font></TD> {/if} </TR> <TR> <TD class=VertMenuBox> <TABLE border=0 cellPadding=5 cellSpacing=0 width="100%"> <TR> <TD>{$menu_content}</TD></TR> </TABLE> </TD></TR> </TABLE> </TD></TR> </TABLE>
__________________
X-Cart Info
Version: 3.5.11
OS: FreeBSD Unix
Location: New York, NY

Joshua
Ogden Little Bags
http://www.ogdenlittle.com
Reply With Quote
  #2  
Old 09-22-2004, 05:55 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

see help.tpl for an example
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 09-22-2004, 06:04 AM
 
jparadise jparadise is offline
 

Newbie
  
Join Date: Sep 2004
Location: New York, NY
Posts: 7
 

Default ok, I see that it works, but what is feeding the variable?

shan,

ok, I see that help.tpl uses that function, but where does it pull the value from? help.tpl assigns the link values, but I'm trying to figure out how this works. How does menu.tpl know what goes into $link_begin?

thanks for your help with my newbie questions!

Joshua
__________________
X-Cart Info
Version: 3.5.11
OS: FreeBSD Unix
Location: New York, NY

Joshua
Ogden Little Bags
http://www.ogdenlittle.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 12:14 AM.

   

 
X-Cart forums © 2001-2020