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
Call Document Variables like tvs [*menutitle*]
http://svn.modxcms.com/docs/display/MODx096/Document-Specific+Resource+Fields
//SORRY FOR NOT READING VERY WELL.
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,
-
☆ A M B ☆
- 24,524 Posts
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.
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!