Download & Extend

Put field group tabs in same generation as View and Comments

Project:CCK Fieldgroup Tabs
Version:6.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Having the fieldgroup tabs appear under the View tab causes some problems for me. I would like to move the fieldgroup tabs up beside the View and Comments tabs.

Fieldgroup Tabs generates an url with a pound sign between the node id and the fieldgroup name (e.g., #synopsis). Supposedly replacing the pound sign with a forward slash would put fieldgroup tabs next to Views and Comments.

Where is the code that generates the url? I've looked through cck_fieldgroup_tabs.module several times and found nothing that looks like the culprit. I've even searched the database for #synopsis, and have likewise come up emptyhanded.

Directions would be appreciated.

Comments

#1

The 'View' and other tabs are what's called 'local tasks' in Drupal and are fundamentally different from the tabs used in cck_fieldgroup_tabs. They are links to new page callbacks generated in Drupal core, while this module creates client-side tabs. In short, there is no easy way to merge the two.

#2

Thanks for the quick response, nedjo.

Can you tell me where the fieldgroup urls are generated? I would still like to play around with the problem.

#3

Perhaps I should explain what I'm trying to do.

My site is divided into subsites using Views. One of the subsites, Bli-fi (Blog-Integrated Fiction), provides a synopsis and notes for each post in addition to the body and comments. I can easily build tabs for these features using the Views module, but, of course, I cannot force Views to only display the synopsis or notes associated with a given post, because Views has no way of knowing which node is being viewed and the synopsis and notes are themselves nodes with no computer-friendly connection to the node I wish them to enhance.

I have created fields and fieldgroups to supply that connection, but, of course, although I can display fields in views, I still cannot instruct a view to display only the synopsis or notes associated with the current node. It appears that my aim has fallen somewhat between the cracks.

Collapsible fields are an option, yes, but they are not as elegant as what I hope to accomplish.