| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
navbar with search | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
navbar with search
Hi guys,
I am creating a custom skin/theme module and wanted to keep the default xcart navigation bar I did want to make a small tweak to the navigation bar by adding the xcart search from the header, how would I go about adding that as a line item?
__________________
x-cart business 5.2.14 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: navbar with search
It depends on the theme that you use.
The template that renders the top menu in the standard theme is this one: skins/customer/layout/header/top_menu.twig Crisp White uses this template file: skins/crisp_white/customer/layout/header/top_menu.twig However, you don't have to replace these files with yours as the files has the widget_list() function in their markup. What the function does is displaying nested PHP classes and Twig templates injected into these "lists" with the @ListChild directive. So, if your module alters one of these themes, you can use @ListChild in your templates and widget classes to add them to "header.menu" and "header.menu.after" (Crisp White only) widget lists. You can read more about @ListChild here: http://devs.x-cart.com/en/basics/templates_and_interfaces.html
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|