eydun Posted August 7, 2019 Posted August 7, 2019 I am still a PW-newbie, and have just started diving into setting up templates and fields. How do you typically name your fields? For example, do you use the template-name as prefix to the field-name? Do you re-use many of the same fields across templates? Or do you create one field per template? I ask these question, because I wonder if it does not get complicated when you build a site when many templates and many fields.
Sebi Posted August 7, 2019 Posted August 7, 2019 Hi eydun, I try to reuse fields if they have the same use-case. No template-prefixes. When your site gets more complex, you can use tags for your fields to get a better structure in your fields-overview. 1
bernhard Posted August 7, 2019 Posted August 7, 2019 I've used template prefix syntax for my fields in one project and it is really annoying now ? You might find some inspiration here: https://processwire.com/blog/posts/making-efficient-use-of-fields-in-processwire/ 2
eydun Posted August 7, 2019 Author Posted August 7, 2019 Thank you for the fine replies. PW is not only the best CMS, but also has the nicest community ?
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