In the livetable, we want to display the "location" of a document like this:
|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).