Hi,
When using AEM API's sometimes pages are returned from methods come with jcr:content and sometimes without jcr:content.
Checking for jcr:content and then concat it, does not feel right.
Is there an API in AEM/Sling to do this for us?
Regards,
Peter
Solved! Go to Solution.
Views
Replies
Total Likes
That behavior does very likely happen only when you use JCR query. But it's very easy to cope with that:
resource r = ...
Page p = r.adaptTo(Page.class)
and voila, it's normalized. But then try to avoid working on the page path (via p.getPath()) via String operations.
Jörg
Views
Replies
Total Likes
When working with Pages - for example - are you using PageManager API?
Views
Replies
Total Likes
That behavior does very likely happen only when you use JCR query. But it's very easy to cope with that:
resource r = ...
Page p = r.adaptTo(Page.class)
and voila, it's normalized. But then try to avoid working on the page path (via p.getPath()) via String operations.
Jörg
Views
Replies
Total Likes