We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10525
    • 247 Posts
    I know this has been asked before ~4 years ago, but there was no solution provided.

    I'm using modx 2.3.3.

    I want to locate a resource, either from ID or title.

    The search box in the header seems to search only the text of resource titles and doesn't handle integers as IDs.

    Using the Content > Search page I can enter a title or an ID, hit return, and the resource I'm looking for will be listed below. But that's where it ends. How do I find the 'found' resource in the resource tree?...

    This question has been answered by Gav. See the first response.

    • Using the full Search page (which can be added to the menu if it isn't there) you can right-click on the found resource to open it for editing. Check the Settings tab to see its Parent. It is awkward, since if it's nested deeply in the tree you'll have to open that parent to find its parent, etc...

      It would be nice if, when a resource is opened for editing by any means, it was also highlighted in the Tree, with its branch being opened to show it if necessary. But I'm not even sure if that is possible, and it would certainly take some fancy javascript DOM manipulation if it is.
        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
        • 3749
        • 24,544 Posts
        Unless things have changed, you can't search by ID, only by pagetitle (or, I think, alias).
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
        • If you install the full Search feature in the menu, you can search by quite a lot of fields. It's still there, it's just not in the menu.



            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
          • You can add it to the Menu by creating a new menu item with the following properties:

            Parent: Content
            Lexicon Key: search
            Description: search_desc
            Permission: search
            Action: search
            Namespace: core
            Icon: images/icons/context_view.gif
              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
              • 3749
              • 24,544 Posts
              Good to know. smiley

              I see this is on the Site menu in 2.2. I can't believe I missed it all this time. wink
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 42562
                • 1,145 Posts
                Just saw this, hail to serendipity.
                I spend most of my time zooming in and out of the browser in order to view the last item in my long Extras dropdown menu that I can't see the rest of MODx.
                  TinymceWrapper: Complete back/frontend content solution.
                  Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                  5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
                • discuss.answer
                  • 10525
                  • 247 Posts
                  Thanks Susan,

                  I did see the "Edit" command when right-clicking on the found resource but it didn't occur to me that this would open the page. I suppose I expected a command named "Open", "Go to" or "Open page" etc.

                  BTW I didn't have to add anything to my menu, the search function was there already.

                  Bob, you definitely can search on resource ID.

                  OK, so I can get to the page, now we just need a way to open the tree. As you say Susan, this is awkward. It may require several searches to get to tease out the path to the resource, and then you'll have to write it all down on a piece of paper to remember it!

                  As for fancy javascript DOM manipulation to open the tree, I would have expected there to be a pretty straightforward function in the tree JS to do this...

                  I think this would be a good place for some improvement of the modx manager. After all, modx is for developers to create amazingly intuitive websites, so surely it should be the daddy of that and set a good example! ;-)
                    • 3749
                    • 24,544 Posts
                    Don't forget the "Recently Edited Resources" widget in the dashboard. You can right-click on a resource and edit it. I've never looked for it, but there's probably a way to make the list longer.
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting