Allow Site Initializers to connect Collections to Space Scope, dinamycally

What is the problem you are trying to solve?

Improve Site Initializers so they support scoping dynamic collections to an Asset Library/Space via asset-list-entries.json declaratively.

What is your project about? (e. g. Intranet, Partner Portal, Enterprise Website, etc)

Any type of project will benefit

What is your proposed solution? (optional)

When a dynamic ID requires a replacement to the real final ID that has been generated when executing the Site Initializer, there’s different places where that dynamic replace happens. That’s related to logic that exists already with “stringUtilReplaceValues” and “[$DEPOT_GROUP_ID:eLearning$]” or similar. However this is not a pattern followed in groupIDs for a Collection (asset-list-entries.json)

There are no replacement tokens for Depots/Spaces:

  • _addOrUpdateDepotEntries: it does not accept stringUtilReplaceValues and does not register any tokens (e.g. no [$DEPOT_GROUP_ID:eLearning$] or [$SPACE_ID:…$]).
  • _createRMap: addAssetListEntriesR does not even depend on addOrUpdateDepotEntriesR.
    Therefore, there is no dynamic placeholder mechanism in the Site Initializer engine to resolve the generated groupId for a given Space into asset-list-entries.json.
1 Like