Consortium
Activities
Projects
Forge
Events
Log-in
Register
Photo Album Sheet
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
#set($obj = $doc.getObject("XWiki.PhotoAlbumClass", 0)) #if($context.action=="inline") Before adding photos to your album, please choose a title and a decription for this album. Title: $doc.display("title", $obj) Description: $doc.display("description", $obj) #set($newtitle = $request.title) #if($newtitle) #set($newtitle = $newtitle.replace('"',"'")) <script type="text/javascript"> var title = "${newtitle}"; {pre} document.forms.edit["XWiki.PhotoAlbumClass_0_title"].value = title; {/pre} </script> #end #else <br /> 1 $doc.display("title", $obj) $doc.display("description", $obj) #set($diapo = $request.get("diapo")) #if(!$diapo) #set($diapo="all") #end #if($diapo=="all") #macro(photosAlbum2 $height) #set($current = 0) #set($height=150) #foreach ($attach in $doc.attachmentList) #set($current = $current + 1) <a href="$doc.getURL("view","diapo=$current")" > <img src="$doc.getAttachmentURL($attach.filename,"download")?height=${height}" height="${height}"/></a> #end #end #set($size = $!doc.display("height", "view",$obj)) #if($size == "") #set($size = 150) #end #photosAlbum2($size) #else #set($current = 0) #set($size = $!doc.display("height2", "view",$obj)) #foreach ($attach in $doc.attachmentList) #set($current = $current + 1) #set($scurrent = "$current") #if("$diapo" == "$current") #set($prev = ($current - 1)) #set($next = ($current + 1)) <a href="$doc.getAttachmentURL($attach.filename,"download")" > <img src="$doc.getAttachmentURL($attach.filename,"download")" #if($size!="") height="${size}" #end /></a> #end #end #if($prev==0) #set($prev = $doc.attachmentList.size()) #end #if($next==$doc.attachmentList.size()+1) #set($next = 1) #end #if(!$prev) #set($prev = 1) #set($next = 1) #end <br /> ~~[Previous Photo>${doc.name}?diapo=$prev] [Next Photo>${doc.name}?diapo=$next]~~ #end <br /> ~~ #if($xwiki.hasAccessLevel("edit")) <a href="$doc.getURL("attach")">Add Photos</a> <a href="$doc.getURL("inline")">Modify the Album</a> #end [All Photos>${doc.name}?diapo=all] [Diaporama>${doc.name}?diapo=1]~~ #end #set($showattachments = 0)