Posted by p4trizio on June 30, 2009 at 12:00am
Jump to:
| Project: | editablefields |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
Hi, is it possible to edit in place multiple values? I mean... not just edit, but also add a new value to the field.
Thank you guys!
Comments
#1
Seconding this request. I am using this module in a drupal application and am designing workflow screens with views, and also using it in some cases for the full node's field displays. Editable fields is great for this - I am using mainly click-to-edit so as to reduce page load time. But I notice so far that the support for cck fields which have multiple values has some problems. (I have tried the latest dev of cck and editable fields but noticed this is still not included in the module's functionality)
Regardless of the type of cck field (i am using filefield, content taxonomy, text fields, images and others) - only the first value is shown when the view or the node is loaded and the field is in click-to-edit mode. When i click-to-edit a field, the multiple values appear, but there is no interface to add new values.
It would be great if this module could fully support multiple values cck functionality in both editable and click to edit mode. This would mean:
- displaying all of the multiple values of the field when the field is loaded in click-to-edit mode (it is important to be able to see all values of a field in this mode, not just when editing)
- include a remove button for each of the multiple values when the user clicks the edit button (or when the node/view's field loads in editable mode)
- include the add another item button, so new values can be added when the field is in editable mode
I believe this would add a lot of value to this already excellent module. If you need more information or clarification about this, let me know - i can take screenshots of my work in progress.
Thanks for your great work!
Paul
#2
Yes this is important for me too!
Thanks.
#3
it would be great to get some sort of response from the maintainer(s) of this module as to whether this might be able to be fixed or not.
It's a great module but it really falls over in a situation like this where multiple values need to be viewed and managed, and means you have to go back to editing the node.
I have an application underway that needs this - if it doesn't look fix-able in the near short term it probably means abandoning this module and finding another way.
I'd be willing to contribute some $ for this fix, anyone else?
#4
I don't have coding skills, but would be willing to help out with testing. I don't use this on a commercial site, but I could contribute beer/pizza/book money if it would help. As mentioned already, allow editing of multiple value CCK would really make this module even more useful.
Thanks
#5
Hi guys, I solved my problem swotching to panels and views.
I make an example: i want to show a project (node) and the registered user must have the ability to upload a file, but not to edit the node.
I made a panel page to show the elements of the node (title, body, etc). About the attachments, I created a view of nodes "attachments" (I created before). In this way I have not only the list of files upload by users, but also the authors.
This solution of course was the best for my project. Hope it can be helpful for someone else!
Check at www.studentimacerata.it under the section "didattica".
Patrizio
#6
unfortunately my problems with this module can't be solved as easily.
i need to have custom built views which are capable of displaying multiple values when in 'click to edit' mode - and currently that doesn't happen.
also, the need to properly support adding a value or removing when the widget is a cck textfield, cck filefield etc is really important.
its quite frustrating to have this issue sit here for over 2 months without any acknowledgement from the maintainers.
is this something that's just too hard? is it feasible or planned in a future release? would a donation of time for testing or a financial contribution assist in solving this problem?
a short response to this would be most appreciated :)
#7
same issue here
need the ability of adding more values to a regular textfield in editable mode
#8
Well i checked out editview as an alternative - it seems to handle multiple values and file fields quite well, but i find the interface a bit limiting and clunky for the types of views i'd like to offer users. I'm using it in a few applications but not totally satisfied.
Being able to have some views fields as non-editable, and others either editable/click-to-edit, and the idea of click-to-edit in general is where editable fields has it over editview imho. It's shame its being held back by not handling multiple values or filefields properly.
I actually think this is the most important views extension module - as it can totally redefine how people work with drupal content.
I'd be willing to discuss sponsoring further work on this module so that it can handle multiple values and file fields ... let me know if there's any interest there.
thanks for a great module so far :)
#9
I've dug into this.
It's "broken" because of the way CCK core handles multiple values.
- A widget can elect for the CCK core to handle multiple values on it's behalf.
- The CCK core 'calls' the widget for each instance of the field,
- in edit mode (and only in edit mode), plus one more (for adding a new value).
- When you replace the widget with the editable fields widget, then editable fields is only called once per field instance that would be shown, it does not get called 'plus one'...
- net result, we only get to edit the existing fields....
Best I can tell, the solution to this would be to integrate editablefields in with CCK more tightly... In that case, CCK could (i guess) notice that it was using an editable field, and that the field would, in edit mode, get an extra instance.. and therefore it could call editablefields one more time....
The only other solution would be to somehow hack in an extra field -- whcih would be possible, but - yukky messy....
Maybe this issue shoudl be cross posted into the CCK lists, and see what people there think....
Cheers
Mark.
#10
Hi Mark
Thanks for the reply and for looking in to this. I understand the issue's not that easy to resolve given how much it relies on CCK. I definately think it would be worth raising this with the CCK developers and see what they have to say. Much better than a dirty hack.
Even if it takes a while, getting this issue resolved will add a stack of value to the module, and drupal as a whole. Every time i show clients a click-to-edit view workflow screen for their data they love it! So much better than editing each node individually.
Keep us posted on the progress and if there is a need to donate for this issue to be worked on :)
Thanks,
Paul
#11
see:
http://drupal.org/node/681470
#12
thanks for raising this issue with the cck team, and here's hoping in D7 that editablefields can work with cck a bit deeper! thanks for your time, excellent module :D
#13
The best workaround i could find for situations where i wanted to set up views which could let me edit certain fields of a node (and thereby avoid having to visit the node, edit and submit) involves modal cck editor - http://drupal.org/project/modalframe_cck_editor and lightbox2 - http://drupal.org/project/lightbox2
Modal CCK Editor is great but normally only works on a node.
But when combined with views and lightbox 2 in a tricky way, it means i can rewrite any view field to open me up a lightbox iframe with a cck modal window which has either a field or a fieldgroup to edit. Note - you don't even need to enable modal cck for any of the node's fields or fieldgroups - this approach works just by having the module installed!
I'm rewriting a view field to be something like this: (assuming that node title and node nid are loaded in to the view)
<a title="Caption here - something like edit field name for [title]" href="/node/[nid]/edit?modalframe_cck_editor=field_name_goes_here" class="modalframe-cck-editor-button-edit" rel="lightframe"><div class="editablefields_clicktoedit_message">[edit]</div></a>[field_name_goes_here]Using the
<div class="editablefields_clicktoedit_message">[edit]</div>as the link means it even looks like a click-to-edit field, so it sits alongside the rest of my editablefields nicely.So this approach means I can easily launch editing interfaces for fields or fieldgroups which have multiple values, file fields and anything else tricky that editablefields has issues working with.
The only problem so far is that the view isn't refreshed when i save the field(s) in the cck modal window, but i'm working on that.
Hope this is helpful to anyone having similar issues to me with multiple values, file fields etc!
Thanks again to the editablefields developers, its a great module which I hope will get continued attention :)
Paul
#14
Subscribe. Anyone been looking at this anymore since a year ago?
In the mean time, I've found this module to handle editing of lists: http://drupal.org/project/popups_subedit
I don't see why this couldn't be done inline with ajax.
#15
@gthing: I've started some work in this issue but I didn't finish yet: #972044: Fully support multi-valued CCK fields
I'll mark this issue as duplicate as there is where we will keep the updates coming.
Thanks,
Andrei