Enonic version: 6.4.2
Use lib-content’s “get” that accepts id or path as “key” param: http://repo.enonic.com/public/com/enonic/xp/docs/6.4.2/docs-6.4.2-libdoc.zip!/module-lib_xp_content.html#.get
Returns a content object with all you need.
Or do you mean URL? Then use lib-portal’s pageUrl: http://repo.enonic.com/public/com/enonic/xp/docs/6.4.2/docs-6.4.2-libdoc.zip!/module-lib_xp_portal.html#.pageUrl
If all else fails, the good old query can get anything with a custom where
param.
ok, I’ll give it a try