Скрыть последних авторов
Alexandr Fokin 1.2 1 |(% style="width:406px" %) |(% style="width:166px" %) |(% style="width:921px" %)
2 |(% style="width:406px" %) |(% style="width:166px" %) |(% style="width:921px" %)
3 |(% style="width:406px" %)Отображение обратных ссылок (back links) на странице.|(% style="width:166px" %)Velocity script|(% style="width:921px" %)(((
4 How do I find the backlinks to a given page?
5 [[https:~~/~~/snippets.xwiki.org/xwiki/bin/view/Extension/List Page Backlinks>>https://snippets.xwiki.org/xwiki/bin/view/Extension/List Page Backlinks]]
6
7
8 {{code language="Velocity"}}#set ($links = $doc.getBacklinks())
9 #if ($links.size() > 0)
10 #foreach ($docname in $links)
11 #set ($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
12 * [[$escapetool.xml($rdoc.fullName)]]
13 #end
14 #else
15 No back links for this page!
16 #end{{/code}}
17 )))
18
19