Backlinks Snippet
Shows all the wiki links leading to the page in which this snippet is located. Backlinks need to be activated using xwiki.backlinks=1 in xwiki.cfg for this script to work (they are activated by default).Code
#set ($links = $doc.getBacklinks())
#if ($links.size > 0)
#foreach($docname in $links)
#set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
* <a href="$rdoc.getURL("view")">$rdoc.displayTitle</a>
#end
#else
No back links for this page!
#endResult
No back links for this page!
Version 3.1 last modified by VincentMassol on 09/12/2007 at 13:35
Document data
Attachments:
No attachments for this document
Comments: 0