Exxo Posted January 12, 2021 Share Posted January 12, 2021 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 Link to comment Share on other sites More sharing options...
brian! Posted January 13, 2021 Share Posted January 13, 2021 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 Link to comment Share on other sites More sharing options...
Exxo Posted January 13, 2021 Author Share Posted January 13, 2021 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 Link to comment Share on other sites More sharing options...
brian! Posted January 18, 2021 Share Posted January 18, 2021 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.