Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25116

Impossible to add line break in header element

    XMLWordPrintable

Details

    Description

      Although it is possible to create headers with multiple lines, using the XML Editor in backend siteaccess, creating content as such using the API is not possible.

      Steps to reproduce:
      • Create some content, using the admin siteaccess. In a XML Block field, select heading 2, type "multiple line", press shift+enter, "header"
      • Publish the content
      • Verify that the content both in backend as in front end shows a single h2 tag with 2 paragraphs within.
      • Attempt to create the same content using the API
        $contentCreateStruct->setField( "name", $name );
        $xmlText = <<< EOX
        <?xml version='1.0' encoding='utf-8'?>
        <section>
        <header level="1">Multiple line
        header</header>
        </section>
        EOX;
        $contentCreateStruct->setField( "description", $xmlText );
        (...)
        

      => Line break is stripped. Any attempts to include one fail, since header is setup only to be able to contain "custom, strong, emphasize, link, anchor"

      Attachments

        Activity

          People

            Unassigned Unassigned
            joaquim.cavalleri-obsolete@ez.no Joaquim Cavalleri (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h