You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this the path shown when configuring a collection or a collection portlet, or selecting a content-item through TinyMCE gets cut, and only the part of the path from the navigation root on is shown.
For instance, here, I am configuring a collection portlet in a multilingual site (/en, /es and /eu are navigation root objects).
The widgets shows the contents from all navigation roots, but the shown paths are missing the initial /eu, /es, /en.
I patched the get_base_path method to strip only the part regarding the Plone site root's id, and it shows like this:
Is the first one an intended behavior? I find it confusing...
Because it would show the portal path too (/plone/eu/[...]). By default, you should only see objects in the navigation root. I did another commit in mockup to be able to change that (plone/mockup@4080f5f).
Did you change anything to have all the objects from the portal root instead of the nav one ?
Why do we
cut
the path of the item based on the nearest INavigationRoot?https://github.com/plone/plone.app.content/blob/master/plone/app/content/browser/vocabulary.py#L119
https://github.com/plone/plone.app.content/blob/master/plone/app/content/browser/vocabulary.py#L205
https://github.com/plone/plone.app.content/blob/master/plone/app/content/browser/vocabulary.py#L227
With this the path shown when configuring a collection or a collection portlet, or selecting a content-item through TinyMCE gets cut, and only the part of the path from the navigation root on is shown.
For instance, here, I am configuring a collection portlet in a multilingual site (/en, /es and /eu are navigation root objects).
The widgets shows the contents from all navigation roots, but the shown paths are missing the initial /eu, /es, /en.
I patched the
get_base_path
method to strip only the part regarding the Plone site root's id, and it shows like this:Is the first one an intended behavior? I find it confusing...
Any idea on this? @Gagaro
The text was updated successfully, but these errors were encountered: