In a nutshell, what I would like to do is add a custom _action to a Livetable. Instead of the standard ‘edit’, ‘delete’ I would like to add a ‘Select’ that will then provide a custom redirect by adding different page parameters. I have successfully added the _action but it takes me to an undefined page. I have found in the Livetable Results Macros code where the link is added but I am not sure on how to go about creating the new link. We are using XWiki Enterprise 7.4.4.
It appears that I am still not quite there. If I understand the flow correctly, on the page that I would like the livetable to appear, I have set the options adding to it the option ‘resultPage’ : ‘Setup.SetupSheets.SS_JSON’ . This is the page that would be called to replace the default livetable results page which is Xwiki.LivetableResults. Just to make sure I have everything correct, I copied all the code in the default results page Xwiki.LivetableResults and pasted it into my new, redirected results page Setup.SetupSheets.SS_JSON. I do not see any results and no error is thrown.
I’m following up on this existing thread to ask the following complementary question: once the custom action has been correctfully added, what’s the way to get it translated? I’m struggling to find the entry point…
ok, found it by looking in greater details to the livetable macro definition in “macros.vm”. The translation key to use is “platform.livetable._actions.[myaction]”.