Search code examples
alfresco

Alfresco contentstore selection


This is regarding a alfresco multiple content store .

I believe , we can create multiple contentstore location , other than default one. ($ALF_DATA/contentstore/2019) . In case if i have multiple contentsore defined using config file(‘content-store-selector-context.xml’ ), Is there a way to specify or select contentstore while uploading files to alfresco . for ex – if i have following config ,

D:/storeB

How can i specify document to be uploaded to [D:/storeB/2019 ] location , instead of default location ($ALF_DATA/contentstore/2019)

Thanks


Solution

  • RTFM? Documentation Using the new content store states, you need to add the aspect cm:storeSelector and set the property cm:storeName This could be done by Skript, rule or extension.