Nico Knoll Posted July 21, 2015 Posted July 21, 2015 Hey, what I really would like to have are "virtual templates". It's already possible if you create a template via api but not via the admin backend. What is a "virtual template"? A virtual template is a template using a fieldset of an other template. So you can't define fields for it but you can create special template files instead of building a switch function into your template file. For example: For example you have a "grid" template which contains an image field and two textfields. Now you want to have a grid-sport and a grid-food gallery. But you want to have different appearances for them even if they need the same fieldset. Shouldn't be hard to implement and could make a handy addition 1
Soma Posted July 21, 2015 Posted July 21, 2015 Turn on config advanced mode, create template and select fieldgroup from another templates fieldgroup to share the fields but have a new template. 11
bernhard Posted July 22, 2015 Posted July 22, 2015 now what i found by coincidence makes sense, thank you https://processwire.com/talk/topic/10114-fieldgroups-inheriting-fields/
Martijn Geerts Posted July 22, 2015 Posted July 22, 2015 Or download and install fieldtypeSelectFile. You can asign an other template file for that page to render. http://modules.processwire.com/modules/fieldtype-select-file/ 1
renobird Posted July 22, 2015 Posted July 22, 2015 Or download and install fieldtypeSelectFile. You can asign an other template file for that page to render. http://modules.processwire.com/modules/fieldtype-select-file/ I can't recommend that module enough. 2
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