I created a bunch of CCK fields for my Page content type which I wanted to display in the left and right columns as blocks using CCK blocks. I wanted to contain these additional fields in a tidy fieldset during editing so I grouped them using CCK groups. I placed my CCK blocks as normal but nothing would appear.

I debugged the code a little bit and found that CCK fields in a CCK group are recorded against a node differently i.e. are not found in the array in the same place.

I have modified the code to first look for the CCK field as normal and then if not found it checks all CCK groups.

See attached file.

I don't know if this will be useful to you or not but I thought it better to mention than not. If you've already implemented - wicked! I look forward to the next stable release :)

CommentFileSizeAuthor
cck_blocks.module.zip1.55 KBmikeefreedom

Comments

Anonymous’s picture

Status: Active » Closed (duplicate)

Seems to be a duplicate of #648878: fieldset's do not display

Anonymous’s picture

Okay, it's a duplicate, but it works. Please provide a patch at #648878: fieldset's do not display, containing your changes. Please make sure, that the Drupal coding standard (http://drupal.org/coding-standards) applies for your code.

Thank you very much for your support!

Anonymous’s picture

Created a patch at #648878: fieldset's do not display, containing most of your solution. Please do a review of that patch. Thank you.