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

Introduce a "displayTitle" option to the hierarchy macro

    Details

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

      Description

      In the livetable, we want to display the "location" of a document like this:

      reference location
      wiki:space.doc.WebHome space / doc
      wiki:space1.space2.doc.WebHome space1 / space 2 / doc
      wiki:space.doc (terminal) space / doc

      Since this location will be used in different places, I propose to add a velocimacro in macros.vm

      Example of usage:

      Note: it can cause a problem for the filtering. If the user writes "/" in the search field, she will have problems.

      *Edit*: after more thinking, it's better to add a displayTitle option to the #hierarchy() macro instead of creating a new macro. This option will have displayTitle on by default (current behavior).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: