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

Create New Page Function #39

Open
DCReddish97 opened this issue Jul 16, 2019 · 3 comments
Open

Create New Page Function #39

DCReddish97 opened this issue Jul 16, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@DCReddish97
Copy link

DCReddish97 commented Jul 16, 2019

It would be good if there was a create page function so you can create new pages in the admin panel, and assign it to a specific template through a dropdown thats pull's through all the templates thats have been made.

When a new page is made it'll create a new blade templates that just have a @extend layout in there, and all the page fields will be added to the layout file. I currently have mine set in the layout file and then I use select fields to define which block I want to create so the client can go in and edit a page by selecting the component they want and in the order they want it to display.

Then we would set up a dynamic routes to auto assign the new created pages to a route without having to manual add the routes.

@toonvandenbos toonvandenbos added the enhancement New feature or request label Jul 26, 2019
@toonvandenbos
Copy link
Member

toonvandenbos commented Jul 26, 2019

Hi @DCReddish97,

I like the idea, but it causes an architectural problem with the routes binding the package provides in its current state.

Right now, static pages are always linked to existing routes. I understand your suggestion for dynamic routes, but it requires a little bit more digging before defining the feature because it could break some existing setups.

Just a little side note on your suggested roadmap: I don't see why the package should create a new blade template when creating a new page. Why would you extend an existing template instead of using it directly from a controller? The fields could be made available using the existing solutions.

I'm curious to hear more about the community's insights on this matter.

@ArtMin96
Copy link

Hi @DCReddish97,

I like the idea, but it causes an architectural problem with the routes binding the package provides in its current state.

Right now, static pages are always linked to existing routes. I understand your suggestion for dynamic routes, but it requires a little bit more digging before defining the feature because it could break some existing setups.

Just a little side note on your suggested roadmap: I don't see why the package should create a new blade template when creating a new page. Why would you extend an existing template instead of using it directly from a controller? The fields could be made available using the existing solutions.

I'm curious to hear more about the community's insights on this matter.

Hi. I like the idea too. And I hope we can see that feature.

@nickbluestone98
Copy link

Are there any updates on this feature getting implemented? would be brilliant!

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

4 participants