The goal of this feature would be to have a specific folder called models(for example) which contains some layouts folders (just like in the pilopress/layouts/ folder) that we could use to pre-generate a new layout.
Here's a typical desired workflow:
I need to create a new slider layout
I created some in the past & i don't want to write the same thing again (DRY)
When i go in the admin, to Pilo'Press > Layouts > Add new
How awesome would it be to have a select element which contains a list of my layouts models(see screen for placement idea) & i could select my "slider" layout model
You could then choose & submit to have this page reloading with ACF fields from my model loaded that i could customise further, the select element would be still set on my selected layout model & when i finally publish my layout it would create the same files structure as my model (also with the corresponding code of my layout, example: template code already there, JS code if present...etc)
It could be a game changer to develop new layouts faster & cleaner.
The goal of this feature would be to have a specific folder called
models
(for example) which contains some layouts folders (just like in thepilopress/layouts/
folder) that we could use to pre-generate a new layout.Here's a typical desired workflow:
It could be a game changer to develop new layouts faster & cleaner.