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

Make link reference syntax more generic and extensible

    XMLWordPrintable

Details

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

    Description

      The idea is:

      • Have the following canonical form:
        [[label>>referenceType:referenceData]]
      • Support the following referenceTypes for the existing types: "doc", "url", "mailto", "attach", "image"
      • Support implicit types for "doc" and "url", i.e. autodiscover the type when not specified using the following rule:
        • check if it's a URL by checking for a match on
          *://*
        • if not a URL then consider it's a reference to a document
      • Allow new reference types to be plugged as extensions

      Note that this should be implemented in XWiki Syntax 2.1 (and not in XWiki Syntax 2.0).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: