I am experiencing problems with content which is generated using auto slots.
The auto slots in this instance are used on hub pages to generate a set of links to generic pages. The relationship between the pages is established by both the hub page and generic page have the same box(es) ticked in a check box tree.
What I am finding is that every time a hub page is revised, a duplicate set of links to the generic pages are generated. So for example if there are 5 links when the hub page is first created, there would then be 10 links after the first revision, 15 after the second and so on.
The query I have in one of the slots is as follows.
select rx:displaytitle, rx:sys_contentid, rx:sys_revisionid from rx:contentTypeName where rx:fieldName =:bindingVariable order by rx:displaytitle
Any suggestions on what this issue could be please?
The documentation is wrong here. In 6.5 and later, the revision comes from the Item Filter, not the query, so including the revision won’t add anything.
I’ve asked the doc team to add this to their list.
As for the original problem, I tested executing a JCR query (via the test JSP) on an item with multiple revisions, and it only returns the current revision. I don’t know if this holds true for an actual autoslot or not.
I have tried as suggested and this has not made any difference to the results appearing on the page.
I have also done a test on an item with multiple revisions and found it only returns the current revision. Any explanation as to why the same thing does not happen for my auto slots?