Jump to content

multiple versions of a field in a template & sortable


joshuag
 Share

Recommended Posts

Hi all, 

I am creating a template/site profile for processwire and I want to do something that is a bit outside of the normal processwire flow. 

I want to create a set of fields for the homepage template and use those fields multiple times in different locations on the page. 

Example

Home Template:

  • Slideshow (repeater)
  • Heading (text)
  • Body
  • Gallery (image field)
  • Heading
  • Body
  • Gallery
  • Testimonials (repeater)
  • etc. 

I want to make the fields that are available to edit on the page user configurable. 

So that they can have multiple field types, multiple times, in any order they want. 

I know that I cannot add a field to a template more than once - but I want too. 

I know that I can order the fields in the template settings, but I don't want the user messing with templates. 

I know that I can do this by making each "element" that I am creating a template and use child pages - then render the "elements" in the parent page template. They would be sortable and you would add as many as you like, however, I think that to the user, this would be complicated and not very intuitive. Also, then it kinda breaks using the page tree for creating the website structure. 

I hope this makes sense. 

Am I way out in left field here? Or is there some clever PW magic that I haven't thought about that could make this a reality. There has never been an idea or situation I was not able to do in PW. This is the first time I feel like I am asking for a little too much.

Any ideas out there?  

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...