Jump to content

Recommended Posts

Posted

The ability to add tabs not specific to ProDrafts.

  1. Create a new field called "sidebar" with the type FieldsetTabOpen. ProcessWire will automatically add another field "sidebar_end".
  2. Go to a template and add those fields.
  3. Add some fields between sidebar and sidebar_open and you will have a tab for that specific template.

You can also group fields with FieldsetOpen. 

  • Like 8
Posted

To expand on arjen's answer:

I had use cases where I had to add more than one tab to several templates.

To avoid creating too many individually named fields of type FieldsetTabOpen, I did the following:

Create fields of type FieldsetTabOpen with generic names, like tab1, tab2 etc.

Apply the field to template A and in the template override for the field label name it e.g. "Sidebar Left"

Apply the same field to template B and in the template override for the field label name it e.g. "Sidebar Right"

This way you only have one field of type FieldsetTabOpen but can use it for differently named Tabs in different temp[lates.

  • Like 6

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...