Created
October 31, 2011 18:13
-
-
Save vmassol/1328287 to your computer and use it in GitHub Desktop.
Livetable for External Links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{groovy}} | |
import org.xwiki.rendering.transformation.linkchecker.* | |
import com.xpn.xwiki.web.* | |
if (request.get("action") == "clear") { | |
Utils.getComponent(LinkStateManager.class).getLinkStates().clear() | |
} | |
{{/groovy}} | |
{{velocity}} | |
#set($columns = [ "link", "page", "code", "date"]) | |
#set($columnsProperties = { | |
"link" : { "type" : "text", "sortable":false }, | |
"page" : { "type" : "text", "sortable":false }, | |
"code" : { "type" : "text", "sortable":false }, | |
"date" : { "type" : "text", "sortable":false } | |
}) | |
#set($options = { | |
"resultPage":"Admin.ExternalLinkStatusJSON" | |
}) | |
$xwiki.jsx.use("Admin.ExternalLinkStatus2") | |
#livetable("links" $columns $columnsProperties $options) | |
{{/velocity}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment