We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14875
    • 4 Posts
    I’d like to be able to create a table that the user can edit without using TinyMCE. For instance, I have a client with a list of published works. She wants to be able to list out title, author, publisher, price, etc for each of these works. And she wants the ability to add and possibly even rearrange rows. I understand I could use Ditto and make each row a separate page with template variables. But that’s a pretty clunky solution. I’d prefer something AJAX driven but at least contained on one page. Any ideas?
    • By "re-arrange rows" I’m guessing you mean changing the display order... you can get that kind of functionality by changing the menu index for each page... this is assuming that each "row" is a MODx document that you can list and sort using Snippets like ListIndex or Wayfinder or Ditto.
        • 14875
        • 4 Posts
        Quote from: Everettg_99 at Jan 06, 2009, 08:28 PM

        By "re-arrange rows" I’m guessing you mean changing the display order... you can get that kind of functionality by changing the menu index for each page... this is assuming that each "row" is a MODx document that you can list and sort using Snippets like ListIndex or Wayfinder or Ditto.

        Right but I’m asking for a solution that doesn’t require each row to be a separate page. This is counter-intuitive to an average user when they expect all the content to show up on one page. And it makes editing a headache for them. Any other suggestions?
          • 3749
          • 24,544 Posts
          MODx could really use a simple Ajax-based table editor, but I’m not aware of one at present. I think the closest thing would be eForm and eForm2DB.
            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
          • Aahh... yes... that SEEMS like it would be simple to the average user, but something that remotely resembles Excel where you can move rows around can be a tricky proposition when it comes to the technical realities of it.... unless you’re prepared for a bit of a jump into code-infested waters, the document solution might be the easiest way. If you’re ready to take the plunge, I can think of a couple places I might start, but they seem entirely too complicated. Someone has got to have a better suggestion than the module/snippet thing I’m thinking of...