Zeka Posted May 10, 2016 Share Posted May 10, 2016 Hi. I switched to PW from Seblod. In seblod we have field called "Field group". This field just group some fields to logical group. I think it's quite useful feature. For example: in almost all templates i have fields for SEO like title, description, index etc. ( seven fields ). In current PW workflow ( as i know ) i have to go to every field and set needed templates for it or go to every template and set needed fields. It's quite sadly If we could to have some sort of group field it became easily. Just put one field to every template. Maybe i miss something and this field is already in PW? 2 Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 10, 2016 Share Posted May 10, 2016 Short answer: There isn't. But it's been discussed multiple times, the latest one here: https://processwire.com/talk/topic/13021-wishlist-group-field-for-grouping-fields/#entry118225 1 Link to comment Share on other sites More sharing options...
arjen Posted May 10, 2016 Share Posted May 10, 2016 I understand your frustration. Especially dealing with default fields like SEO. You could build something around the ProFields? You can group field over there. You can create a Textareas of Table field which makes it a lot easier to handle grouping of fields. 1 Link to comment Share on other sites More sharing options...
Sebii Posted May 10, 2016 Share Posted May 10, 2016 (edited) Hi, for a very common task like SEO, it might be also worth to:1) Make use of the fields import/export to share the set of SEO fields betweend pw installations2) Add the SEO fields with a small custom script making use of the APIAn example of it can be found on processwire-recipes.comGreetingsEdit: Link http://processwire-recipes.com/recipes/add-fields-to-template/Edit2: Or actually just create the whole set of your SEO fields (+adding them to templates) in a reusable script Edited May 10, 2016 by Sebii 5 Link to comment Share on other sites More sharing options...
DaveP Posted May 10, 2016 Share Posted May 10, 2016 Just to add to Sebii's answer, see https://processwire.com/talk/topic/9813-copy-template-via-api/ You could create a template with your 'standard' fields and clone it as above for reuse and extension. 3 Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 10, 2016 Share Posted May 10, 2016 Or just copy the code from MarkupSEO, which does all this field copying already. 1 Link to comment Share on other sites More sharing options...
adrian Posted May 10, 2016 Share Posted May 10, 2016 Following up on the idea of some tool to do this, take a look at the module attached to this post: https://processwire.com/talk/topic/8406-set-multiple-templates-role-access/?p=81711 It will let you add selected fields to selected templates. 2 Link to comment Share on other sites More sharing options...
Zeka Posted May 11, 2016 Author Share Posted May 11, 2016 Thanks to all for very useful answers. Best community! 1 Link to comment Share on other sites More sharing options...
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