Changes for page Macros

Last modified by Ecaterina Moraru on 2013/11/13 15:45

From version 2.1
edited by Jean-Vincent Drean
on 2008/11/20 12:46
Change comment: There is no comment for this version
To version 10.1
edited by Silvia Rusu
on 2010/03/15 11:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.jvdrean
1 +XWiki.SilviaRusu
Content
... ... @@ -1,7 +1,5 @@
1 -1 XWiki Enterprise Design Mockups
1 +## 1 XWiki Enterprise Design Mockups
2 2  
3 -#toc("" "" "")
4 -
5 5  #macro(licenseViolationWarning)
6 6   #set($mockups=$xwiki.mockups)
7 7   #if($xwiki.hasAccessLevel('admin'))
... ... @@ -37,10 +37,13 @@
37 37   #set($png=$doc.getAttachment("${name}.png"))
38 38   #set($xml=$doc.getAttachment("${name}.bmml"))
39 39   #if($png and $xml)
40 - 1.1 $name
38 + <h1>$name</h1>
41 41  
42 42   <div align="center">
43 - {image:${name}.png|halign=center|alt=$name}
41 + ##
42 + ## THANKS NOT TO EDIT THIS MACRO
43 + ##
44 + <a href="$doc.getAttachmentURL("${name}.png")">{image:${name}.png|halign=center|alt=$name}</a>
44 44   #if($mockups.canLoadEditor() and $hasEdit)<a href="$xwiki.getURL($doc.fullName, "loadeditor", "mockup=$name")">edit this mockup</a>#end
45 45   </div>
46 46   #else