WebSphere Issues

27/07/2015

WCM XPath queries to list contents

Filed under: Other, WCM, WebSphere Portal — Tags: , — Ishtiaque @ 10:24 am
  • List all the contents in a library

-> //element(*, ibmcontentwcm:webFolder)[@jcr:uuid = ‘e44b9a0049a97888a1b6b1e45894c92a‘]//element(*, ibmcontentwcm:webContent)[(@ibmcontentwcm:workflowStatus = 1 )] order by sortkey(@icm:title, ‘en’) ascending

  • jcr:uuid = ‘e44b9a0049a97888a1b6b1e45894c92a -> uid of the Contents of library that you can find from WCMSupportTools > Browse Nodes  >  [Root]/contentRoot/icm:libraries[x]/Content
  • ibmcontentwcm:webContent -> It means web contents
  • ibmcontentwcm:workflowStatus = 1 -> It means live items

-> //element(*, ibmcontentwcm:webFolder)[@jcr:uuid = ‘97535b804072745c950eb5a4c2fb2f60’]//element(*, ibmcontentwcm:webContent)[(@icm:creator = ‘cn=myid,ou=users,ou=ibm,dc=com,dc=us’)] order by sortkey(@icm:title, ‘en’) ascending

Advertisements

Create a free website or blog at WordPress.com.

%d bloggers like this: