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

Make link reference syntax more generic and extensible

    Details

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

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: