Photo Albums

PhotoTitleDescriptionComments
#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.PhotoAlbumClass' and obj.name <> 'XWiki.PhotoAlbumClassTemplate' order by doc.creationDate desc")
#foreach ($item in $xwiki.searchDocuments($sql))
#set($bentrydoc = $xwiki.getDocument($item))
#set($comments = $bentrydoc.getComments())
#if($comments.size()>0)
#set($i = 0)
#set($cobj = $comments.get($i))
#set($comment = $bentrydoc.display("comment", "view", $cobj))
#else
#set($comment = "")
#end
#set($comment = $comment.replaceAll("n","
"))
#set($bentryobj = $bentrydoc.getObject("XWiki.PhotoAlbumClass",0))
#if($bentrydoc.attachmentList.size()>0)
#set($attach = $bentrydoc.attachmentList.get(0))
$!{bentrydoc.display($!{bentrydoc.display("title","view",$bentryobj)}?$!bentrydoc.display("description", "view", $bentryobj)$!comment
#else
No photo?$!{bentrydoc.display("title","view",$bentryobj)}?$!bentrydoc.display("description","view",$bentryobj)$!comment
#end
#end

Add an Album

Wiki name of the album:
Tags:
Created by Admin on 2005/01/30 22:47