Closed thet closed 8 years ago
I dont think this works.
An INavigationRoot is less than a Site. https://github.com/plone/plone.app.layout/blob/master/plone/app/layout/navigation/interfaces.py#L13
Only in lineage a Childsite is both, INavigationRoot and ISite: https://github.com/collective/collective.lineage/blob/master/src/collective/lineage/utils.py#L20
But in the other common use case of plone.app.multilingual its just a INavigationRoot: https://github.com/plone/plone.app.multilingual/blob/master/src/plone/app/multilingual/content/lrf.py#L35 https://github.com/plone/plone.app.multilingual/blob/master/src/plone/app/multilingual/interfaces.py#L21
getNavigationRootObject
but usegetSite
, which produces same results. Also fixes a problem, where related items widget options for registry controlpanel forms tried to callgetPhysicalPath
on a plone.app.registryRegistryProxy
.utils.get_portal_url
and replace with call togetSite().absolute_url()
./cc @jensens