Here's another (simpler?) way of doing this:

|=Menu
#foreach ($page in $xwiki.getSpaceDocsName($doc.space))
|$page 
#end

Thanks
-Vincent

On Jul 25, 2011, at 6:23 AM, Lockie wrote:

> This is a snippet that I found very useful for navigational purposes:
> 
> Title: Space menu
> Level: Intermediate
> Target: Developer/User
> Since: N/A
> Description:
> Lists pages in the current space:
> 
> {{velocity}}
> |=Menu
> #set($sql = "where doc.parent = '${doc.web}.${doc.name}'")
> #foreach($item in $xwiki.searchDocuments($sql))
> |[[${item}]]
> #end
> {{/velocity}}
> 
> 
> Regards
> Lockie
> 
> -----
> Lockie
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to