-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Hybrid Page #752
Comments
i just start to take a real look on the sonata page bundle, actually i got
a prob, blocks inst set to my page (header, content_top ....) and i didnt
find why yet, but, i already thinked about customize, the first thing i
already did is to add parameter attribute to a page, create a parameter
bundle, and add it attribute with special fonctionallity, for exemple, when
you render the title of a page, you will be able to look if parameter.name
is set, if not, set default title :) that really easy to implement, just
create parameter bundle, create parameter entity, do a oneToOne
unidirectional mapping from page->parameter to ParameterBundle:Parameter,
override the pageAdmin, add parameter in formMapper :)
2016-12-01 21:09 GMT+01:00 finchen <[email protected]>:
… Hi,
I am using *Hybrid Page* for a list of *category*.
the route:
category:
path: /category/{slug}
defaults:
_controller: MyBundle:Category:index
slug: all
with php bin/console sonata:page:update-core-routes --site=all
it will generate the route as a Hybrid Page in the database
Page.route_name = category
Page.url = /category/{slug}
Page.template = default
In most cases, this is enough:
- I can choose a template and add blocks for the category pages (all
the same)
- I can set the page title and meta description from the controller
for each category
Limitations:
- I can not customize one category from the CMS (eg. add blocks for
T-Shirt or let the CMS user change the title)
- The drop down of Pages (eg. 'redirect' or 'parent' from the Page
Admin) contains only the CMS page
- If I build a 'menu builder' or a ck editor plugin to link to a page,
the category pages don't really exist
Ideas:
- when selecting an hybrid page, should a second dropdown appear with
the possble 'parameters' (eg. all the category)? it seems difficult to
implement
- should it use the CMF routing to generate all the page and store
them?
- maybe a new page type? Hybrid Page are enough in most case, but
sometimes generate all the pages could be useful (eg. for category. for
10000 products it might not be ideal)
Just looking for feedback.
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#752>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ARsPkJgi0N4uwAikZ3OfMFWvfIsigN85ks5rDymMgaJpZM4LB1cx>
.
|
I think that those ideas are too specific to be implemented directly on this bundle. Closing for now, maybe this should be a question on stackoverflow on how to do it outside sonata. If @sonata-project/contributors or you think that this should be implemented or have an idea on how to do it, please ping me to reopen. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am using Dynamic Page for a list of category.
the route:
with
php bin/console sonata:page:update-core-routes --site=all
it will generate the route as a Dynamic Page in the database
In most cases, this is enough:
Limitations:
T-Shirt
or let the CMS user change the title)Ideas:
Just looking for feedback first.
Thank you
(let me know if you would prefer to move it to stackoverflow)
The text was updated successfully, but these errors were encountered: