plone / plone.api

The Plone API
https://6.docs.plone.org/plone.api
Other
86 stars 53 forks source link

Add api.content.get_path #532

Open davisagli opened 6 months ago

davisagli commented 6 months ago

It would be nice to have an API for getting an object's path, so that it isn't necessary to use "/".join(obj.getPhysicalPath())

Nice to have: specify whether to get the path relative to the Zope root or Plone portal.

mauritsvanrees commented 4 months ago

As seen elsewhere, obj.absolute_url_path() may be good here.