-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure <eztemplate> elements contains <ezcontent> child (#113)
- Loading branch information
Showing
6 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/lib/FieldType/Converter/_fixtures/richtext/input/161-eztemplate-no-content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section | ||
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/" | ||
xmlns:image="http://ez.no/namespaces/ezpublish3/image/" | ||
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"> | ||
<section> | ||
<custom name="linebreak"/> | ||
</section> | ||
<!-- xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/"--> | ||
<paragraph xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/"> | ||
<custom name="mycustomtag" custom:class="templateClass" custom:align="left" custom:title="foobar"/> | ||
</paragraph> | ||
</section> |
1 change: 1 addition & 0 deletions
1
tests/lib/FieldType/Converter/_fixtures/richtext/log/161-eztemplate-no-content.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
warning:Custom tag 'linebreak' converted to block custom tag. It might have been inline custom tag in legacy DB where contentobject_attribute.id= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/lib/FieldType/Converter/_fixtures/richtext/output/161-eztemplate-no-content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"> | ||
<eztemplate name="linebreak"> | ||
<ezcontent/> | ||
</eztemplate> | ||
<eztemplate name="mycustomtag" ezxhtml:align="left" ezxhtml:class="templateClass"> | ||
<ezcontent/> | ||
<ezconfig> | ||
<ezvalue key="title">foobar</ezvalue> | ||
</ezconfig> | ||
</eztemplate> | ||
</section> | ||
|