Skip to content

Instantly share code, notes, and snippets.

@vmassol
Created October 31, 2011 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmassol/1328288 to your computer and use it in GitHub Desktop.
Save vmassol/1328288 to your computer and use it in GitHub Desktop.
Old way without livetable to display external link status
{{velocity}}
#set ($states = $services.linkchecker.getLinkStates())
#foreach ($linkReference in $states.keySet())
* $linkReference (((
#set ($contentReferences = $states.get($linkReference))
|=Page|=State|=Last Checked time
#foreach ($contentReference in $contentReferences.keySet())
#if ($contentReference != $doc.getPrefixedFullName())
#set ($state = $contentReferences.get($contentReference))
|#if ($contentReference == "default")no source#else[[$contentReference]]#end|$state.getResponseCode()|$datetool.format($state.getLastCheckedTime())
#end
#end
)))
#end
{{/velocity}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment