Hi,

Now, I can make only one tab group with this module, could I make more than one? For example: first two fieldgroups make the first tabgroup and two others make the second tabgroup.

If cannot, could someone shows me what I can modify in code or which module can do that?

Thanks

Viet

Comments

nedjo’s picture

Can't be done at present I believe.

nguyenquocviet’s picture

Hi nedjo,

I tried to solve my problem in following way and currently It works fine:

- Make a copy of "cck_fieldgroup_tabs" module folder then rename it to "cck_fieldgroup_tabs2"
- Find and Replace all words of "tabs" to "tabs2" in file names and their content for three files of "cck_fieldgroup_tabs.info", "cck_fieldgroup_tabs.install" and "cck_fieldgroup_tabs.module", except the line "dependencies = fieldgroup tabs" in the file of "cck_fieldgroup_tabs.info", because it just describes what modules this module denpends on, not relating to a new style of "tabs2".
- Then, I install and use it as new module like your original module.

I actually don't understand much what the code is doing, my way of problem solving just comes frome my judge. So, althought it seems to work fine now I don't know if there is any hidden error or mistake that may appear in a specific condition in the future.

Could you please take a look at this and give me your advice.

Thanks and regards

Viet

mitchell’s picture

Title: Could this module create more than one tab group » More than one tab group / Nested fieldgroups
Version: 5.x-1.x-dev » 6.x-1.x-dev
rconstantine’s picture

Oops. I just posted a new issue announcing my patch for D6 version of CCK which you can find at the same issue quoted above: http://drupal.org/node/300084

Sorry about that. Anyway, my patch allows you to specify certain fieldgroups as tabs (via this module), and then nest regular fieldgroups inside - or just nest fieldgroups of any kind. Out of the box, you can go 10 levels deep in your nesting, but to go deeper you would just have to open the module file and change one number.

Please apply the patch and test if you're interested in this.

I think that the combination of this tabs module, my patch, and the multi-group module are a freakin' awesome combination that multiplies the capabilities of CCK.

rconstantine’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » rconstantine
Status: Active » Needs review
StatusFileSize
new34.86 KB

This also applies to this: http://drupal.org/node/315015 since I have started to change the AHAH stuff.

Find attached a big change for getting this to work with the latest CCK nested fieldgroups patch here: http://drupal.org/node/300084

I'll roll a proper patch later, but for now you can grab complete files.

Note that filefield probably broke and I'll fix it once we verify that 'normal' fields work. From what I understand, filefield will be getting a patch soon anyway.

The patch to CCK drastically cleans this up and the new hook allows for modules similar to this one to adjust the location of fields and not have difficulty with AHAH.

rconstantine’s picture

StatusFileSize
new33.89 KB

An addition: I had too many tabs and they were running off of the right side of my screen. Attached are the updated files.

rconstantine’s picture

The multigroup and nested fieldgroup patches are now up for review. Once they are in CCK, I'll update this module with the patch above and begin looking at the rest of the issue queue.

nguyenquocviet’s picture

Hello,

I am eager for this new function. Could you please tell when it would be available for usage?

Thank you.

rconstantine’s picture

If you track the issues in the cck issue queue, you'll see that two of the three patches needed for these features are nearing inclusion into cck. The third will be reviewed once adjusted for the final versions of the first two patches. After that, the above patch here in this queue will be committed to this module.

k3vin’s picture

+1

rconstantine’s picture

Status: Needs review » Reviewed & tested by the community

Without further comments, I'm declaring this working. I have been using this for months now. As a maintainer, I'll include this in an official release once the 3.x branch of CCK has an official release as well.

bomarmonk’s picture

Great: the zipped version of this module in #6 works wonderfully. Thank you for the fixes. I hope this gets committed as the official release, as the current project page release is broken.

batje’s picture

StatusFileSize
new1008 bytes

This very small patch "nests" fieldgroups in tabs.

The current behaviour of fieldgroups that are no tabs is that they are shown on all tabs of a nodetype (in fact they are shown below the tabset). That is a bit strange.

This patch works very simple: If a fieldgroup that is not a "tabpage" follows a "tabpage" in the Display Order, then the fieldgroup is rendered on the tabpage.

If you still want to show fieldgroups not on the tabset, you can only place them before/above the tabset (as in, before the first fieldgroup that is marked as "tabs"). Feel free to find a nifty little trick to have them after the last tab as well.

This would probably be a new issue, if i had not patched it against #6, as that seems to be the last version of cck fieldgroup tabs.

(I ran the module with CCK 6.2, and this patch only applies to the View mode of a node, as the Edit mode did not show any tabs at all.)

batje’s picture

StatusFileSize
new1010 bytes

And against the current .dev version

rconstantine’s picture

Why are you making another patch when the one on #6 above works fine?

batje’s picture

As I noticed too late that #6 if from January, and there was a commit of the dev code a few days back.

the result is the same for both patches, i just provided them for anyone's convenience.

rconstantine’s picture

so is it just an update of the same patch? if so, thanks.

batje’s picture

welcome ;-)

batje’s picture

any chance this will be commited to a new version?

nedjo’s picture

Status: Reviewed & tested by the community » Needs work

It would be good to see a patch based on the work rconstantine began.

The approach in #13 and #14, while clever, is a workaround more than a solution and not likely to go in.

klonos’s picture

subscribing...

rconstantine’s picture

StatusFileSize
new39.6 KB

Been a while since I've been here. I had to start using the jQuery UI module, which messed up my version of this module found above. Attached is a new version which works with:

jQuery UI module v6.x-1.3 w/ jQuery UI library 1.6
tabs module v6.x-1.3
cck_fieldgroup_tabs module v6.x-1.2

I read somewhere that the jQuery UI module v 1.4 uses the library of 1.7 or greater which requires jQuery 1.3 or greater which doesn't come with D6. So I have not checked out whether that will work or not with the above modules.

Anyway, here is a full set of my files for cck_fieldgroup_tabs...

Note, this works against my (really old) version of CCK as also mentioned above. I haven't had a chance to try out the new patched version from the same thread. Someone else has taken up the 'nested fieldgroup' mantle.