View Single Post
  #2  
Old 04-15-2008, 06:19 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Location of $title

Hi Luxor,

There are a few ways as to how a title can be formed, in x-cart it is commonly done through an {include}

Take skin1/customer/main/subcategories.tpl for an example, near the bottom of the code you'll find...

{include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra='width="100%"'}

Above, the title variable has been created with a value of $current_category.category (Or, in other words, a newly created title variable has now been populated with the current category).

And also note, $content is passed from a {capture} too

Try pasting this somewhere for a quick example...
{include file="dialog.tpl" title="I'm a title" content="nice!" extra='width="100%"'}


Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote