Enable way to drag CMS pages into Commerce Connect content

  • Updated

Description

We are missing a way to drag CMS pages into a piece of Commerce Connect content. It is simply not possible to view the CMS page tree in the Commerce Connect context.

We have a workaround for Entry Content (go to the CMS editor mode, find and open Commerce Connect content from asset pane and edit). But that does not work for Node Content, because nodes/folders cannot be edited in the asset pane.
But for the better solution would be to allow viewing CMS page tree in the right-hand asset pane. In this way, we could find and drag in CMS content when viewing a piece of Commerce Connect content.
It would also make editing Commerce Connect content in CMS, and CMS content in Commerce Connect, completely equal.

Resolution

The workaround was to re-enable the site view within the Commerce Connect context with the following

using EPiServer.Cms.Shell.UI.Components;
using EPiServer.Commerce.Shell;
using EPiServer.Shell.ViewComposition;

namespace Foundation.Custom
{
[Component]
public class CustomPageTreeComponent : PageTreeComponent
{
public CustomPageTreeComponent()
{
PlugInAreas = new[]
{
CommercePlugInArea.NavigationDefaultGroup,
CommercePlugInArea.AssetsDefaultGroup
};
}
}
}
 
This will then add another tab to the commerce view for pages enabling full drag and drop support when in the context of commerce as below.

blobid0.png