Wondering where the JS/CSS is housed for the H-Tabs. It works great in the admin area but on my theme, the node simply shows them as regular fields.

Just in case this is actually a setup error and not a theme error as I suspect, my setup involves an HTABS group, with two HTAB items in them, each of which has a title and a body. The first one is open.

Also, unrelated quick question, is there any way to make the title of the tab a field they fill out? The tabs can be different on every different node, but they will all have tabs.

Thanks in advance, for any help you can provide and for maintaining a great module.

Comments

TelFiRE’s picture

Just an update, I've been looking into this issue for quite a while now. Sadly, I can't find any documentation anywhere on the web about how to make your theme compatible with this module. Everyone just expects it to work out of the box -- shocking, really, given how many setups I have seen it not work on :/

Any ideas at all would be very greatly appreciated, we need to get these tabs working and if I don't get a response in the next day or two we'll have to drop the module.

Hydra’s picture

Status: Active » Closed (cannot reproduce)

It should work out of the box, if youre not messing up the loaded javascript or overriding the theme functions. Did you try using a normal base theme to look if it's a specific proble with your custom theme? there is actually good documentation about how to create a custom theme on drupal.org -> http://drupal.org/documentation/theme

If you follow the guidelines, everything should work just fine!

To your other question, it is not possible to let the user decided the title of the group. Probably your searching for http://drupal.org/project/field_collection or anything simular to achive that.

Stalski’s picture

You can also try upgrading to the dev version. There have never been reported an issue like this.
You can reopen this issue if you can show us it's a fieldgroup problem.

TelFiRE’s picture

Clarification is necessary: Does this module actually do anything on the front-end or just store the fields as normal fields, and affect only the administrator area?

I have tried multiple base themes including the ones that come with core and I am confident this module does absolutely nothing on the front-end. If this is the case, it is, while very useful, incredibly confusing and should IMO be clarified.

Hydra’s picture

Fieldgroup gives you the possibilty to add wrapper in field_ui for the form AND the display (front end). When you add fieldgroups to your form, and I am sure you did, they will not automaticaly appear on the display tab for frontend. Take a look at the display tab, add your fieldgroups or clone them, save and see the magic ;)

doppiogancio’s picture

Title: H-Tabs show in admin but not on node (custom theme) » The problem is not the theme but the node

I had the same problem. I used htabs many times for generic forms, also generate via code,
but I was not able to use them for the node edit form. The reason, probabily, is in the way
the form is processed: in the $form instance a field remains an array, in the edit $form every field
is an instance of a stdClass.

An example of a generic form:

        // horizontal tabs container
        $form['easy_mapping_hr_cont'] = array(
  		'#type' => 'horizontal_tabs',
	);
	
        // A fieldset used as TAB
	$form['easy_mapping']['exclude'] = array(
		'#type' => 'fieldset',
		'#title' => 'Escludi alberature',
		'#collapsible' => true,
  		'#collapsed' => true,
		'#group' => 'easy_mapping_hr_cont',
	);
	
        // A field contained in the tab
	$form['easy_mapping']['exclude']['new_categorization'] = array(
		'#type' => 'textfield',
		'#title' => 'Nuova alberatura da escludere',
	); 

the preview
http://www.fabriziogargiulo.com/drupal_files/drupal_tabs.png

Any idea about how to do it form a node edit form?

doppiogancio’s picture

Title: The problem is not the theme but the node » H-Tabs show in admin but not on node (custom theme)
doppiogancio’s picture

Issue summary: View changes

more detail