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

ezxmltext -> ricktext conversion : links with object_remote_id="..." not supported

    Details

      Description

      In legacy, you may have links point to objects by remote_id like this:

      <?xml version="1.0" encoding="utf-8"?>
      <section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
          <paragraph>foobartext
              <link object_remote_id="my_remote_id">link</link>
          </paragraph>
      </section>
       
      This is not supported by the ezxmltext -> richtext conversion script
      

        Activity

        Hide
        Vidar Langseid added a comment - - edited

        In platform, richtext support receiving links with format "ezremote://<contentID>", but those links are looked up and rewritten on store ( https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/RichText/RichTextStorage.php#L85-L114 )

        So conversion tool cannot simply rewrite the urls using "ezremote://..." format as the links will remain invalid until object is republished.
        So conversion tool have to lookup the content object by remote id itself.

        Show
        Vidar Langseid added a comment - - edited In platform, richtext support receiving links with format "ezremote://<contentID>", but those links are looked up and rewritten on store ( https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/RichText/RichTextStorage.php#L85-L114 ) So conversion tool cannot simply rewrite the urls using "ezremote://..." format as the links will remain invalid until object is republished. So conversion tool have to lookup the content object by remote id itself.
        Show
        Vidar Langseid added a comment - pr : https://github.com/ezsystems/ezplatform-xmltext-fieldtype/pull/51
        Show
        Vidar Langseid added a comment - Merged to master in https://github.com/ezsystems/ezplatform-xmltext-fieldtype/commit/c9252166ce385a14a80714a6914474496b5190a0

          People

          • Assignee:
            Unassigned
            Reporter:
            Vidar Langseid
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: