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

OE strips nested custom, non inline, empty, tags

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • None
    • None
    • eZ OE 5.1 (and above)

    Description

      Presently, it is not possible to nest empty, non inline, custom tags in an XML Block field. Although this behavior seem to be intended, it doesn't seem to be coherent with what commonly happens in XHTML.

      Steps to reproduce
      • Configure the following custom tags (in content.ini.append.php)
        AvailableCustomTags[]=listsubitems
        AvailableCustomTags[]=tabbox
        
        IsInline[listsubitems]=false
        IsInline[tabbox]=false
        
        [listsubitems]
        CustomAttributes[]=main_node
        CustomAttributes[]=stylize
        CustomAttributes[]=limit
        CustomAttributes[]=children_view
        CustomAttributes[]=page
        
      • Create an object, disable the Editor and enter the following conten
        <custom name="tabbox">
        <table class="default" width="100%" border="0" custom:summary="ncsare tabbox">
        <tr>
        <th width="0" custom:scope="col" custom:valign="top">Press Releases</th>
        <th width="0" custom:scope="col" custom:valign="top">Upcoming Events</th>
        </tr>
        <tr>
        <td>
        <custom name="listsubitems" custom:page="eznode://5821" custom:children_view="listitem" custom:limit="5" custom:stylize="nodate" custom:main_node="no"></custom>
        </td>
        <td>
        <custom name="listsubitems" custom:page="eznode://414" custom:children_view="listitem" custom:limit="5" custom:stylize="modular"></custom>
        </td>
        </tr>
        </table>
        </custom>
        
      • Enable the editor
      • If you disable the Editor again, you'll verify that the listsubitems tags have been removed

      Attachments

        Activity

          People

            e8318ba6-e4ae-477c-9116-36c073bd11a3@accounts.ibexa.co Patrick Allaert
            joc@ez.no joc@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: