I am using the apostrophe-samples
Github project to do some tests regarding the pieces modal customization. So far, I've added filters as explained in the tutorials, and added columns as seen in the apostrophe-pieces
source code (I think it would be an interesting topic to add to the tutorials, IMHO).
However, I have a couple of doubts, given the example that specialists joinByArray
products and products joinByArrayReverse
specialists:
- Can columns be sorted in any way through the UI (e.g., an option that enables sorting by clicking the table header) or does it rely entirely on the piece's
defaultSort
? - Can other fields other than the title be added as filters? I was able to add
_specialists
as products filter, displaying the title, but I'm wondering if a different field could be used. - Can reverse joins be added as filters? As said, I was able to add
_specialists
as products filter, but not the other way around. - Can joins/reverse joins be added as columns? If I add '_specialists' I column, I get displayed an array like
[Object]
, not the title as in the filter.