when I go to the respective browserView I get the following error
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module ploneorg.addonlisting.browser.views, line 41, in call
NameError: global name 'add_resource_on_request' is not defined
But,
from Products.CMFPlone.resources import add_resource_on_request
and addonlist.css and addonlist.js have been added in the static folder, which is configured as a resource directory in configure.zcml, as mentioned above.
When the corresponding browserView is opened, no css styles are applied and no js script is called. The registered resource is listed in the resource registry control panel of the plone site. what additional changes have to be made to include the css and js in the template?
In the end, it seems that @pavithirakc had correctly set up the registry and her JS was being correctly served, but there was an incorrect CSS ID being referenced. We think fixing that ID will have addressed the issue.