We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28554
    • 201 Posts
    Heya guys smiley

    I think this would be best explained by stating the case I want to use this for:

    One of my clients is a booking-agency for DJ’s. DJ’s have several TV’s (MySpace link, SoundCloud-URL for a demo-set etc.), but they also have "releases". A release has a title, artist and label. I want them to be able to add a release without having to add an entire page. I sort of stumbled across the Data Grid widget, but I’m completely stumped as to what it does exactly and the whole thing looks too frightening to just start experimenting wink. Could you guys point me in the right direction if there’s a methodic approach to solving this sort of issue?

    Thanks!
      • 22840
      • 1,572 Posts
      Can you not use ditto for that, create 2 tv’s ( artist and label ) and assign them to a blank template, then create a chunk calling in [+pagetitle+][+partist+][+label+] and call the chunk on the page you want it displayed via ditto ??

      Or have I miss understood what you actually want ??
        • 28554
        • 201 Posts
        Quote from: paulp at May 25, 2010, 05:53 PM

        Can you not use ditto for that, create 2 tv’s ( artist and label ) and assign them to a blank template, then create a chunk calling in [+pagetitle+][+partist+][+label+] and call the chunk on the page you want it displayed via ditto ??

        Or have I miss understood what you actually want ??

        Thanks for the reply. The effect is what I want, but I don’t want them to have to create a page for just a release, as it’s not really "full content". Even more so, they’re total idiots (let’s hope they don’t read this forum wink ), and I want them to be able to add releases on the page of an artist, catch my drift?
          • 22840
          • 1,572 Posts
          catch my drift?

          No Not really, Modx outputs pages that are created in the manager and stored in the database, if you want to output something that is created by a user it it going to have to be created as a page with TV’s but you can decide what gets output through ditto, as far as I know that is the only way to do it
            • 28554
            • 201 Posts
            Quote from: paulp at May 25, 2010, 06:29 PM

            catch my drift?

            No Not really, Modx outputs pages that are created in the manager and stored in the database, if you want to output something that is created by a user it it going to have to be created as a page with TV’s but you can decide what gets output through ditto, as far as I know that is the only way to do it

            I understand your point, and I know this is one way of solving it. Ideally, while editing an "artist-page", in the document-editor there’d be a list of releases, with a "plus-icon" below it with which they can add new releases. This would open a dialog in which it only shows the fields I define, and when they press "save"/"ok" it gets added, with a delete-button behind every "row". Thanks for your time so far!
              • 22840
              • 1,572 Posts
              For that you are going to have to edit core files in the manager section and have a new database table as this sort of thing isn’t built into the core, again, you can use ditto for it and i would suggest that would be the way to go.
                • 28554
                • 201 Posts
                That’s a shame... I hate to have them add pages for something like this. Asking them to create a page for this feels a bit ’overkill’ if you know what I mean... I’m gonna go ahead and leave this [OPEN] for a lil’ while, maybe someone has a good approach for this issue...
                  • 26931
                  • 2,314 Posts
                  ... you don’t need to edit core files

                  this could be done with a custom db table and a module. e.g.
                  http://modxcms.com/forums/index.php/topic,44426.msg266285.html#msg266285
                  or
                  http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=http%3A%2F%2Fwbtechnology.ru%2Fpo%2Fmsqcatalog.html&sl=ru&tl=en
                    • 3749
                    • 24,544 Posts
                    Sharkbait’s method is definitely the most efficient and will separate the data from the view (a good thing). It kind of depends on how many pages there would be. If not too many, development would probably be much quicker if you created a front-end form (like NewsPublisher) where the user enters the information and the code creates the new page. If there will be a lot of them, you might want to take the time to use Sharkbait’s method and have the form put the data in a custom table (or use eForm and eForm2DB).

                    In MODx Revolution, I think you would have the best of both worlds with FormIt and a custom hook.
                      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