Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
what about non-cck fields like the title? any way to make that work as well?
Comment | File | Size | Author |
---|---|---|---|
#50 | editablefields_ctools_plugins.patch | 5.93 KB | ygerasimov |
#50 | uc_editablefields.tar_.gz | 2.17 KB | ygerasimov |
#49 | editablefields_ctools_plugins.patch | 5.85 KB | andreiashu |
#46 | Selection_001.png | 35.02 KB | ygerasimov |
#41 | editablefields_ctools_plugins.patch | 5.85 KB | ygerasimov |
Comments
Comment #1
markfoodyburton CreditAttribution: markfoodyburton commentedI thought I'd answered this somewhere else, but I can't find it.
Personally I object to any non CCK fields. I dont see why body/title/etc should not be CCK fields themselves.
I remove the body and use autotitle for the title such that I have a "clean" object, then I use CCK fields
Thats my personal view.
Technically, there is no reason why non cck fields can not be treated in a similar way to the CCK ones, it's just I didn't write that bit of code. If somebody wants to have a go, I'm happy to help :-)
Comment #2
tanoshimi CreditAttribution: tanoshimi commentedJust wondered if anybody else was interested in this?
I sort of agree with your point regarding any new content types I create myself tend to be CCK-built - however, I also use modules such as Question which define their own content types and I'd like to be able to edit them in editablefields too...
MarkFoodyBurton - can you give an idea of how much would be involved in adding support for this, and whereabouts one should start patching the existing code?
Comment #3
markfoodyburton CreditAttribution: markfoodyburton commentedYeah, it shouldn't be that hard, I can try and help a little...
Drop me an email, and I'll point you at the right places.
(Mind you, thats the least of the problem, the module really needs a much deeper re-write :-( )
Cheers
Mark.
Comment #4
Island Usurper CreditAttribution: Island Usurper commentedThis module would be really good for Übercart products, but only if it affects fields that the module defines. Even if I had to do it over again (and it looks that way for the Drupal 6 conversion), I still wouldn't use CCK for the product specific fields because the rest of Übercart relies on those fields behaving in a consistent way.
I guess this means I'm volunteering to help code in this support. It's just too useful to let go, and I know a few salesmen at my company who would really appreciate this.
Comment #5
markfoodyburton CreditAttribution: markfoodyburton commentedFixed non cck fields are easy (because you know what they are) - but things that some module defines without using the "formalism" of CCK --- good luck :-)
Happy to try and help though :-)
Do you need CVS access?
BTW, in what way is a CCK field not consistent?
If it was me (and I am), I'd use CCK fields for my cart (and I am). I get to choose how I define a product nice and flexibly, I get to use views etc to search/compare/etc etc... I get to use this module to edit the fields... it all hangs together OK... thus far the only reason I can see for not using CCK fields is that it's not so easy to "package them up into a module"....
Comment #6
Island Usurper CreditAttribution: Island Usurper commentedPackaging them into a module is the main reason, really. I want lots and lots of people to be able to use Übercart, and it's a good thing if everybody's installation works the same way, at least in certain respects.
I guess I mean persistent rather than consistent. If some yahoo was able to go in and delete the price field, it'd be really hard for the cart to deal with it.
Also, module-defined fields are easier for other developers to deal with when they make new modules. The domain of CCK's fields extend only as far as a single site, so any system of modules that could be used in more than one place shouldn't rely on a particular configuration without enforcing it.
Comment #7
markfoodyburton CreditAttribution: markfoodyburton commentedThanks for the really well thought out response. I really was asking because I want to know, and you've given me some things to think about. I'm in the process of writing a module, and I'm thinking of adding a cck field that "has" to be used with that module - the question is, what would happen if that field was not there....
Thanks :-)
Cheers
Mark.
Comment #8
matt_harrold CreditAttribution: matt_harrold commentedI would also like to see non-cck fields supported, especially Ubercart product fields, but also Location module, and possibly others.
The ability to make bulk edits is really helpful ... could this additional functionality be considered?
Comment #9
Island Usurper CreditAttribution: Island Usurper commentedWithout CVS access, I can't make very good diff output, but the attached file should give you the general idea.
If the field isn't a CCK field, it looks in the views field definition for the 'form_parents' key. This shows which part of the node form should be retrieved and displayed. Any module developer that wants to support editablefields can put this in their hook_views_tables(). Core node fields can be handled with a hook_views_tables_alter(), I believe.
Comment #10
markfoodyburton CreditAttribution: markfoodyburton commentedDo you want CVS access?
(You should have read access for diff's anyway?)
BTW, I have one or two bug fixes to check in too - so I should do that first!
Cheers
Mark.
Comment #11
Island Usurper CreditAttribution: Island Usurper commentedI can't seem to check out from CVS, so I don't know what the deal is there. I'll see if the Bazaar mirror is up to date, I guess.
Comment #12
markfoodyburton CreditAttribution: markfoodyburton commentedSend me a private message, and we'll take this off line
But, basically you should always be able to check out anonymously.
Comment #13
Island Usurper CreditAttribution: Island Usurper commentedIt's been a while, but the changes were committed. I'd still like more people to test it before a new release is made. You can get the new code on the HEAD branch.
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #15
Duplika CreditAttribution: Duplika commentedI've been trying to use this great module for Ubercart 2.0 (Drupal 6.x) with no success. Is this patch committed to the 6.x version? If so, maybe someone can give me a pointer since I can't use Views and this module to mass edit multiple prices like I did before.
Comment #16
markfoodyburton CreditAttribution: markfoodyburton commented6.x was re-written, I dont think this got re-written.
Please open the issue again on the 6.x branch
Island Usurper MAY have time to look I dont know
Cheers
Mark.
Comment #17
Duplika CreditAttribution: Duplika commentedDone. #451090: Work with non cck fields
Thanks Mark!
Comment #18
garrettc CreditAttribution: garrettc commentedJuanzo, #451090 is a different (but related) issue. That deals with the Views Bulk Operations functionality, this is about exposing editable fields in views.
I'm reopening this issue as I'd like to see this working on D6 too. Editable Fields in conjunction with Ubercart could be a killer combination. I have a client who needs to be able to update stock levels in a catalogue that's too large to make individual node editing practical, but too small for one of the full blown stock management systems. Being able to build them a view of their current products with editable stock fields would be a massive boost to them.
Comment #19
babbage CreditAttribution: babbage commentedMarked #421662: Ubercart non cck fields as a duplicate of this issue.
Marked #451090: Work with non cck fields as a duplicate of this issue.
Marked #611678: Support for Ubercart as a duplicate of this issue.
This would be really good to make happen. Lots of people need this functionality for making rapid editing of Ubercart product prices and stock levels possible. Can Island Usurper or markfoodyburton provide any guidance? Is this is a simple forward port of something above, referred to in #13 above, or is it more complex than that?
Comment #20
Steve Dondley CreditAttribution: Steve Dondley commentedI cast a vote for a one click publish/unpublish editable field. That would be sweet.
Comment #21
Silicon.Valet CreditAttribution: Silicon.Valet commentedHow far along is this now?
Comment #22
Rosamunda CreditAttribution: Rosamunda commented+1 to this!
I would need to make editable inside each view some profile fields!
Comment #23
pobster CreditAttribution: pobster commentedHas anyone discussed making workflow states appear as a dropdown list? I need to try and implement *something* like this for a work project, if there's a discussion already about it could someone point me towards it? I couldn't find one myself...
...Some pointers would be nice too ;o)
Thanks,
Pobster
Comment #24
matt_harrold CreditAttribution: matt_harrold commented28 Months Later ... worse than a Zombie flick.
I'll rack this up to experience. Not bothered either way anymore.
Comment #25
ygerasimov CreditAttribution: ygerasimov commentedAt the moment I will need to implement integration with ubercart prices fields. As far as I can see I will need to modify views handlers for ubercart fields (for example uc_product_handler_field_price). I believe we will need to create submodules in order to integrate different kind of non cck fields with editablefields.
Did anyone have tried to make ubercart prices working? I would like to share my thoughts and develop this submodule as I can see that it will be very handy.
Comment #26
pobster CreditAttribution: pobster commentedI made a module to do #23 but it has little to do with editable fields... I'm happy to share the code if it helps with implementing ubercart?
Pobster
Comment #27
ygerasimov CreditAttribution: ygerasimov commentedPobster, please do. I will try to use it for Ubercart fields if possible. Thank you.
Comment #28
pobster CreditAttribution: pobster commentedNo worries, I'll dig it out tonight. TBH, it wasn't complicated and only involved making an additional field for Views of which I have an example here;
Then I just made the handler at gravy_views_handler_field_sid.inc and provided a form to pickup an ahah selection which from memory is something like this;
But that isn't the actual code (of course, none of the ahah stuff is there!) I'll dig it out tonight when I get home, it'll look something like this;
Thanks,
Pobster
Comment #29
adraskoy CreditAttribution: adraskoy commentedSubscribing. If the node body field is supported this module will be very useful to me.
Comment #30
pobster CreditAttribution: pobster commentedWhy don't you just not have a node body then use a CCK textarea instead? This'll then allow you to utilise all the CCK goodness you like!
Pobster
Comment #31
ygerasimov CreditAttribution: ygerasimov commentedI have managed to make sell_price editable. But it looks like hack actually. In order to reproduce apply patch to DRUPAL-6--2 version and enable module editablefields_uc. In views add sell price and choose formatter "Click to edit". Enjoy.
I have faced a lot of problems and due lack of time didn't find solution. I try to get form element of the price from node edit form. There should be civilized way to find needed element from the form array.
Also the problem is to know how to theme element in editablefields_view() function. I think we should provide some hooks in editablefields to gather this information from other 'plugin' modules.
I think in this way we can get any other fields from the node (both standard node fields and other modules provided).
All thoughts are very welcome.
Comment #32
zkrebs CreditAttribution: zkrebs commentedI would really like to see stock levels editable in views, that would be extremely useful for us.
Comment #33
andreiashu CreditAttribution: andreiashu commentedHi guys,
I think supporting anything else than CCK fields is totally outside of the scope of this module. From my point of view this module should stay as simple as possible. CCK's API is already pretty convoluted: just look into the issue queue for editablefields and you'll see that we are barely supporting the basic CCK fields like userreferenceand and filefield.
You can always create a new module and support any other types of non-CCK fields like Ubercart attributes, or node's body/title, etc.
But, as I said, this module should just alter CCK fields (at least for now).
Please feel free to reopen this ticket if you think otherwise.
Cheers,
Andrei
Comment #34
casey_2000 CreditAttribution: casey_2000 commentedygerasimov, something is wrong with file editablefields_uc.tar_.gz
Comment #35
casey_2000 CreditAttribution: casey_2000 commentedygerasimov and can you explain me how to apply patch editablefields-174600.patch?
Comment #36
casey_2000 CreditAttribution: casey_2000 commentedSubscribing. Need the ability to edit Ubercart Price and Ubercart Stock values.
Comment #37
ygerasimov CreditAttribution: ygerasimov commentedYes, I can see something gone wrong. I will take a look.
Comment #38
ygerasimov CreditAttribution: ygerasimov commentedThis is fast and dirty hack to support clickandedit for sell_price and stock level. It is based on 6.x-2.0 release. You need to install both editablefields and editablefields_uc modules. In views fields stock and sell_price you can find new formatters.
Please let me know whether it works not properly (I can have bugs in setting stock level as I never used it).
Comment #39
zkrebs CreditAttribution: zkrebs commentedwill it only edit the primary product price and stock, or the price/stock adjustment per sku?
Comment #40
ygerasimov CreditAttribution: ygerasimov commentedOnly primary price and stock. Please try and advise what is missing.
Comment #41
ygerasimov CreditAttribution: ygerasimov commentedI have created ctools plugins system for editablefields. Please review attached patch. This will make possible other modules to write plugins for editablefields and add additional fields that can be editable.
Also I have recreated function editablefields_load_js(). The patch is against DRUPAL-6--3 branch.
You can review attached uc_editablefields for usage example. It makes list_price editable. But in similar way without changing main module we would be able to create other modules that will expand functionality.
Comment #42
andreiashu CreditAttribution: andreiashu commented@ygerasimov: thanks for your work. I like the idea of integrating with ctools.
I'll review it as soon as I have some spare time.
Thanks,
Andrei
Comment #43
mpaler CreditAttribution: mpaler commentedHello @ygerasimov -- editablefields_ctools_plugins.patch fails on latest 6.3 branch:
Comment #44
zkrebs CreditAttribution: zkrebs commented#40 - I meant, if you have ubercart attributes enabled you might have a tshirt with 3 sizes. each size has a different price/stock number. could we edit those fields, assuming we have the http://drupal.org/project/uc_views module enabled?
Comment #45
56rosa CreditAttribution: 56rosa commentedHello,
Are these new modules please?
I think that I may need something like that.
Comment #46
ygerasimov CreditAttribution: ygerasimov commentedI see that my patch does not apply anymore. The problem I faced is that now even usual text fields don't work properly on latest DRUPAL-6--3 version without any patch.
To recreate:
create content type with text field (witget: textfield)
create view and add this field (select formatter Click to Edit)
go to this view and click on Edit
change the value and press Enter
get blank page with javascript variable printed (see attached screenshot example)
Can anyone reproduce this problem?
Comment #47
andreiashu CreditAttribution: andreiashu commented@ygerasimov: try and keep the javascript console opened, I think you might see an error appear. This might cause the browser to direct you to that page. I'm going to try and allocate some more time to editablefields soon.
Comment #48
andreiashu CreditAttribution: andreiashu commented@ygerasimo: regarding #46, I opened a new ticket which we can deal with it separately: #1002582: Form shouldn't be submitted on enter
Regarding ctools implementation for 6-3 branch, I'll update your patch to make it apply to 6--3.
Comment #49
andreiashu CreditAttribution: andreiashu commentedThis patch applies cleanly to 6--3.
Comment #50
ygerasimov CreditAttribution: ygerasimov commentedPatch failed applying again. I have modified it. Now it can be applied. Please recheck.
Also I have modified uc_editablefields module (to show [edit] message for sell_price if it has not been modified).
Please review.
Comment #51
zkrebs CreditAttribution: zkrebs commentedIs there anyway someone could create a UC_Attributes editable view?
Comment #52
Murzsubscribe
Comment #53
MurzCan you convert patch for Drupal 7.x version of editablefields?
Comment #54
Damien Tournoud CreditAttribution: Damien Tournoud commentedI don't want this in 7.x. Let's leave it for consideration in 6.x.
Comment #55
giorgio79 CreditAttribution: giorgio79 commentedWill this patch make node title editable as well? It seems all the focus is on Ubercart fields...
Comment #56
Jason Ruyle CreditAttribution: Jason Ruyle commentedHas anyone been able to apply this to Drupal 7 version for Ubercart?
Comment #57
Rosamunda CreditAttribution: Rosamunda commentedCan this patch be applied to 6.2? (There´s this advice at the module´s page where it says that you should use 6.2 version for production sites).
Can this patch be applied to profile fields?
Thanks!
Comment #58
hellomobe CreditAttribution: hellomobe commentedapplied patch - #50. In views selected "click to edit" for the product sell price. In the view, I click on edit, and then nothing happens...is this working for anyone?
Comment #59
sa3er CreditAttribution: sa3er commentedIs ther any uc_editablefields for drupal 7?
Comment #60
Marvin Daugherty CreditAttribution: Marvin Daugherty commentedI could sure use uc_editablefields for Drupal 7.
Comment #61
halloffame CreditAttribution: halloffame commented+1 Support for attributes...
Comment #62
Jawi CreditAttribution: Jawi commentedany progress on making pricefileds editable?
Comment #63
halloffame CreditAttribution: halloffame commentedCan anybody please update the patch at #50 to the latest 6.x-dev? It failed so I tried to applied the patch manually but still getting errors.
Comment #64
mengi CreditAttribution: mengi commentedPer https://drupal.org/node/2148735, 6.x is longer maintained so issue is closed. If you wish to be a maintainer of the 6.x branch please create a new issue.
Comment #65
TotalNoob CreditAttribution: TotalNoob as a volunteer commentedI have found the easiest way for me at least to edit ubercart price fields is to use feeds with uc_feeds you can then change multiple prices in one go, I hope that helps.