I'm sure this is really easy but I'm currently integrating foundation4 in to Umbraco. Everything works great except a small issue with the menu.
For the menu to work at the smallest media query view (phone etc) any menu item that contains children cannot link to a page but simply be a menu item with no URL. How do I do this in umbraco? A redirect is no good. I just want a menu item with a "#" in it's href. I tried adding a new doc type with a umbracoUrlName and a textstring value of "#" thinking that would work but it broke the site for some reason.
It's not possible to have a node with "no url", so you are probably better off putting the logic for this within your Partial/Macro/Xslt to just not render the URL for those pages instead, thought this would then be the case for both the desktop and mobile versions of the site.
Another, simpler alternative, might be to just run some JS to prevent the default click event from executing on mobile devices.
Creating a page/folder in website with no URL
Hi,
I'm sure this is really easy but I'm currently integrating foundation4 in to Umbraco. Everything works great except a small issue with the menu.
For the menu to work at the smallest media query view (phone etc) any menu item that contains children cannot link to a page but simply be a menu item with no URL. How do I do this in umbraco? A redirect is no good. I just want a menu item with a "#" in it's href. I tried adding a new doc type with a umbracoUrlName and a textstring value of "#" thinking that would work but it broke the site for some reason.
Any thoughts?
Thanks for any help.
Scott
Hi Scott,
It's not possible to have a node with "no url", so you are probably better off putting the logic for this within your Partial/Macro/Xslt to just not render the URL for those pages instead, thought this would then be the case for both the desktop and mobile versions of the site.
Another, simpler alternative, might be to just run some JS to prevent the default click event from executing on mobile devices.
Hope that helps
Matt
is working on a reply...