We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19250
    • 10 Posts
    Hey there... i am using the DropMenu or transmenu and i have a page or folder that i have other pages in... to make a sub nav... but i do not want to parent page to acctually be a page... example:

    Product
    item
    item
    item
    item

    I do not want product to be a page to click on... but i dont know what to do... help plz i upgraded to the new modx so

    thanx miah
      • 4643
      • 34 Posts
      Hi,
      This is how I solved the same problem on my main site. I have a sub-structure there for different languages so there are folders like:
      www.mysite.com/klingon/

      and underneath, there are a number of pages, let’s say the first klingon page is:
      www.mysite.com/klingon/HeghlumeH-QaQ-jajvam.html

      Solution:
      Create a template for "folders" (they are documents as well, but the ones you don’t want anyone to see, just used as folders for the sub-documents). Here’s my "folder" template:

      --------------------------------------------------------------
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <base href="http://www.mysite.com/">
      <meta name="robots" content="noindex">
      </head>
      <body>
      [*sitemap_exclude*]
      [!FirstChildRedirect!]
      </body>
      </html>
      -----------------------------------------------------------

      Notes: I’m using the snippet FirstChildRedirect to make sure that anyone who might type in the folder directly won’t see it, instead they will be redirected directly to the first sub-document. I also use the Sitemap snippet to create a Google sitemap - and of course we don’t want this "folder" shown to Google as a document.

      Now the KLINGON folder will not show up when you browse to it, but the first sub-document will instead. You can then choose if you want the KLINGON folder to show up in menues or not.
      I’ve chosen to have it there, so my menue will look like this:

      Index page
      some other page
      KLINGON
      first klingon page
      second klingon page
      OTHER LANGUAGE
      etcetera

      If anyone actually klicks on "KLINGON", they will get straight to the "first klingon page"

        • 7923
        • 4,213 Posts
        If you would use Wayfinder, you could template the parent rows to not have links..


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 19250
          • 10 Posts
          Thanx much i will try that out and see if it works for me!!! i appreciate all the help!