Remove the Goto plugin and use the core CMS functionality instead
New in version:CMS 7.6, HST 2.21.01The Goto plugin has been deprecated in CMS 7.6. Its functionality has been moved into the CMS core. You should move the plugin's configuration to a new location in the repository, and remove the plugin from your project.
Any custom configuration of the Goto plugin should be copied to new 'document url' CMS services. The names and values of the configuration properties have not changed, only their location in the repository. The old Goto plugin configuration should be removed.
Open the console
Copy the properties of
/hippo:configuration/hippo:workflows/goto/button/frontend:renderer/host.preview
to
/hippo:configuration/hippo:frontend/cms/cms-services/previewSiteDocumentUrlService
Copy the properties of
/hippo:configuration/hippo:workflows/goto/button/frontend:renderer/host.live
to
/hippo:configuration/hippo:frontend/cms/cms-services/liveSiteDocumentUrlService
Remove the value 'goto' from the multi-string property 'workflow.categories' in these nodes:
Delete the node
/hippo:configuration/hippo:workflows/goto
Save the changes
The 'Website actions' menu in the document editor of the CMS should now be gone. The new 'View' menu should use the copied configuration (e.g. open documents in the correct preview and live environment).
Note: if the configuration of the goto plugin was part of your project content (e.g. loaded by some hippoecm-extension.xml file), you should mimic the manual 'copy' actions described above in there as well. The wiki contains an example of how to easily override the existing configuration using the new advanced XML import.
The Goto plugin should be removed from your project as well.
Replace configuration of the goto plugin in your hippoecm-extension.xml files with configuration for the new document url services (i.e. mimic in code the manual 'copy' actions described above).
Delete the following artifacts from your Maven poms:
Warning: do NOT remove the artifact org.onehippo.cms7:hippo-cms-gotolink, which renders the unrelated 'To the documents' button in the CMS.
Remove the following snippets from the web.xml file of your site:
<filter>
<filter-name>HstUuidToUrlRedirectFilter</filter-name>
<filter-class>org.onehippo.forge.go.container.HstUuidToUrlRedirectFilter</filter-class>
</filter>
and
<filter-mapping>
<filter-name>HstUuidToUrlRedirectFilter</filter-name>
<url-pattern>/previewfromcms</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
(HST >= 2.21.01 recognizes /previewfromcms without the need for a separate filter)
Hippo Europe: +31 (0)20 5224466
Hippo North America: +1 (707) 773-4646
© 1999-2010 Hippo B.V., All Rights Reserved