Details
-
Bug
-
Resolution: Fixed
-
Minor
-
1.8
-
macros.vm informationinline.vm
-
Easy
-
N/A
-
N/A
-
Description
Site odo.lv has several pages (documents) which are translated in 3 languages.
Document information tab shows several entries for the same document for each language for childrens and backlinks.
Here is proposed workaround for /webapps/xwiki/templates/macros.vm (not optimized for speed):
... #macro(displayDocumentList $docNames $displaySpaces $blacklistedSpaces) #set($prevspace=true) #set($prevdoc=true) #set($documentList = $util.getArrayList()) #foreach($docName in $docNames) #if($xwiki.hasAccessLevel("view", $context.user, $docName)) #set($document = $xwiki.getDocument($docName).getTranslatedDocument()) #if(!$blacklistedSpaces.contains($document.getSpace())) #if($prevspace!=$document.getSpace()) #set($discard = $documentList.add($document)) #else #if($prevdoc.name!=$document.name) #set($discard = $documentList.add($document)) #end #end #end #set($prevspace=$document.getSpace()) #set($prevdoc=$document) #end #end #if($documentList.size() > 0) ...
Probably to speed it up informationinline.vm macro should be fixed.
Attachments
Issue Links
- is related to
-
XWIKI-6873 Backlinks Panel doesn't work nice for WebHome
- Closed
-
XWIKI-5791 Duplicated suggested names in auto-suggest
- Closed
- relates to
-
XWIKI-1326 Rename action lists backlinks from different language versions multiple times
- Closed
-
XWIKI-6704 AS reports multiple edit actions when page with translations is copied
- Closed