I have a websites having few pages present on domain root and others inside sub-domain en. On root pages we have dynamic component presentations from en publication in use. Whenever we are updating the root pages in XPM, we are getting error message:
No Publication Target or Target Type is defined for this Experience Manager-enabled Web site. To resolve this problem, Contact your SDL Web administrator.
at Tridion.Web.UI.Models.SiteEdit.Services.GetPreviewSessionToken(PublishedItemInfo[] publishedItemsInfo, String publishingTargetId)
at Tridion.Web.UI.Models.SiteEdit.SessionPreviewService.GetPreviewToken(PublishedItemInfo[] publishedItemsInfo, String publishingTargetId)
at SyncInvokeGetPreviewToken(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Tridion.Web.UI.Core.Extensibility.DataExtenderOperationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Pr
This seems correct as we have publication mapping defined for subdomains(en) only as per the topology manager settings configured below:
Get-ttmmapping
CmEnvironmentId : Environment1
PublicationId : tcm:0-4-1
EnvironmentPurpose : EP1
WebApplicationId : Application1
RelativeUrl : /en
PrimaryMappedUrl : https://domain/en
IsOffline : False
CdEnvironment :
Id : Mapping1
ExtensionProperties : {}
Get-ttmwebsite
BaseUrls : {https://domain.com}
CdEnvironmentId : CDEnvironment1
EnvironmentPurpose : EP1
CdEnvironment :
ScopedRepositoryKeys : {}
Id : Website1
ExtensionProperties : {}
Get-ttmwebapplication
ContextUrl : /
WebsiteId : Website1
EnvironmentPurpose : EP1
CdEnvironment :
ScopedRepositoryKeys : {}
Id : Application1
ExtensionProperties : {}
Now my question is can we configure topology manager to configure same publication ID for domain and sub-domain both in Web 8.5? Is there any way, we can use same publication with domain and sub-domain to work with XPM.