Jump to content
rjgamer

Fieldset (Page) as fieldset type "Tab"

Recommended Posts

Hi,

I'm using Fieldset (Page) a lot for my sites. But unlikey the field only support fieldset as fieldset type.

Is there any support to choose the fieldset type for Fieldset (Page), like it is supported for Fieldset (Group)?

Example of the fieldset type selection for Fieldset (Group):

image.thumb.png.427f5a1adf01cbe0190e6f66d5db1fb5.png

 

Thanks.

Share this post


Link to post
Share on other sites

I was a pretty confused here, but I see now that FieldsetGroup is a Pro Module and FieldsetPage isn’t. Maybe ask in the ProFields-Support board? Otherwise you’ll have to compare the two modules’ code.

I assume you’ve already ruled out creating a standard FieldsetTab and putting it around your FieldsetPage? I just tried that and it looks fine to me. @rjgamer @Neue Rituale

grafik.png.58e44f3a8bf7cf0367dfe3ab9d37f88f.png

Share this post


Link to post
Share on other sites

Correct this works. But what is if I dont want a wrapper around tabcontents in the forms?

Share this post


Link to post
Share on other sites

You mean like this?

grafik.thumb.png.59992583087010da2fd19c4b24606236.png

 

Use this very hackish hook and replace the word “tabcontents” with the name of your FieldsetPage field:

$this->addHookAfter('ProcessPageEdit::execute', function(HookEvent $event) {
    $event->return = $event->return . '<script>document.querySelector("#wrap_Inputfield_tabcontents > label.InputfieldHeader").remove();</script>';
});

Might want to only apply it to certain templates, too, but whatever. Sorry, I couldn’t find an easy way to remove the element from the output directly, but this should be fine.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...