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

Introduce $xwiki.getURL() for EntityReference

    XMLWordPrintable

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      Use case: display a breadcrumb representing the parents of a nested document.

      Currently, $xwiki.getURL() actually takes DocumentReference only. We should expend it to all EntityReference.

      The proper way to do it is to implement BinEntityResourceReferenceSerializer and WikiEntityResourceReferenceSerializer in the URL module. According to Vincent Massol, it requires too much work for 7.2.

      But we can introduce getURL(EntityReference) in the XWiki class easily in the meantime.

        Attachments

          Activity

            People

            Assignee:
            gdelhumeau Guillaume Delhumeau
            Reporter:
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 30 minutes
                3h 30m