| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Editing menu.tpl. | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
My template looks like this
Code:
The template uses $menu_content to show what is displayed... Where can I edit $menu_content ???? |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
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 |
|||||||||
|
#3
|
|||||||
|
|||||||
|
lol I still don't get it.
|
|||||||
|
#4
|
|||||||||
|
|||||||||
|
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 |
|||||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||