We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    I think it would be handy to apply a style in the document tree to the document you are currently editing.
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 33337
      • 3,975 Posts
      Its available, but somehow not working while you edit by right-clicking.

      If you first click, then click edit button in right frame, the highlight stays on current doc.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 14050
        • 788 Posts
        You are definitely right. I guess I just right click and go to edit most of the time. So I guess my wish should be changed to having it also style the selected document in the tree when right clicking it to edit the document.
          Jesse R.
          Consider trying something new and extraordinary.
          Illinois Wine

          Have you considered donating to MODx lately?
          Donate now. Every contribution helps.
          • 23491 ☆ A M B ☆
          • 1,056 Posts
          Quote from: jesster444 at May 17, 2007, 02:15 AM

          You are definitely right. I guess I just right click and go to edit most of the time. So I guess my wish should be changed to having it also style the selected document in the tree when right clicking it to edit the document.

          OK! Here is the updates to make this request work as desired.

          NOTE: The suggested modifications below are based on the 0.9.6 rev 2767 build

          In manager/frames/tree.php, make the following additions:

          Insert the following code on right before Line #502:
          			setActiveFromContextMenu( itemToChange ); //  pixelchutes
          


          Insert the following code on right before Line #499:
          			setActiveFromContextMenu( itemToChange ); //  pixelchutes
          


          Insert the following code on Line #494:
          // pixelchutes - 12:54 PM 6/4/2007
          // Set 'treeNodeSelected' class on document node when editing via Context Menu
          function setActiveFromContextMenu( doc_id ){
          	$$('.treeNodeSelected').removeClass('treeNodeSelected');
          	$$('#node'+doc_id+' span')[0].className='treeNodeSelected';
          }
          
          


          :)
            Mike Reid - www.pixelchutes.com
            MODx Ambassador / Contributor
            [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
            ________________________________
            Where every pixel matters.
            • 33337
            • 3,975 Posts
            Thank you Mike! smiley
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link
              • 23491 ☆ A M B ☆
              • 1,056 Posts
              Quote from: zi at Jun 04, 2007, 02:30 PM

              Thank you Mike! smiley

              No problem, Zi!

              Yeah, so I’ve been using this update all day and I didn’t fully realize how much I was missing it until now smiley

              Next stop implementing into current SVN...
                Mike Reid - www.pixelchutes.com
                MODx Ambassador / Contributor
                [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                ________________________________
                Where every pixel matters.
                • 23491 ☆ A M B ☆
                • 1,056 Posts
                Quote from: pixelchutes at Jun 04, 2007, 07:41 PM

                Next stop implementing into current SVN...

                As of SVN Revision 2777:

                Highlight current document in document tree corrected! (when editing/viewing via right-click context menu)
                http://modxcms.com/bugs/task/691 implemented!

                Please let me know if I missed any
                  Mike Reid - www.pixelchutes.com
                  MODx Ambassador / Contributor
                  [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                  ________________________________
                  Where every pixel matters.