The best way to understand how to use GenericSetup in practice is to have a practical example. In this case, assume that through the ZMI we have added some portal_tabs
to our site:
To extract those to the filesystem, it helps to see the necessary syntax first. Go to portal_setup
in the ZMI, click on the Export tab, select the actions option, and export that selected step. It will export a large file that contains all of the portal_actions
information, not just the information pertaining to the portal_tabs
. In this case, we want to add the following CMF actions to the portal_tabs
area:
BC Heroes
Climate
You want to extract only the relevant information from that file into a new file named actions.xml
, to be placed in the profiles/default
folder of your theme product:
<?xml version="1.0"?> <object name="portal_actions" meta_type="Plone Actions Tool" xmlns:i18n="http://xml.zope.org/namespaces/i18n"> <action-provider name...