Jump to content

Use $productgroups in menu.tpl


Exxo

Recommended Posts

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated