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

Introduce a "displayTitle" option to the hierarchy macro

    XMLWordPrintable

Details

    • Unknown
    • N/A

    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

        1. example.png
          example.png
          7 kB
        2. hierarchy_plain_local.png
          hierarchy_plain_local.png
          7 kB
        3. hierarchy.png
          hierarchy.png
          9 kB
        4. hierarchy-plain.png
          hierarchy-plain.png
          7 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: