Beate Posted March 9, 2016 Share Posted March 9, 2016 Hi, in the video on https://processwire.com/blog/posts/processwire-3.0.9-adds-new-long-click-and-save-actions/ I saw that fields could be grouped into tabs, right of the tab "content" there is a tab "sidebar". How can I do this? Or is this a function of ProDrafts? Thanks,beate Link to comment Share on other sites More sharing options...
arjen Posted March 9, 2016 Share Posted March 9, 2016 The ability to add tabs not specific to ProDrafts. Create a new field called "sidebar" with the type FieldsetTabOpen. ProcessWire will automatically add another field "sidebar_end". Go to a template and add those fields. 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. 8 Link to comment Share on other sites More sharing options...
gebeer Posted March 9, 2016 Share Posted March 9, 2016 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. 6 Link to comment Share on other sites More sharing options...
Beate Posted March 9, 2016 Author Share Posted March 9, 2016 Cool, thanks. Didn't know how to search this. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now