You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a render_block that displays a nav-item on specific portions of my website and I would like a "default" type menu displayed in its place when no nav-item exists.
I'd love to be able to do something like
{% render_block "nav-item" %}
{% emptyblock "nav-item" %}
my default menu here which only displays when there are no rendered nav-item blocks.
{% endemptyblock %}
I was able to get a working sample going in development by copying addtoblock and tweaking things. I'm not sure if its an idea worthy of actually adding to this project.
I have a render_block that displays a nav-item on specific portions of my website and I would like a "default" type menu displayed in its place when no nav-item exists.
I'd love to be able to do something like
I was able to get a working sample going in development by copying addtoblock and tweaking things. I'm not sure if its an idea worthy of actually adding to this project.
The text was updated successfully, but these errors were encountered: