Skip to content

Commit

Permalink
add search criteria for all tags in known components.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 21, 2021
1 parent f84c7b2 commit c1ebb77
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,11 +773,15 @@ protected void populateTagListItems() {
childMap.put(groupPrefix + offset + tagIdSuffix, tag);
childMap.put(groupPrefix + offset + tagIdSuffix + ".property", JcrConstants.JCR_CONTENT.concat("/cq:tags"));

// Offset the Page Details group by one so we don't conflict with the page properties query
offset++;
//add search criteria for all tags in known components.
for (String path : DEFAULT_LIST_PAGE_CONTENT) {
// Offset the any details group by one so we don't conflict with the page properties query
offset++;

childMap.put(groupPrefix + offset + tagIdSuffix, tag);
childMap.put(groupPrefix + offset + tagIdSuffix + "property", JcrConstants.JCR_CONTENT.concat("/article/par/page_details/cq:tags"));
childMap.put(groupPrefix + offset + tagIdSuffix, tag);
childMap.put(groupPrefix + offset + tagIdSuffix + ".property", JcrConstants.JCR_CONTENT.concat(path).concat("/*/cq:tags"));

}
}

populateListItemsFromMap(childMap);
Expand Down

0 comments on commit c1ebb77

Please sign in to comment.