In short, I want to set up a single form but within it multiple entries (from the same channel). Each entry can be edited one at a time. In fact, (at this time), I’m only looking to edit one field from the channel. I’m not looking for a single mass form (because it’s not the best UX and I just don’t think it’s possible. So I’ve settled for something clean & simple.)
I’ve set up (read: having working) a simple snippet of jquery that I bind to an edit link next to each entry. It hears the click of an edit link and a text box appears next to the field to be edited along with submit button. therefore, at this point there’s only one entry “open” to being edited. That keeps me within the confines of SafeCracker and EE, correct? Prior to the form being serialized I’d change the entry_id in the form’s hidden fields and then let jquery.form.js handle the rest. Again, from a form perspective there’s only a single entry being updated (via Ajax).
Unique and pretty cool but not rocket science, right? 😊
However, I can’t get the exp:channel:entries loop to spit out more than one entry within the form tags. I’ve even gone so far as to take out the Safecracker tags and am nowgenerating the form and hidden fields “manually”. That is, I’ve coded them into the template instead of letting Safecracker do that direct work.
Still something within the form seems to be stopping multiple entries from being listed.
WTF??! :(
Is this some sort of parsing issue perhaps. (Note: That just hit me. I’m gonna see about doing the listing in an embed). Might I have to sidestep native EE with some PHP to get around this built-in (?) limitation.
Finally, presuming I go this route - btw, I don’t have much of a choice given the biz requirements - are there any concerns I should have about security, etc. Am I opening up a hole in the EE / SC armor? I’m using the XID_HASH to assign a value to that hidden field. What else must I be concerned about?
Help? Please?
Mark