by jason » Wed May 03, 2017 6:09 pm
If you have a reference to the P object, you can find its position in the content list.
If you don't have a reference to the P object, you'll need to find it first. The usual ways are either TraversalUtils, or XPath.