I want to include some custom css and js files to templates of an addon package I am developing. I have added the files under the static folder. I wanted to register resources with the resource registries and hence I followed https://docs.plone.org/external/plone.app.dexterity/docs/advanced/static-resources.html#registering-a-static-resource-directory.
The custom css is not getting imported into the browserview, even after adding it to cssregistry.xml.
However, it is working if included as a style-slot in the template like below:
<metal:block fill-slot="style_slot"> <link rel="stylesheet" type="text/css" tal:define="navroot context/@@plone_portal_state/navigation_root_url" tal:attributes="href string:${navroot}/++resource++ploneorg.addonlisting/addonlist.css" /> </metal:block>
what additional steps are needed after registering in the cssregistry.xml, to use the custom css classes in the templates?