Closed (fixed)
Project:
Node displays contributions
Version:
6.x-2.x-dev
Component:
ND CCK
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2010 at 11:36 UTC
Updated:
16 Dec 2011 at 14:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
butler360 commentedSubscribing
Comment #2
ManyNancy commentedBlah, :(
Comment #3
okeedoak commentedsubscribing
Comment #4
picardo commentedsubscribing
Comment #5
Flying Drupalist commentedComment #6
swentel commentedOk, this is simply not doable right now for a lot of reasons (techniqually in DS) and espcially with the state of the multigroup and cck 3 right now. We'll see what happens once we start with a 6--2 branch here and if CCK 3 ever gets an official release.
Comment #7
zeezhao commented+1
Comment #8
drupalok commented+1 any news on this issue?
Comment #9
drupalok commented@wentel
could you outline in a few sentences why its not possible to use DS with multigroups? Do you think there will be a solution in the near future? Otherwise i think i might have to change to panels completely, though i love your DS module
Comment #10
vtsan commentedHi,
I have created a patch for DS, ND, and ND_CCK to work with CCK 6.x-3.x-dev "Multigroup". I don't know if it is the right way do it or not. It seems to work for me. I hope someone will find this helpful.
Comment #11
swentel commentedWow, I'll review this one this weekend, might be huge!
Comment #12
jstoller+1
Comment #13
drupalok commentedi am too curious... does it work? will it be in the next dev?
Comment #14
jstoller@swentel
Have you had a chance to review Vincent's patch in #10? Any chance it'll make it in?
Comment #15
jibize commentedwould definitely be a nice addition!
Comment #16
vtsan commentedJeremy pointed out that the drag and drop is not grouping. Here is the fix.
Comment #17
ManyNancy commentedHi vtsan I applied the patch then moved the multigroup into the nd region. On the node display I see nothing though.
Clearing cache did not help.
Thanks.
Comment #18
vtsan commented@ManyNancy
It is very difficult for me to troubleshoot your issue with a little details on the problem. However, to test if my patch is working or not. You could try to create a new node type and a couple of fields. Then you can create a multigroup field and move some of the fields into it. If you have ns, nd, and nd_cck module enable, on the nd move the multigroup into the region and the fields into multigroup. Hope this help.
Comment #19
jstoller@ManyNancy
Just to reinforce what Vincent said, you not only need to move the multigroup into a region, but you also need to move the fields you want to display into the same region and place them within the multigroup (so they look indented in the list, under the multigroup). The group does nothing on its own.
Comment #20
ManyNancy commentedThanks! That works.
I'm quite happy with this. One unexpected thing is that every multigroup itemrow is rendered as a fieldset. Is that correct behavior? Thanks.
Comment #21
vtsan commented@ManyNancy
I am not quite understand your question. What should the item row be rending if not as fieldset?
Comment #22
ManyNancy commentedSorry it's not the fieldset, it's that by default the div has the class fieldset in ds.module.
CCK uses the class 'field-item' for their items and this makes more sense to me.
Thanks again for the patch.
Comment #23
jun commentedHi vtsan,
Just tested your patch and it seems to work fine except for filefields.
What happens is :
1/ if the filefield is inserted at the beginning or in the middle of the multigroup then the only the first item of the multi group is displayed.
2/ if the filefield is inserted at the end of the multigroup then all items are displayed but changing formatters options doesn't do anything and the data seems corrupt (filefield appears once in a while while all item of the multigroup have a filefield value.
Hope this can help make this into DEV as this is a great addition to ND.
Best,
Jun
Comment #24
vtsan commentedThanks! jun for testing it out. Here is the update patch. (Please disregard this patch)
Comment #25
vtsan commentedSorry, I uploaded the wrong patch. This is the correct one.
Comment #26
swentel commentedOk, I've reviewed and tested the patch and .. not committed .. yet .. I can feel all your excitement hehe :)
Anyway, I've attached an updated patch with some changes for me to test at work tomorrow/monday because although I'm personally not interested in this feature, I'm willing to commit this as long it doesn't break default behavior (read without multigroup module enabled on a site) and it looks pretty good so far, but I need to be sure.
Changes in the patch
I've removed the foreach and brought back the $field_content = ... because in my testing a field that is in a multigroup simply doesn't get in this else statement. If anyone can explain me why this is there, I'll bring it back and test it again. I don't see a use case however especially since it's using content_format again and the field here should really have '_rendered key already in the $variables.
3 remarks / questions
To conclude: it looks pretty good so far, with a bit of luck I might commit this tomorrow already, fingers crossed folks!
Comment #27
swentel commentedUpdated patch (just some tabs vs spaces changes)
Comment #28
jun commentedExcitement over here, I admit :)
More testing brought more suprises :
- Still changing the format of a filefield inside a multigroup doesn't work (seems like the first formatter is always the default one)
- Also some formatters (soundmanager2) bring up an error: Illegal offset type in isset or empty /var/aegir/###/includes/theme.inc
- When a filled field is followed by empty fields, the empty fields get the value of the first field.
- Empty multigroups (where all children fields are empty) are still displayed.
- Custom labels are not taken into account.
That's it for now, thanks to swentel and vtsan who are doing the actual work !
Jun.
Comment #29
jun commentedOne more thing : Ideally when selecting for instance "Fieldset Open" format, each subgroup from the multi-group should display in a distinct fieldset. Even better if the names chosen in the multigroup's subgroup labels where displayed as titles for each fieldset/tab/div.
Comment #30
vtsan commentedI fixed some of the format issue that jun has noticed. The main code fixed for this patch is follow.
Disregard this patch. Reason is that I uploaded the wrong patch
Comment #31
vtsan commentedThis is the correct patch.
Comment #32
ManyNancy commentedComment #33
vtsan commentedUpdated my patch to work with ds 1.4.
Comment #34
Shadlington commentedSub'ing
For the record, CCK-3.x (the version with multigroups in it) has an alpha release now.
Comment #35
syntheticMedia commentedHello
Thanks for working on this patch. I have applied to 6.x-2.x-dev (from Feb 3rd). I am also using DS 1.4. When i applied the patch using netbeans, it said the patch was partially applied. I am now able to see content from the first multigroup which is better than before, but all other multigroup field sets are still blank. Any suggestions? Perhaps the patch needs to be updated to match the newest 6.x.2.x dev?
Edit- I reverted the .module back to the original 6.x-2.x-dev (Feb 3rd) (i.e. no patch applied), still getting only one multigroup fieldset to appear...
Anxiously awaiting any advice,
thanks!
Comment #36
vtsan commented@everything27
The patch is intended for the latest DS 6.x-1.4 and should use with CCK 3.x branch which support multigroup.
Comment #37
varac commentedAny news on this ? I am waiting for this too....
At our site, nd-cck 6.x-2.4, ds 6.x-1.4, we can't get the patch working (see below).
Also, we are getting only one multigroup fieldset to appear too.
patch -p1 < ds_nd_cck_patch_version_1_4.patch
patching file sites/all/modules/ds/ds.module
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 219.
Hunk #3 FAILED at 245.
Hunk #4 FAILED at 336.
Hunk #5 FAILED at 373.
Hunk #6 FAILED at 754.
6 out of 6 hunks FAILED -- saving rejects to file sites/all/modules/ds/ds.module.rej
patching file sites/all/modules/ds/theme/theme_ui.inc
Hunk #1 FAILED at 119.
Hunk #2 FAILED at 271.
2 out of 2 hunks FAILED -- saving rejects to file sites/all/modules/ds/theme/theme_ui.inc.rej
patching file sites/all/modules/nd_contrib/nd_cck/nd_cck.module
patching file sites/all/modules/nd_contrib/nd_cck/nd_cck.tpl.php
Comment #38
vtsan commentedI've just updated my patch for ds 6.x-1.x-dev to work with nd_cck in nd_contrib 6.x-2.x-dev.
Comment #39
swentel commentedI'm going to open a second branch for DS and a 3 branch for nd_contrib especially for multigroup support - will happen somewhere next week.
Comment #40
vtsan commentedThanks swentel for the quick response.
Comment #41
R-H commentedI'm having a problem with CCK multigroup and Node Display. Please see the attached. I have a mutligroup set up for an event (3 fields: interviewer, location, and date). In my node I currently have 2 events, but only the content for one is being displayed. The labels for both are being displayed, but only the content for the 1st is displayed. There is also another issue: similar fields are being displayed side-by-side. For example, both of the "Interviewer(s)" fields are being displayed next to each other. It would be better if the original order of the multigroup set was displayed (1. interview, 2. location, 3. date).
I hope the screen grabs help.
Using CCK 6.x-3.0-alpha3
Comment #42
R-H commentedI have applied the patch ds_and_nd_cck_to_support_cck_multigroup.patch in comment #38 above and it is fixed.
The patch was a little difficult to figure out how to apply. It assumes that your applying from /sites/all/modules but I actually have it in my local directory. I had to keep on telling the patch which module to apply to. The nice thing is that it gives you hints. It will say
Then it asks you which file to apply the patch to. So, choose theme.ui.inc in this case and it worked. It has to patch a bunch of files. Just supply the correct file name and your done.
Thanks for providing the patch.
Comment #43
R-H commentedI'm noticing that the label for the field group appears even if there are no values supplied for the field.
Comment #44
R-H commentedTo clarify, even though there aren't any data below interview schedule, the label and even fieldset is still included in the html.
Comment #45
R-H commentedAny luck figuring out how to remove the display of fields that don't have a value?
Comment #46
danielbeeke2 commentedthanks for the patch!
Comment #47
jstoller@swentel: Any word on when this might make it into a release?
Comment #48
swentel commentedI created a 6.x-2.x for ds and 6.x-3.x branch for nd_contrib focussed on multigroup support - dev releases should be out within 12 hours.
It's been a while since I tested the patch, so I still think there are some notices in it, but haven't got much time to review right now. Hopefully someone else fixes those things. There is a separate branch for both, so go nuts :)
Comment #49
swentel commentedMarking fixed. Create issue follow ups for any problems/notices.
Comment #51
batigolixfrom the release notes I understand that this is now implemented in nd_contrib 6.x-2.6
http://drupal.org/node/1340978