How-to guides π οΈ#
Choose an approach π§©#
Goal |
Approach |
|---|---|
Main menu, built-in Barceloneta markup |
Use the existing viewlet |
Additional menu field, built-in markup |
Additional menu fields β subclass |
Additional menu field, custom HTML |
Define it in Additional menu fields, then use Custom menu rendering |
Main menu, custom HTML |
Add an internal link π#
Add a link item.
Open the Internal tab.
Click Select and pick an object with the content browser.
Save.
The target is stored as a UID and resolved with the current userβs View
permission at render time. Internal menu links also participate in Ploneβs
linkintegrity checks.
Add an external link π#
Add a link item.
Open the External tab.
Enter an
http,https,mailto, ortelURL.Save.
Enable Open in a new tab if needed; the viewlet adds
rel="noopener noreferrer".
Style an item π¨#
CSS class is added to the itemβs
<li>.Plone icon name is resolved through
@@iconresolverand rendered as an inline SVG before the label. Use names such asalarmorcontenttype/document.
Enable LRF support π#
Install plone.app.multilingual before or after cs.megamenu.
If PAM is installed before the add-on, the add-on profile enables the behavior on
LRF.If PAM is installed after the add-on, reapply the
cs.megamenu:defaultprofile.
Build the editor assets π§±#
npm install
npm run build
The remote bundle and chunks are written to
src/cs/megamenu/browser/static/bundles/.