I want to be able to change the display name of the publishing target item and not change the item name as follows:
In the config/global folder for the Sitecore Publishing Service, there is a XML file to apply the additional publishing targets. Below is an example leaving out some of the other targets:
<Settings> <Sitecore> <Publishing> <Services> <StoreFactory> <Options> <Stores> <Targets> <!--Additional targets can be configured here--> <Production_DR> <Type>Sitecore.Framework.Publishing.Data.TargetStore, Sitecore.Framework.Publishing.Data</Type> <ConnectionName>DisasterRecovery</ConnectionName> <FeaturesListName>TargetStoreFeatures</FeaturesListName> <!-- The id of the target item definition in Sitecore. --> <Id>964c28ac-46be-409a-8ff8-ba5412694a2b</Id> <!-- The name of the Database entity in Sitecore. --> <ScDatabase>disaster_recovery</ScDatabase> </Production_DR> </Targets> </Stores> </Options> </StoreFactory> </Services> </Publishing> </Sitecore> </Settings>
After changing the display name from
Production Disaster Recovery, publishing fails for that specific target:
I understand that the targets configured for Sitecore Publishing Service must match the publishing targets in Sitecore. Is there another way to achieve the same results? Or, how would you configure publishing targets that have spaces in the name?