Show document parent in livetable

Is it possible to show a document’s parent in a livetable? There is the option to show the space, but ideally I would just like to see the parent.

If not, is there a way to do a string replace function on the space - e.g. convert Foo.Bar.WebHome to Foo.Bar?

Thanks

Maybe you could use the “location” instead (as it’s used on the Page Index page)?

Example:

#set($colprops = {
  'doc.title' : { 'type' : 'text' , 'size' : 30, 'link' : 'view', 'filterable': false, 'sortable': false },
  'doc.location' : { 'type': 'text', 'filterable': true, 'html': true},
  'doc.fullName' : { 'type' : 'text' , 'size' : 30, 'link' : 'view' },
  'doc.name' : { 'type' : 'text' , 'size' : 30, 'link' : 'view' },
  'doc.space' : { 'type' : 'text', 'link' : 'space' },
  'doc.date' : { 'type' : 'date' },
  'doc.author' : { 'type' : 'text', 'link' : 'author' }
})

I don’t know if ‘doc.parent’ exists ATM.

Thanks for the reply

doc.location outputs a bunch of raw HTML which looks like it should render a tree (<ol class="breadcrumb breadcrumb-expandable). So not quite what I’m after :slight_smile:

As I said, check the Page Index livetable to see how it looks like. Seems pretty close to me (since you can see and click on parents, they are displayed as a breadcrumb and can be filtered too).