I am working on Drupal Rc2 and using the fieldgroup-5.x-1.x-dev release of field groups

The case

1. Create a new content type college.
2. Create a new group
3. Created fields and added it to the group

This works perfectly now..

I did the same but for a new content type example.. "Books"

It refuses to work for the books content type for some reason.

Warren

CommentFileSizeAuthor
#4 fieldgroup.info145 byteskarens
#3 fieldgroup.module.patch5.53 KBkarens

Comments

fago’s picture

hm, for me everything is working fine.
I've tested multiple fields and content-types including the book type. Everything working as expected?

Has anyone else problems?

karens’s picture

I wonder if this is a Beta-2 issue? I ran into this on other things where my current cvs installation worked fine but others reported problems and it turned out that Beta-1 didn't work right because it was missing an important patch. I don't have time to test right now, but fago maybe you can try this with Beta-2 just to see if that's the case. I'll try a test later when I have more time.

karens’s picture

StatusFileSize
new5.53 KB

@fago, I found some fixes that are needed in the 5.x version and I've attached a patch. Basically, you can't use arg(3) any more because Drupal 5 is doing a string_replace on node type names that have an underscore in them so they have a hyphen instead in the url. For that reason you have to run arg(3) through a function to get either the str_url value (which will have a hyphen) or the 'type' value, which is the actual node type name that has the underscore. You tried to use this on a 'book' content type (no underscore) and your poster may have tried this on a 'content_books' content type (with an underscore).

karens’s picture

StatusFileSize
new145 bytes

And since I couldn't test this without an info file, here is the info file.

karens’s picture

Status: Active » Needs review

Changing status. Also, the 'version' in the info file is not right. I'm am still trying to figure out how to get that working correctly (see http://drupal.org/node/101524), but it will work for purposes of testing the module in 5.x.

fago’s picture

Status: Needs review » Fixed

I had some problems applying the patch so I've done it manually. There were also some links that had to be changed to point to the right path including the str_url type.

Thanks!

fago’s picture

Title: Works only for the first CCK Content type » Fieldgroup works only for the first CCK Content type
Project: Fieldgroup » Content Construction Kit (CCK)
Component: Code » fieldgroup.module
Anonymous’s picture

Status: Fixed » Closed (fixed)