Exxo 0 Posted January 12 Hello guys, how can i use variables such als $productgroups in menu.tpl. Because currently it's only working on services page. Thanks! 0 Quote Share this post Link to post Share on other sites
brian! 3257 Posted January 13 22 hours ago, Exxo said: how can i use variables such as $productgroups in menu.tpl. menu.tpl ? are you using a custom client theme?? 22 hours ago, Exxo said: Because currently it's only working on services page. if it's only available on one page, you might need to use a hook to recreate the array on other pages. 0 Quote Share this post Link to post Share on other sites
Exxo 0 Posted January 13 Ah, thought menu.tpl was a default one. It's my sidebar for navigation. And in the submenu of "services" I want to show all productgroups with {foreach from=$productgroups item=productgroup}. But currently it's only working on the services page. I have heard of hooks but never really understood. Can u give me an example for this? 0 Quote Share this post Link to post Share on other sites
brian! 3257 Posted January 18 On 13/01/2021 at 21:06, Exxo said: I have heard of hooks but never really understood. Can u give me an example for this? I wouldn't mind seeing a screenshot of that menu, or link to your site, because depending on what it is, it could be a navbar (displayed vertically), a sidebar or a HTML menu - any of which might require a different hook to make this work. 0 Quote Share this post Link to post Share on other sites