Skip to content

The page create command with the layouts feature enabled creates pages that are not editable. #7474

@mvarblow

Description

@mvarblow

I started with a default Orchard 1.10.x installation with layouts enabled. I used the page create command to add several pages. I attempted to edit those pages. The text was not visible in the layouts canvas. However, the text does render on the page in the front-end.

Example command:

page create /title:"Lorem ipsum dolor sit amet" /Text:"Ut et imperdiet leo. Nullam bibendum condimentum ante rutrum pharetra. Nulla in dapibus tellus, sed venenatis libero. Pellentesque orci lectus, placerat vitae nisi sed, rhoncus pharetra metus. Fusce in leo ipsum. Suspendisse dictum consectetur nibh, cursus suscipit metus rhoncus ac. Suspendisse blandit tellus sit amet ipsum lacinia, in convallis ex faucibus. Fusce facilisis ultrices ante vitae rhoncus. Quisque dignissim augue sit amet posuere imperdiet. Mauris ultricies tincidunt ipsum, ut egestas diam aliquam a." /Publish:true

The problem seems to be with the layout data hard coded in the Orchard.Pages module. The command adds a layout with a Html element as the root. If I change that command to add a layout with a Canvas as the root and the Html element as a child then the resulting page is editable in the Orchard admin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions