Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Layout template generator #207

Open
ghost opened this issue Apr 29, 2022 · 0 comments
Open

Feature: Layout template generator #207

ghost opened this issue Apr 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Apr 29, 2022

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

image

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

@ghost ghost added the enhancement New feature or request label Apr 29, 2022
@ghost ghost changed the title Feature: Layout model generator Feature: Layout template generator Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

0 participants