This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const merge = require('webpack-merge'); | |
const webpack = require('webpack'); | |
const path = require('path'); | |
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | |
var baseConfig = require('./extra.config.js'); | |
module.exports = merge(baseConfig, { | |
entry: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Basically, http://docs.plone.org/develop/addons/components/zcml.html#specify-files-and-code-from-another-package explains how to do it. But the example is not very clear, since in both cases the same packge is referenced. Therefore, a simple example: | |
Suppose you want to overwrite the folder_contents view in Plone. You only need to change some code in the class and you're happy with the template. | |
The view is defined in plone.app.content.browser with this zcml statement: | |
<browser:page | |
for="Products.CMFCore.interfaces._content.IFolderish" | |
class=".folder.FolderContentsView" | |
name="folder_contents" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am pysailor on github. | |
* I am pysailor (https://keybase.io/pysailor) on keybase. | |
* I have a public key ASCP1lYVWYNfnEq5PcS7dE1rrY6djT1QzS44HvyVatIRtQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This example assumes you have a simple (flat) vocabulay named `available-languages` | |
in portal_vocabularies | |
""" | |
# This would be your vocabularies.py | |
from Products.CMFCore.utils import getToolByName | |
from zope.interface import implementer |