We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28025
    • 50 Posts
    Hi Everyone,

    I’m almost finished with a new site (www.pccsm.net) but ran in to a pretty basic problem that I just can’t seem to handle...

    In the horizontal topmenu, the link "Services" shouldn’t link to anything when clicked on, since we only want the dropdown menu under it to be clickable links. Isn’t there a way that it can link to a # (nothing)?

    Hope I’m explaining correctly so you know what I mean smiley

    Thanks in advance for any help you can give on this.


    Cheers,
    Soren
      • 1122
      • 209 Posts
      Nice site. As regards your problem. Your element "Services" (whose id=15) should be not a document, but a weblink -- then in its attributes you will be able to link it to none (#). Very nice site.
      • &categoryFoldersTpl: 

        If defined, then this template will define the output for rows that (a) are parents, and that (b) have no associated document template or (c) have their link attributes fields set to rel="category".

        This is useful because sometimes web designers use "empty" parents to provide category header information for a set of subsidiary pages, and you don’t want active links to these header pages that have no web page template.
        So if you give the parent document a template of "none", or set its link attribute to rel="category", you can can use the specified template to control its appearance, including no link at all.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 7231
          • 4,205 Posts
          So if you give the parent document a template of "none", or set its link attribute to rel="category", you can can use the specified template to control its appearance, including no link at all.
          Wow, that is a great tip. I saw that feature but did not quite understand it on my own. Now it seems so clear, thanks grin
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don't know what it is.
            Do you, Mr. Jones? - [bob dylan]