We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36635
    • 41 Posts
    I have a client that really loves to put keywords in the title tag on documents and that makes it really hard to find which document you’re editing because they are so similar and really long...

    So, I mod’d the tree display to put the ’alias’ in green before the document title. Works good to find documents fast by eye. These are mod’s to Revo core code so you’ll have to reapply after any upgrade.

    For Revo 2.0.7-pl7
    /core/model/modx/processor/resources/getnodes.php, line 150, change to:

    ’text’ => ’<em>’ . strip_tags($item->alias) . ’</em> ’ . strip_tags($item->$nodeField).’ <span dir="ltr">(’.$item->id.’)</span>’,

    and to style the element,
    /manager/templates/default/css/modx_min.css
    (add to beginning of file)
    .x-tree-node-anchor em {
    color: green;
    }

    As you can see you could also move the document id too if you want.
    Hope this helps someone else too!