| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Location of $title | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() While working with dialog.tpl, I notice there is {$title} which is loading the current category name on top of my category pages. Now I'm trying to manipulate this and not show a $title if its a certain category , but can not find the code that actually defines the $title on the php and smarty side.
__________________
v4.1.8 GOLD |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#3
|
|||||||
|
|||||||
![]() yup got it thanks
__________________
v4.1.8 GOLD |
|||||||
|
|||
X-Cart forums © 2001-2020
|