We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8872
    • 41 Posts
    Is there a way to create custom manager page which will list subresources of one resource id in tabular form? Like:

    id      title           intro                     image                  edit
    1       Title 1         some intro text...        url or preview         click to edit
    2       Title 2         some other text...        url or preview         click to edit
    


    I think you get the idea, it might even have the 'Sort by' column but optional.

    I just need to know whether or not this is possible with Revo, so I can dig deeper into it, or to look for alternative solution. Thanks.
      • 3749
      • 24,544 Posts
      It's definitely possible, though I think you could also do it in the front end with getResources and NewsPublisher. That might be easier, since doing it as a CMP would probably require some ExtJS voodoo.
        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
        • 8872
        • 41 Posts
        Thanks Bob, was thinking about that as well. Probably will go that route as I'm not ExtJS magician smiley

        Thinking of building custom admin area in frontend, just need to figure out how to do one-click posts (ie on creation post will go into specific folder, using specific template), hope that's possible with your NewsPublisher.

        BTW congrats on your book, going to buy next month.
          • 33968
          • 863 Posts
          Sure it's possible! It's going to take some effort though, but once you've got the hang of that 'voodoo' you'll be able to do amazing things.

          Check out this tutorial for starters (skim through part one but Part 2 is what you'll be interested in):
          http://rtfm.modx.com/display/revolution20/Developing+an+Extra+in+MODX+Revolution,+Part+II
          Also:
          http://rtfm.modx.com/display/revolution20/Custom+Manager+Pages+Tutorial

          You'll need to use a Grid in a similar way to the Doodles extra, and your back end 'getList' processor will need to return the resource data you require.

          Sorting is built in smiley
            • 3749
            • 24,544 Posts
            To answer your question: yes, NewsPublisher will let you set the parent folder and template in the snippet tag.

            Lucas is right, though, CMPs are very cool if you're willing to spend the time developing them. An additional consideration, however, is that if you let users into the Manager, you need some complex permissions to keep them from doing harm and will also probably want to customize the Manager extensively and use Form Customization to customize the Create/Edit Resource form.

            Before you put a lot of time into NewsPublisher, I should warn you that it doesn't handle file TVs -- so if you need them, you'll have to go another route.
              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
              • 8872
              • 41 Posts
              Spoiled for choice smiley Thank you both, I think I will do it on per-project basis; for this one I need files/images - hopefully it will be possible in near future (thanks for the tip). @Bob - what about other tvs, guess they're all ok?
                • 3749
                • 24,544 Posts
                AFAIK, all the other TV types are fine (except maybe resource list).

                As for file TVs, every few months I spend several long days trying to get some kind of file browser to work in the front end with NewsPublisher and then give up. Someday . . . wink

                Some time ago, a very capable NewsPublisher user did get it to work by sneaking the user into the Manager, but I was afraid that might introduce security issues. I didn't have time to check it out then and I can't seem to find his work now. TinyMCE has an add-on file browser, but they charge for it. sad

                  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