I created a custom tpl file for my view (views-view-fields--overview.tpl.php). I pasted in the code from the original template. Although the code is the same and views_fieldsets_preprocess_views_view_fields__2 is ran, the output is very wrong.

Comments

rudiedirkx’s picture

Weird... Maybe a custom view with a wrong tag or name, so a preprocess or alter isn't executed..?

I'm looking into it.

rudiedirkx’s picture

My View works fine... I only have a template_preprocess_views_view_fields() that must keep working, but it should, because it doesn't check anything. The views_view tpl doesn't have anything specific. It can be anything, overridden by anyone.

Can you elaborate on

the output is very wrong

?

eMuse_be’s picture

+1 having the same problem.

eMuse_be’s picture

A colleague just pointed oit I was the poster of this issue, sorry for the comment.

eMuse_be’s picture

The fields are duplicated outside of the fieldset. So I have an array of variables,

like so:

  • - Fieldset
    • - Title
    • - Field2
    • - ...
  • - Title
  • - Field2
  • - ...
eMuse_be’s picture

Adding the views-fieldset templates in my custom theme, solves the problem.

rudiedirkx’s picture

You should be allowed to override any views tpl without having to copy a VF tpl. VF doesn't override views tpls, just adds one. Which one did you copy?

I think I checked the wrong tpl in #2, so I'll check again later.

I comment on my own issues all the time :-) No worries.

rudiedirkx’s picture

Ah, yes, I can reproduce it now.

It looks like I can override views-view.tpl, but not views-view-fields.tpl, without overriding views-fieldsets-fieldset.tpl. That is truly weird. I'm looking into it, but I'm afraid this is outside of my Views expertise...

  • rudiedirkx committed f18bbbc on 7.x-1.x
    Issue #2408563: Fieldsets not working with custom fields template
    
rudiedirkx’s picture

Title: Fieldsets not working with custom fields templae » Fieldsets not working with custom fields template
Status: Active » Fixed

Holy jesus fucking crap goddamn! That might have been the longest Views debugging session ever. But 400 dpm's and 3 hours later..... FIXED! By adding 1 single very simple line of code.

Please try this patch and let me know if it works for you too: http://cgit.drupalcode.org/views_fieldsets/patch/?id=f18bbbc59891a314470...

Or add this in the code manually, because it might not apply to 1.2: http://cgit.drupalcode.org/views_fieldsets/commit/?id=f18bbbc59891a31447...

  • rudiedirkx committed f18bbbc on 7.x-2.x
    Issue #2408563: Fieldsets not working with custom fields template
    

  • rudiedirkx committed f18bbbc on 7.x-2.x
    Issue #2408563: Fieldsets not working with custom fields template
    
eMuse_be’s picture

:) thanks a million, I will try it and get back to you.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.