-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rebuild template layer #8117
Comments
Not sure if I understand your idea correctly, but what about making the admin bundle extendable? For example the I know this would mean an other more library to maintain but that might solve some issues and reduces the overall project artifact size. I'm also not sure how to provide features that require code on the template side, like options you pass from the PHP component to the template to change some theme specific code like this: SonataAdminBundle/src/Mapper/BaseGroupedMapper.php Lines 83 to 85 in eed8f63
|
Think about Now template options (or templates config). We can check them by validating when adding template registry to pool. In this case we can force templates creator to add options like |
Hi, any news on this? |
Hi @matik955. For do it in the best way for all sonata bundles (and my own projects) i had to check all of them.
To sum up, I am starting work on a new, independent template system that will enable defining a list of templates, their options and allowing them to be extended. After that we can add it to |
HI @wbloszyk |
Hi @toooni |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
please keep it open good bot. |
Feature Request
Current system have one template (AdminLTE2) and it is depends of some bundle config. This solution is hard to keep BC becouse depends of so many third part packages.
Now all templates are taken from
sonata.admin.global_template_registry
. Somesonata_admin.options
should be move there. Also templateRegistry should be moved to pool. This solution will make templates replaceable without BC break.From this:
To this:
The text was updated successfully, but these errors were encountered: