We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28353
    • 28 Posts
    hey guys,

    the document tree displays the title of my document but i want it to display the menu title of my document in the manager! how can i change this so that it works like the earlier versions?

    thanks,
    stalwil
      • 20413
      • 2,877 Posts
      Call Document Variables like tvs [*menutitle*]

      http://svn.modxcms.com/docs/display/MODx096/Document-Specific+Resource+Fields

      //SORRY FOR NOT READING VERY WELL.
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 28353
        • 28 Posts
        thanks for the reply, but what im talking about is that when you login to the manager you can see your tree on the left side with the name of your pages that you have created. those names are being taken from the title and not the menutitle like it did in the earlier versions. Lets say i create a page, gave it a title(Home - Product - my company), gave it a longtitle (Product by my company) and then gave it a menu title (Home). the document tree on the left side is going to read Home - Product - my company(title). i just want it to read HOME(menutitle) that’s it, not the title of the page just the menu title i specified for it. is there a setting for this?

        thanks,
        • As far as I know the document tree has always displayed the document title.

          However, if you really, really want it to display the menutitle instead, you can make one change to the /manager/frames/nodes.php file. On line 98 change the query being built to have menutitle instead of pagetitle:
                  $sql = "SELECT DISTINCT sc.id, menutitle, parent, isfolder, published, deleted, type, menuindex, hidemenu, alias, contentType, privateweb, privatemgr,
          

          The rest of the tree display code will use the $pagetitle variable, but its value will be the menutitle from the query. There’s no need to change the variable name in all the places it occurs.
            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
            • 28353
            • 28 Posts
            that was the answer! thank you very much. i checked in the same file that you mentioned on an earlier modx version and it did read from the menutitle like i said only it said :

            $sql = "SELECT DISTINCT sc.id, menutitle, pagetitle, parent, isfolder, published, deleted, type, menuindex, hidemenu, alias, contentType, privateweb, privatemgr,


            so im guessing they just took it off the newer version for some reason. Anyway, thanks!