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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5 M2
    • Fix Version/s: 2.5 RC1
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Tests:
      Unit, Integration
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: