r1282 - xwiki/trunk/src/main/web/templates
Jeremi Joslin
jeremi at users.forge.objectweb.org
Tue Sep 5 13:24:32 CEST 2006
Author: jeremi
Date: 2006-09-05 13:24:31 +0200 (Tue, 05 Sep 2006)
New Revision: 1282
Modified:
xwiki/trunk/src/main/web/templates/macros.vm
Log:
* Add xwikiobjectfield to display a field of an object
Modified: xwiki/trunk/src/main/web/templates/macros.vm
===================================================================
--- xwiki/trunk/src/main/web/templates/macros.vm 2006-09-05 11:22:51 UTC (rev 1281)
+++ xwiki/trunk/src/main/web/templates/macros.vm 2006-09-05 11:24:31 UTC (rev 1282)
@@ -402,3 +402,15 @@
#end
#end
+
+#macro(xwikiobjectfield $fielddoc $fieldname $fieldtext $action)
+<div class="xmblabel">$fieldtext</div>
+<div class="xmbfield">
+#if($fieldname!="")
+$fielddoc.display($fieldname, $action)
+#end
+#if($html!="")
+$html
+#end
+</div>
+#end
\ No newline at end of file
More information about the Xwiki-notifications
mailing list