Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{velocity}}
- {{context document="$tdoc"transformationContext="transformations"}}
- #set($which="")
- #foreach($attachment in $tdoc.getAttachmentList())
- #set($afn=$attachment.getFilename())
- #if($afn.beginsWith("wikipage"))
- #set($which=$afn)
- #end
- #end
- #if(!$which.contains("."))
- #foreach($attachment in $tdoc.getAttachmentList())
- #set($afn=$attachment.getFilename())
- #if(!($afn.endsWith(".pdf")||$afn.endsWith(".doc")||$afn.endsWith(".docx")||$afn.endsWith("r")))
- #set($which=$afn)
- #end
- #end
- #end
- #if(!$which.contains("."))
- #foreach($attachment in $tdoc.getAttachmentList())
- #set($afn=$attachment.getFilename())
- #if($afn.endsWith(".jpeg")||$afn.endsWith(".jpg")||$afn.endsWith(".png"))
- #set($which=$afn)
- #end
- #end
- #end
- #if($which.contains("."))
- [[image:$which||width="100%"]]
- #end
- {{/context}}
- {{/velocity}}
- {{velocity}}
- #panelheader($services.localization.render("Table Of Contents"))
- {{toc start=1 depth=6 numbered=false scope=page reference="$tdoc"/}}
- #panelfooter()
- #set($pages=$tdoc.includedPages)
- #if($pages.size()>0||$showEmptyPanels)
- (%style="font-size:10px;font-family:Tahoma,Geneva,sans-serif"%)#panelheader($services.localization.render('xe.panels.includedDocs.count',[$pages.size()]))
- #foreach($page in $pages)
- *[[$page>>$page]]
- (%style="font-size:9px;font-family:Tahoma,Geneva,sans-serif"%)
- {{context document="$page" transformationContext="transformations"}}
- {{toc start=1 depth=6 numbered=false scope=page reference="$page"/}}
- {{/context}}
- #end
- #panelfooter()
- {{/context}}
- #end
- {{/velocity}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement