Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Scott Robinson 54 posts 75 karma points
    Jun 07, 2013 @ 10:51
    Scott Robinson
    0

    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

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jun 07, 2013 @ 19:27
    Matt Brailsford
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft