Is there any way that Pod fields can be grouped into field sets?
I need to create some pods that have a large amount of fields. Is there a way to group them together into field sets in the CMS to make it more visually organized for the user?
edited Nov 13 '11 at 10:48
5 Answers
The easiest way is to use either Pods UI or publicForm() to create a custom screen with the fields grouped.
Messed up and wrote a comment in the wrong place, sorry...
edited Nov 15 '11 at 1:29
Pods UI _is_ writing code. publicForm would also require writing some code. The docs for Pods UI are pretty limited right now. There is an awesome getting-started tutorial here, and the complete documentation for the one function that is Pods UI here.
Maybe pick a path that you want to go down, post some starter code, and people here can help you get there? The formatting is accomplished using a combination of publicForm or Pods UI and the Pods display helpers.
I would approach this using the publicForm() method by writing a template file in combination with some display and/or input helpers. I would then just create a blank page that uses the template file I made to display the input fields how I want them. You can also use Pods UI to create a template file. Either way, it will require code, but it's not terribly difficult if you're nudged in the right direction.
As magi said, post some starter code, and maybe you'll get nudged.
I don't really have any code to show, I am currently evaluating Wordpress/Pods CMS to handle a project to create a business directory for a tourism website. My concern is that there are a large number of fields per business which I would like to split into separate tabs using Jquery tabs. Basically I just want to be able to wrap divs around sets of fields so they don't see the entire form at once. I am having difficulty seeing how either Pods UI or PublicForm can achieve this. In a perfect world I'd see it working something like this in the Pods UI:
$add_fields = $edit_fields = array(
'tab1' => array('name', 'address', 'etc..'),
'tab2' => array('photos'));
There will be an Admin version and a public facing version for individual businesses. I am not sure if this comes up very often with Pods users but a nudge of any sort would be greatly appreciated!


