@webflo
It looks to me like yourself and jhedstrom are to 2 most actively working on Spaces D7 so I have decided to post my work in your sandbox. I chose your sandbox over jhedstrom because I saw you replied to another issue so I knew you were watching your sandbox.
One thing I need from spaces 6.x that has changed a lot in D7 is that it makes forms simpler for OG by hiding the form fields and setting the values based on the preset. With everything moving to fields I decided to look into creating new field controller.
This new controller adds a new set of preset values for fields instead of mixing them with variables like in D6. If a field is found then the form gets hidden and the value set according to the spaces preset value. Because this is not limited to just og fields, this would also open up possibilities for setting other field values using spaces.
I have altered the default spaces_og presets to show how the idea works.
When you have time please have a look and let me know what you think. If you decided to commit this to your sandbox, time permitting I will next try to look into remove everything from spaces_og this would replace.
Please note that I have not worked much with D7 or the new Fields and Entity system so this was a lot of trial and error for me. Based on my limited testing it all seems to work.
I have not yet learned how to use Git so I created this patch with KDE's Kompare, I hope that is ok.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | d7_spaces_field_controller_1.patch | 19.23 KB | NaX |
| d7_spaces_field_controller_1.diff | 19.98 KB | NaX |
Comments
Comment #1
NaX commentedJust a quick follow up. I have decided that I should finally get my act together about Git and will hopefully find some time over the next week and maybe be able to provide you a patch using Git. I am also wondering if maybe I should not just setup my own sandbox for new feature like this. Let me know if you have any thoughts. I don't want to create another Spaces sandbox if it is not needed.
Comment #2
webflo commentedHi thanks for your contribution. I look into this in a few days and think about this feature.
thx. flo
Comment #3
NaX commentedHere is my first attempt at a patch using Git. I hope it make review easier.