Indeed this is simpler for you. Just know that if you wanted to find
elements other than links you could use what I pointed to and it would work
too. Internally $document.getLinks() will search the XDOM to find Link
blocks.
Thanks
-Vincent
On Wed, Nov 13, 2013 at 1:05 PM, Matthias Wegner <mic.mat.wegner(a)web.de>wrote;wrote:
Hi Vincent,
i found a simple script-solution:
{{velocity}}
**Parents**:
#set($hql = "where doc.space='Main' order by doc.date asc")
#set($results = $xwiki.searchDocuments($hql, 0, 0))
#foreach ($item in $results)
#set($document = $xwiki.getDocument($item))
##* $document.getFullName()
#foreach( $link in $document.getLinks() )
##** $link.getLink()
#if($link.getLink().equals($doc.getFullName()))
* [[$link.getFullName()]]
#end
#end
#end
{{/velocity}}
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Links-to-from-page-tp7587920p7587924.html
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs