Adding a UGC target to a Publication mapping
To include UGC in a Publication mapping, either update an existing mapping or create a new one, using PowerShell scripts.
Procedure
- Access the machine on which you installed Topology Manager server. (This is the same machine on which Content Manager server is installed.)
- To add UGC to an existing Publication mapping you created earlier, run the following PowerShell command:
Set-TtmMapping -Id MAPPINGID -RelativeUrl RELURL -ExtensionProperties @{"UGCTargetName" = "TARGETID"}where:- MAPPINGID is the identifier of a Publication mapping you created earlier.
- RELURL is the relative URL from the Web application context to the mapped location. If the mapped location is the root, omit the
-RelativeUrlparameter and its value. - TARGETID is the identifier of the UGC target. If you registered the UGC Capabilities automatically and if you did not add targets, TARGETID defaults to
target1.
- Alternatively, to create a new Publication mapping and add UGC to it at the same time, do one of the following:
- Create a new mapping in the Publishing tab of a Publication, and then use the
Set-TtmMappingcommand as above. - Create a new mapping by running the
Add-TtmMappingcommand, appending-ExtensionProperties @{"UGCTargetName" = "TARGETID"}to the end of the command.
- Create a new mapping in the Publishing tab of a Publication, and then use the