howto override the comments viewlet js section added.

svn path=/plone.app.discussion/trunk/; revision=51797
This commit is contained in:
Timo Stollenwerk 2011-08-26 10:34:36 +00:00
parent 0a13f79460
commit 432f015fe4
1 changed files with 24 additions and 0 deletions

View File

@ -100,3 +100,27 @@ comment.pt::
...
Override the comments viewlet Javascript
----------------------------------------
profiles/default/jsregistry.xml::
<?xml version="1.0"?>
<object name="portal_javascripts">
<javascript
id="++resource++plone.app.discussion.javascripts/comments.js"
remove="True"
/>
<javascript
id="++resource++example.myaddonproduct.javascripts/comments.js" />
</object>
browser/configure.zcml::
<!-- Resource directory for javascripts -->
<browser:resourceDirectory
name="example.myaddonproduct.javascripts"
directory="javascripts"
layer="example.myaddonprocuts.interfaces.IBrowserLayer"
/>