Livedata - linkType

Hello,

I’m trying to replace all my live table with livedata and I’m facing problems with columns which contains page links.
I don’t know what to fill after linkType.
I checked the documentation and there is “…”
Where can I found the doc for those “…” ?

// This is used only by the 'link' displayer (which receives the live data entry and the property descriptor).
          "linkType": "...",

Thanks for your help.

The link displayer used by the live data doesn’t have a linkType parameter. I updated the documentation. It has instead a propertyHref parameter. There a small usage example at https://extensions.xwiki.org/xwiki/bin/view/Extension/Live%20Data%20Macro/#HIn-lineData . The idea is that you have to indicate which other property holds the URL that should be used as the link target.

BTW, if you want to see how the link live table parameter is converted to propertyHref parameter from live data, check this xwiki-platform/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-livetable/src/main/java/org/xwiki/livedata/internal/livetable/LiveTableLiveDataConfigurationResolver.java at master · xwiki/xwiki-platform · GitHub .

Hope this helps,
Marius

1 Like