Skip to content

CMS Page with <head> in layout update xml #4454

@zhiyicai

Description

@zhiyicai

Hello all,

I was able before to include custom css in my cms page using the Layout update xml field with this

<head>
    <css src="css/home.css"/>
</head>

But since the v2.0.4 I have the following message whenever I try to save my page
"Please correct the XML data and try again. Element 'head': This element is not expected. Expected is one of ( referenceContainer, container, update, move ). Line: 1"

How can I do no to include custom css files in my cms pages?

2016-05-10 22 20 35

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrontendFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions