apostrophe-cms

joinByArray field add to beginning of array in apostrophe-cms


I'm hoping to get some help with what I think should be an easy request but can't seem to figure it out in apostrophe-cms. My client wants the joinByArray field to add articles to the beginning of the array instead of at the end is there a way to achieve this functionality?


Solution

  • The file to look for would be lib/modules/apostrophe-schemas/public/js/array-modal.js. Apostrophe isn't built to add items to the beginning of the array field items, but if you wanted to venture into customizing that behavior it would be by overriding that file.