We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31906
    • 26 Posts
    Hi, I want to add custom content to my custom tab for resources (I need to add there list of entries in my own db table - making a catalog). What’s the best way? Is it custom modResource? If yes is there somewhere manual how to create custom resource class?
    Please advice. It’s quite important for me. Thanks!
      • 36404
      • 307 Posts
      hi,

      you should find interesting things here
      http://rtfm.modx.com/display/revolution20/Custom+Manager+Pages
      :)

      have swing
        réfléchir avant d'agir
        • 31906
        • 26 Posts
        I don’t think that’s what I want sad
        I want to add content to tab in resources.
          • 36404
          • 307 Posts
          on the front end, you can easily do that with snippets (and, maybe custom TVs too)
          but if you want to be able to feed those extra tables from MODx manager, in think the best way will be through custom manager pages.

          have swing
            réfléchir avant d'agir
            • 31906
            • 26 Posts
            That’s what I don’t want. I thought it wouldn’t be such a problem to include it in resource tree.
            Front end is no problem.
              • 36404
              • 307 Posts
              hi,

              i think i haven’t understood exactly what you’re looking for... is it simply that you have pages you manage outside MODx and you just want to add them to the page tree ?

              Have swing
                réfléchir avant d'agir
                • 31906
                • 26 Posts
                OK, let me clarify that.

                When you’re creating modx resource you have there four tabs: Create/Edit documents, Page settings, Template variables and Access Permissions
                I want to create custom resource where would be fifth tab "My Tab". This tab would contain (only) a table with list of catalog items get from db.

                I hope it’s clear now. I think custom resource could handle this but I haven’t found manual or example how to create one.
                  • 36404
                  • 307 Posts
                  ok, now i see what you want, too bad, i don’t know the answer for the moment sad
                  even if it’s not really a cmp but something like customizing an already existing manager page... that maybe where to search

                  now, if i had to do something approaching your needs i would use a (custom) TV and snippets to deal with that extra content but that would not be a fifth tab...

                  have swing
                    réfléchir avant d'agir
                    • 31906
                    • 26 Posts
                    Yes that was also one of my thoughts to use custom TV. But butter is custom resource I think smiley
                    I’m doing reverse engineering right now so hopefully I could bring custom resource release soon.
                      • 3749
                      • 24,544 Posts
                      Adding the tab is easy with Form Customization.

                      http://rtfm.modx.com/display/revolution20/New+Tab

                      You’d have to use a plugin to add your own content to it. I’m not sure how you’d put content on a particular tab, but I’m pretty sure it can be done.

                      http://rtfm.modx.com//display/revolution20/Adding+Custom+Fields+to+Manager+Forms
                        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