[xwiki-users] Hide class template on livetable
Hello! I've tried (without success) some scripts to hide the class template when using livetable. It is said<http://xwiki.475771.n2.nabble.com/Livetable-td4744002.html>that on 2.1+ XWiki versions this doesn't happen anymore; template document is filtered by JSON sources. But I'm using 2.2.1 XWiki version, and I still get the template document appering in the results. I didn't understand the following (which i've tried to use to filter the template): #if ("$!className" != "") #set(${...Sql = ", [snip] and doc.fullName <> '${className}*Template*' [snip]") from the link <http://xwiki.475771.n2.nabble.com/Livetable-td4744002.html>. This is the code which would filter the template, right? Can anyone help me? -- Atenciosamente, Erica Usui.
Hi Erica, On Thu, Sep 9, 2010 at 18:13, Erica Usui <[email protected]> wrote:
Hello!
I've tried (without success) some scripts to hide the class template when using livetable. It is said<http://xwiki.475771.n2.nabble.com/Livetable-td4744002.html>that on 2.1+ XWiki versions this doesn't happen anymore; template document is filtered by JSON sources. But I'm using 2.2.1 XWiki version, and I still get the template document appering in the results.
I didn't understand the following (which i've tried to use to filter the template): #if ("$!className" != "") #set(${...Sql = ", [snip] and doc.fullName <> '${className}*Template*' [snip]")
from the link <http://xwiki.475771.n2.nabble.com/Livetable-td4744002.html
. This is the code which would filter the template, right?
Can anyone help me?
Yes. Simply rename the template document (currently something like '{spaceNameOfYourClass}.{documentNameOfYourClass}Template') to '{spaceNameOfYourClass}.{documentNameOfYourClass}ClassTemplate' Then it will automagically be hidden from the Livetable results. Guillaume --
Atenciosamente, Erica Usui. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thanks, Guillaume! Erica. 2010/9/10 Guillaume Lerouge <[email protected]>
Hi Erica,
On Thu, Sep 9, 2010 at 18:13, Erica Usui <[email protected]> wrote:
Hello!
I've tried (without success) some scripts to hide the class template when using livetable. It is said<http://xwiki.475771.n2.nabble.com/Livetable-td4744002.html>that on 2.1+ XWiki versions this doesn't happen anymore; template document is filtered by JSON sources. But I'm using 2.2.1 XWiki version, and I still get the template document appering in the results.
I didn't understand the following (which i've tried to use to filter the template): #if ("$!className" != "") #set(${...Sql = ", [snip] and doc.fullName <> '${className}*Template*' [snip]")
from the link < http://xwiki.475771.n2.nabble.com/Livetable-td4744002.html
. This is the code which would filter the template, right?
Can anyone help me?
Yes. Simply rename the template document (currently something like '{spaceNameOfYourClass}.{documentNameOfYourClass}Template') to '{spaceNameOfYourClass}.{documentNameOfYourClass}ClassTemplate'
Then it will automagically be hidden from the Livetable results.
Guillaume
--
Atenciosamente, Erica Usui. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Atenciosamente, Erica Usui.
participants (2)
-
Erica Usui -
Guillaume Lerouge