Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5554

Generalize Image support and add relative paths support for XWiki Syntax 2.1

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.5 RC1
    • 2.5 M2
    • {Unused} Rendering 2.0
    • None
    • Unit, Integration
    • Unknown

    Description

      See http://markmail.org/thread/q44fc6mralyoyks5 for full details. See also XWIKI-3611

      ...
      For images
      =========
      
      * Similar to links add the ability to add prefixes in a generic way. We have the following needs: 
      * image where the source is at a URL 
      * image where the source is at a relative path 
      * image where the source is in a document
      
      I propose the following syntax:
      
      image:prefix:value
      
      where prefix = one of http:, path:, attach:
      
      Note that we already support image:http://... so the proposal here is simply to make it generic.
      
      In addition I propose that when there's no prefix or if the prefix is unknown then to consider that the image is to be found in a document (equivalent to attach:).
      
      Same pros as above. 
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: