-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Broken steps in theme-package.html#css-and-js-resources #174
Comments
Hi @davilima6, thx for feedback. Actually we decided to rewrite the theming docs to not use the ResourceRegistry anymore. Because for theming it is not needed anymore. We can use the Diazo bundle in the manifest.cfg now as you stated and also rebuild the css from the Theming Editor. This makes the theming docs much simpler and easier to understand. We will provide a gulp and grunt example on how to build your setup and that's it. So no ./bin/plone-compile-resources and the whole dependencies and problems with it anymore. That's the plan, but I couldn't find time to work on it by now. I hope that I can finish this until the end of the year. |
Thanks, this is good news! I see that you assigned the issue to me. Would you like me to remove current references to registry.xml so other devs don't get lost in the meantime? Also I think it'd be valuable to have an "info box" telling readers/trainees that registry.xml is available and useful for some cases, ie:
|
@MrTango I have tried |
@fulv by now it will not work with the Editor rebuild. |
@davilima6 i think that was just a mistake, i wannted to mention you and something went wrong ;) |
This might be related to plone/Products.CMFPlone#1181 and plone/Products.CMFPlone#1136. @fulv, I'm working with registry.xml only and that seems stable (and imo more flexible/desirable for a packaged theme). |
Yes, but this way will not work well by now, because then you need to rebuild the bundles in the registry by hand, after you installed your package/theme.
Yes, of course the registry is usefull it self and special for addon-packages which comes with resources. But i would hide that in the main theme documentation or let's say mention it as a side note, but not force people to dive into to resource registry. Because they will just freak out with all the stuff. |
@MrTango Np, and if you are short of time please reassign this to me. Let's stop having integrators scratching their heads so much ;) Re: your last comment I completely agree with both points, that's what I meant with "info box", an |
@MrTango, if you don't mind I'm going to make a PR on this one. |
Go ahead ;) |
Done! I took the opportunity to update Diazo selectors from XPath to CSS, same as I did here: plone/plonetheme.barceloneta#39. Also fixed a bit which led to duplicated IDs bug, like this: plone/plonetheme.barceloneta#53 |
This section tells to register resources twice: once in registry.xml and then again in manifest.cfg inside the implicit Diazo bundle:
This is wrong and results in duplicate bundles output as seen in plone/Products.CMFPlone#1220.
Trainers, please should choose one way or another and make the difference explicit.
The text was updated successfully, but these errors were encountered: