Changes for page NavigationList

Last modified by Ludovic Dubost on 2012/10/09 15:57

From version 5.1
edited by Ludovic Dubost
on 2012/08/10 18:13
Change comment: There is no comment for this version
To version 6.1
edited by Ludovic Dubost
on 2012/10/09 15:57
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -5,14 +5,14 @@
5 5   #set($type = "all")
6 6  #end
7 7  #if($type=="all")
8 - #set($hql = ", BaseObject as obj, StringProperty as prop where doc.fullName=obj.name and obj.className='ScriptingReferenceDocumentation.ScriptingReferenceDocumentationClass' and obj.id=prop.id.id and prop.id.name='velocityVariable' and prop.value<>'' order by prop.value asc")
8 + #set($hql = ", BaseObject as obj, StringProperty as prop where doc.fullName=obj.name and obj.className='SRD.SRDClass' and obj.id=prop.id.id and prop.id.name='velocityVariable' and prop.value<>'' order by prop.value asc")
9 9  #else
10 - #set($hql = ", BaseObject as obj, StringProperty as prop, StringProperty as typeprop where doc.fullName=obj.name and obj.className='ScriptingReferenceDocumentation.ScriptingReferenceDocumentationClass' and obj.id=prop.id.id and prop.id.name='velocityVariable' and prop.value<>'' and obj.id=typeprop.id.id and typeprop.id.name='typeList' and typeprop.value='${type}' order by prop.value asc")
10 + #set($hql = ", BaseObject as obj, StringProperty as prop, StringProperty as typeprop where doc.fullName=obj.name and obj.className='SRD.SRDClass' and obj.id=prop.id.id and prop.id.name='velocityVariable' and prop.value<>'' and obj.id=typeprop.id.id and typeprop.id.name='typeList' and typeprop.value='${type}' order by prop.value asc")
11 11  #end
12 12  <ul>
13 13  #foreach($item in $xwiki.searchDocuments($hql))
14 14   #set($itemdoc = $xwiki.getDocument($item))
15 - #set($ok = $itemdoc.use("ScriptingReferenceDocumentation.ScriptingReferenceDocumentationClass"))
15 + #set($ok = $itemdoc.use("SRD.SRDClass"))
16 16   #set($value = $itemdoc.getValue("velocityVariable"))
17 17   #if(!$request.text||$request.text==""||$value.toLowerCase().indexOf($request.text.toLowerCase())!=-1)
18 18  <li><a href="javascript:void(0)" onclick="showReferenceDocumentation('$item'); return false;">$value#* ($itemdoc.getValue("className"))*#</a></li>