Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-1875

The images and links of imported contents are not supported

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0
    • None
    • None
    • None

      The images and links of imported contents are not supported

          [CMS-1875] The images and links of imported contents are not supported

          does not works for me

          Raphaël Franchet added a comment - does not works for me

          Everything is configured and ready you can code in there org.ametys.web.editor.WebHTMLEditionHandler

          Raphaël Franchet added a comment - Everything is configured and ready you can code in there org.ametys.web.editor.WebHTMLEditionHandler

          Raphaël Franchet added a comment - - edited

          Adding a HTMLEditionHandlerExtensionPoint to transformers during the save process
          Use it as docbbokenhancement with a <handler>

          Raphaël Franchet added a comment - - edited Adding a HTMLEditionHandlerExtensionPoint to transformers during the save process Use it as docbbokenhancement with a <handler>

          sounds great, but the CMS knows nothing about sites and pages, so I can't do that in CMS
          Any idea ?

          Cédric Damioli added a comment - sounds great, but the CMS knows nothing about sites and pages, so I can't do that in CMS Any idea ?

          if the link starts with http... it might comes from a copy paste operation and should be converted to a normal link

          <a class="external" href="http://externalsite" ametys_href="http://externalsite" target="">
          

          Raphaël Franchet added a comment - if the link starts with http... it might comes from a copy paste operation and should be converted to a normal link <a class= "external" href= "http://externalsite" ametys_href= "http://externalsite" target="">

          The link has the following pattern /CONTEXTPATH/SITENAME/LANG/PAGEPATH.html

          <a class="simple" href="/test/www/en/student-life/clubs-and-organizations.html" target="">Lire la suite</a>
          

          we should/could replace it by the real page id (adding the right other attributes)

          <a class="simple" href="javascript: org.ametys.uitool.ToolsManager.getInstance().openTool ('uitool-page', {id: 'page://d78d0e48-88fd-4251-9355-7a2e7b1755ce'});" ametys_type="page" ametys_href="page://d78d0e48-88fd-4251-9355-7a2e7b1755ce" target="">
          

          Raphaël Franchet added a comment - The link has the following pattern /CONTEXTPATH/SITENAME/LANG/PAGEPATH.html <a class= "simple" href= "/test/www/en/student-life/clubs-and-organizations.html" target=""> Lire la suite </a> we should/could replace it by the real page id (adding the right other attributes) <a class= "simple" href= "javascript: org.ametys.uitool.ToolsManager.getInstance().openTool ( 'uitool-page' , {id: 'page://d78d0e48-88fd-4251-9355-7a2e7b1755ce' });" ametys_type= "page" ametys_href= "page://d78d0e48-88fd-4251-9355-7a2e7b1755ce" target="">

          done for images
          don't know what to do for links

          Cédric Damioli added a comment - done for images don't know what to do for links

            raphael Raphaël Franchet
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: