I’m trying to work out if I can include a page from a single page and its children on the main wiki automatically using tags from the current page in a subwiki.
The Main Wiki contains page under xwiki:DeviceInformation and has children pages for the Manufacturer then model so that info only needs to be entered once per device here. The page for each device will be tagged with whatever the model number is “phone1”, 'PC2", “PrinterA” etc.
The Subwikis for Customer Data will have a page that says what device types they have onsite I.E. Customer “CompanyABC” had devices “XYZ” & “abc” onsite. If I tag the page with “PC2” and “phone1” then find the tagged pages in xwiki:DeviceInformation.WebHome and it’s children and include the data for easy veiwing.
So far I’ve only been able to get Documents from within the same wiki that have been tagged. I’ve tried using the context macro but still only get pages within the same wiki.
Is it possible to get tagged documents from another wiki? And is it possible to limit $xwiki.tag.getDocumentsWithTag(String tag) to only look at a single page and its children?