Sven Werlen:
Thank you for this valuable hook. I have the same need to add community in the scope, so this solves the issue.
However, in Asset Publisher configuration, if I add filter, somehow it cannot get the document from the community. For example,
1. In community ABC, I upload a document in community document library and tag it "xyz"
2. Under the global page, I add an Asset Publisher portlet. In configuration, I choose the scope "ABC", then save.
3. The document title I upload in community shows up in the portlet.
4. I change configuration by adding a new filter "Contains Any of the following Tags "xyz", then save.
5. The document somehow disappears from the portlet.
If I have documents with the same tag in the global document library and choose global scope with the same filter in asset publisher configuration, it display the document in global document library fine.
So somehow, the filter does not seem to work right if I choose the community scope.