I am very new to ProcessWire so please excuse my ignorance, but I'd like an opinion on the best way to set up tabbed info that displays on each page for a directory type website.
I have successfully created blocks of repeater fields so each page (a child page of "Organisations" which is a single Organisation) can have details such as contact person, physical address, postal address, attached files etc. The fields work nicely on the admin side of the site but I am at a loss on how to get these to display through a template.
I'm ashamed to say the best I've done so far is list all the repeater fileds using:
foreach($page->fields as $field)
echo $field->name . ", ";
In my case it displays the actual repeater fieldset names like so:
"applicant_details, primary_contact, secondary_contact, address, postal,"
I'd like each of these to be a tab with relevant fields in each
eg.
Applicant Details (tab 1)
- Organisation name
- Sector
Primary Contact (tab 2)
- First name
- Lastname
- Email
- Phone
Secondary Contact (tab 3)
- First name
- Lastname
- Email
- Phone
Address (tab 4)
- Address 1
- Address 2
- Town/City
- Postcode
Postal Address (tab 5)
- Postal address 1
- Postal address 2
- Town/City
- Postcode
Note: I have set up all these fields within repeater sets. I just can't get them to display through the template.