0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

SOLVED Menu definition

    • Joombler's Avatar
    • Joombler
    • Elite Rocketeer
    • Posts: 715
    • Thanks: 5

    SOLVED Menu definition

    Posted 3 years 4 months ago
    • [J!4.0.6 with Gantry v5.5.9 / g5_hydrogen]

      Hi All,
      I am not quite sure if this question belongs in this forum - please move if wrongly placed here.
      Just ran into an issue with the definition of a created menu item.
      For an registered popup component (Engagebox) I had to define the ID of the menu item 'Contact' @ cloudzeeland.nl
      In the Menu configuration the ID of the Contact page is 140 (see attachment), but that didn't work.

      Found out that the ID is named .g-menu-item-140 a

      Can you explain if this is always translated in such? Where can I retrieve this information in my J!4 backoffice administration?
      Thanks.
    • Last Edit: 3 years 4 months ago by Joombler.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Menu definition

    Posted 3 years 4 months ago
    • It's not "translated" that's the class used on the menu item that gantry then uses to style the menu. the "140" is the menu item ID used to make it unique. It's also in there so we can mark the "active" menu item too.

      To see all the menu items you look in Joomla menu item and it shows all the IDs of each menu item. The classname gets added in core Gantry 5 coding in php and js (so you can't change it).

      Joomla creates the menu item IDs used on menu items you cannot specify this yourself.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Joombler's Avatar
    • Joombler
    • Elite Rocketeer
    • Posts: 715
    • Thanks: 5

    Re: SOLVED Menu definition

    Posted 3 years 4 months ago
    • Mark, so it is a css class related thing. Where can I retrieve this information when I create a new menu item? Still have no clue where I can find that class name...
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Menu definition

    Posted 3 years 4 months ago
    • Huh? sorry but I have really no idea what you're asking or really why.

      The class on the menu item is constructed dynamically by Gantry 5 as the page is rendered.

      Why not tell me the issue rather than what you think is the solution and I'll happily investigate.

      Please would you post your URL, superuser id and pswd in the secure tab of your post and I'll have a look for you.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Joombler's Avatar
    • Joombler
    • Elite Rocketeer
    • Posts: 715
    • Thanks: 5

    Re: SOLVED Menu definition

    Posted 3 years 4 months ago
    • MrT wrote:
      Huh? sorry but I have really no idea what you're asking or really why.
      Mark, the reason I asked is that I use a pop-up component for J!4 called Engagebox.
      This component normally checks the real ID number of a menu item (three digit code), but due to G! active (I understand now), this id has changed in the format I wrote about in my initial message.

      So the solution for other popups that are linked to menu items is that I have to know how I can retrieve the 'dynamical constructed' menu item ID is so that I can use it in future menu extensions.

      Thanks, Jos
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Menu definition

    Posted 3 years 4 months ago
    • So really what you’ve saying is that the extension only works with menus that are rendered by joomla itself… i.e. The joomla menu module. Nothing I can do about the way g5 renders menu items - it’s been that way since day 1 of g5. Why don’t you just use lightcase as supplied with g5?

      Regards, Mark.
    • Last Edit: 3 years 4 months ago by MrT.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Joombler's Avatar
    • Joombler
    • Elite Rocketeer
    • Posts: 715
    • Thanks: 5

    Re: SOLVED Menu definition

    Posted 3 years 4 months ago
    • Yes, your are right. In fact I will start using that one, thanks.
      You know, using Wordpress is sometimes so tempting, but as a J! addict, I just don't want RT let go.
    • Last Edit: 3 years 4 months ago by Joombler.

Time to create page: 0.085 seconds