Navigation Inline Menu Dynamic Content

I see that the Navigation Inline Menu in Cornerstone (Pro) now offers the ability to define via dynamic content. Can you provide more details?

Specifically, I have an ACF field containing a text string on every page. I would like that field to drive the nav menu used (with the menu having the same name as the field content).

I tried to simply use {{ post.meta({“key”:“context”}) }} but that didn’t render (though it returns the correct value in a text element).

Thanks!

Hello @ddoligalski,

Thank you for the inquiry.

Where did you get this information? At the moment, you can only select a sample menu or menus that were created in the Appearance > Menus panel. It’s not possible to pull a menu via an ACF field, but maybe we’re just missing something. Please provide a link to the documentation or reference.

Best regards.

I am trying to use an ACF field to specify the defined menu to display on that page. I am not sure what value the inspector is needing.

Recently, the inspector offered the DC disk icon for the Menu item, and ACF is available therein. Or possibly, I need to use Twig with this?

In dev tools, I see that the Menu item in inspector is hoping for ‘menu:n’ to be set, and I tried to use that in the ACF field, but that failed as well.

Hope I explained myself better.

Hey @ddoligalski,

Are you referring to this?

It does not do anything at the moment. I believe that this could be a bug or a misplaced dynamic content function. I will refer to our developers so we can get a detailed explanation for its purpose, (maybe in future releases).

Please bear with us.

Sounds good, thanks. I will revert to my old approach of having multiple menus with each having a condition using the custom field. Not as pretty, but it works.

Hello @ddoligalski,

Glad that things are well for you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.