We’re having problems with auto-slots in case where returned items should be filtered by folder id (this is related to items that are pasted-as-link). While trying to solve this, I came upon some interesting things.
So, in query debugger, if I run
select rx:sys_contentid, rx:sys_folderid from rx:rffgeneric where jcr:path like '//Sites/Corp%'
a bunch of records is returned. What’s interesting, folder id figures in select although it isn’t item property (as far as I know).
Then run this
select rx:sys_contentid, rx:sys_folderid from rx:rffgeneric where rx:sys_contentid=590
to get one record.
However statement
select rx:sys_contentid, rx:sys_folderid from rx:rffgeneric where rx:sys_folderid=532
returns empty set.
When I modify slot query to filter on folderid I get an error.
Could someone help me understand this? And how to write slot definition to get only items from particular folder?
Thanks guys…