Jump to content

How do I organise fields for a hero section?


Boost
 Share

Recommended Posts

Hi,

Please bear with my question because I am new to PW. But how do I organise all the fields that make up a hero section? Example:

- My hero section is made of a background image, text and another image. So, I believe for that, I would have three fields, right? Like 

hero-background
hero-copy
hero-image

- Is there a way to put all these fields together or create subfields?

- I can see that I will have several sections of my website made up of a lot of fields. So, I was thinking of the best way to organise that instead of having things like footer-x, footer-y, footer-z, sidebar-img, sidebar-txt and so on.

- Or am I missing something here?

Thanks

Link to comment
Share on other sites

12 minutes ago, Boost said:

Is there a way to put all these fields together or create subfields?

Yes, you can use https://processwire.com/blog/posts/processwire-3.0.74-adds-new-fieldsetpage-field-type/ exactly for that so you can reuse other fields inside the FieldsetPage fields. Think of repeaters without repeating 🙂

 

  • Like 2
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...