Commit c39fd807 authored by Ludovic Dubost's avatar Ludovic Dubost

Finalizing block squares macro to have vertical and horizontal squares

parent eff2c9cc
......@@ -40,6 +40,21 @@
<syntaxId>xwiki/2.1</syntaxId>
<hidden>false</hidden>
<content>
This macro display 4 sqaures with text and images in you page with one optional button.
This is particularly useful to display client references.
The following parameters are available:
|= Parameter |= Description |= Default Value
| name | Name of the macro block. This needs to be unique in each page | //empty//
| title | Title displayed | //empty//
| desc | Description displayed under the title | //empty//
| color | Background color of the block (unused if a background image is present) | //empty//
| image | Background image of the block | //empty//
| buttonText | Allows to add a button with the corresponding text | //empty//
| buttonUrl | Link or Page for the button | //empty//
| Macro content field | The content will contain the different references with a logo, background image, titel and text| //empty//
{{blocksquares name="blocksquares" shadow="true" title="This is a sample block" desc="Welcome to the blocksquares macro" color=""}}
xwiki_logo.png|XWiki Logo||Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum.|Main.WebHome|See the following page|xwiki.png
xwiki_logo.png|XWiki Logo|Item 1 Title|Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. |Main.WebHome|Learn more|xwiki.png
......@@ -183,7 +198,11 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
font-family: Roboto;
}
.references-clients {
.refstitle {
padding-bottom: 4rem;
}
.container {
background-repeat: no-repeat;
background-size: cover;
background-position: center;
......@@ -218,28 +237,20 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
}
}
.row.row-eq-height {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
.col-xs-12.col-sm-12.col-md-6 {
@media (max-width: 375px) {
padding-left: 0;
padding-right: 0;
}
}
}
.btn-blue-o {
margin-top: 3.5rem;
width: 25rem;
margin-left: auto;
margin-right: auto;
background-color: @brand-primary;
box-shadow: 8px 10px 10px 0px rgba(69, 165, 214, 0.25);
transition: linear 0.3s;
&amp;:hover {
box-shadow: 2px 4px 8px 0px rgba(69, 165, 214, 0.6);
}
}
}
.bk-reference {
box-shadow: 0px 8px 16px 0px rgba(0, 135, 203, 0.15);
border-radius: 1rem;
......@@ -269,8 +280,6 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
.bk-reference-land {
margin-bottom: 3rem;
padding-left: 0;
padding-right: 0;
@media (max-width: 767px) {
padding-left: 0;
padding-right: 0;
......@@ -419,6 +428,29 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
}
}
}
.btn-blue-o:hover {
box-shadow: 2px 4px 8px 0px rgba(69, 165, 214, 0.6);
}
.btn-blue-o {
margin-bottom: 3.5rem;
width: 25rem;
margin-left: auto;
margin-right: auto;
background-color: #0087cb;
box-shadow: 8px 10px 10px 0px rgba(69, 165, 214, 0.25);
transition: linear 0.3s;
background-image: none;
border: none;
border-radius: 0;
border-bottom-right-radius: 7px;
display: block;
font-size: 1.6rem;
padding-top: 1.5rem;
padding-bottom: 1.5rem;
line-height: 1.9rem;
}
}
</code>
</property>
......@@ -565,6 +597,11 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
#set($color = $xcontext.macro.params.color)
#set($height = $xcontext.macro.params.height)
#set($shadow = $xcontext.macro.params.shadow)
#set($buttonText = $xcontext.macro.params.buttonText)
#set($buttonUrl = $xcontext.macro.params.buttonUrl)
#if(!$buttonUrl.startsWith("http"))
#set($buttonUrl = $xwiki.getDocument($buttonUrl).getURL())
#end
#set($content = $xcontext.macro.content)
#set($style="")
#if($image&amp;&amp;$image!="")
......@@ -577,21 +614,7 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
#if($height&amp;&amp;$height!="")
#set($style="${style} height: ${height};")
#end
&lt;div class="${blockName} blocksquares row" style="${style}"&gt;
&lt;div class="col-xs-12"&gt;
&lt;div class="container"&gt;
&lt;div class="row"&gt;
&lt;div class="col-xs-12"&gt;
#if($blockTitle &amp;&amp; $blockTitle!="")
&lt;h2 class="text-center sect-header"&gt;${blockTitle}&lt;/h1&gt;
#end
#if($blockDesc &amp;&amp; $blockDesc!="")
&lt;p class="text-center"&gt;${blockDesc}&lt;/p&gt;
#end
&lt;/div&gt;
&lt;/div&gt;
#set($odd = false)
#foreach($item in $content.split("\r\n"))
#macro(displaySquare $item $classes $medialeft)
#set($itemData = $item.split("[|]"))
#set($itemLogo = $listtool.get($itemData, 0))
#set($itemLogoUrl = $doc.getAttachmentURL($itemLogo))
......@@ -602,7 +625,8 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
#set($itemLinkText = $listtool.get($itemData, 5))
#set($image = $listtool.get($itemData, 6))
#set($imageUrl = $doc.getAttachmentURL($image))
&lt;div class="col-xs-12 col-sm-12 bk-reference-land"&gt;
#if($medialeft)
&lt;div class="${classes} bk-reference-land"&gt;
&lt;div class="reference-image bk-reference reference-image-land" style="background-image: url('${imageUrl}');"&gt;
&lt;div class="media"&gt;
&lt;div class="media-left media-middle"&gt;
......@@ -628,18 +652,92 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
#else
&lt;div class="${classes}"&gt;
&lt;div class="reference-image bk-reference" style="background-image: url('${imageUrl}');"&gt;
&lt;div class="background-img-ref"&gt;
&lt;img src="${escapetool.xml($itemLogoUrl)}" alt="${escapetool.xml($itemLogoAlt)}" class="logo-ref-land center-block media-object"&gt;
#if($itemTitle!="")
&lt;h3&gt;${itemTitle}&lt;/h3&gt;
#end
&lt;p class="text-ref-land"&gt;$itemContent&lt;/p&gt;
#if($itemLinkText=="")
#set($itemLinkText = "Learn more")
#end
#if($itemPage &amp;&amp; $itemPage!="")
#if($itemPage.startsWith("http"))
#set($itemUrl = $itemPage)
#else
#set($itemUrl = $xwiki.getURL($itemPage))
#end
&lt;a href="${escapetool.xml($itemUrl)}" class="link-more"&gt;${itemLinkText} &lt;span class="fa fa-arrow-right"&gt;&lt;/span&gt; &lt;/a&gt;
#end
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
#end
#end
&lt;div class="${blockName} blocksquares row" style="${style}"&gt;
&lt;div class="col-xs-12"&gt;
&lt;div class="container"&gt;
&lt;div class="row refstitle"&gt;
&lt;div class="col-xs-12"&gt;
#if($blockTitle &amp;&amp; $blockTitle!="")
&lt;h2 class="text-center sect-header"&gt;${blockTitle}&lt;/h1&gt;
#end
#if($blockDesc &amp;&amp; $blockDesc!="")
&lt;p class="text-center"&gt;${blockDesc}&lt;/p&gt;
#end
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="row row-eq-height refscontent"&gt;
#set($odd = false)
#foreach($item in $content.split("\r\n"))
#if($velocityCount==1)
#displaySquare($item "col-xs-12 col-sm-3 hidden-xs hidden-sm" false)
#end
#end
&lt;div class="col-xs-12 col-sm-12 col-md-6"&gt;
&lt;div class="row"&gt;
#foreach($item in $content.split("\r\n"))
#if($velocityCount&lt;=2)
#displaySquare($item "col-xs-12 col-sm-12 bk-reference-land hidden-md hidden-lg" true)
#else
#displaySquare($item "col-xs-12 col-sm-12 bk-reference-land" true)
#end
#end
&lt;/div&gt;
&lt;/div&gt;
#foreach($item in $content.split("\r\n"))
#if($velocityCount==2)
#displaySquare($item "col-xs-12 col-sm-3 hidden-xs hidden-sm" false)
#end
#end
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
#if($buttonUrl)
&lt;div class="row refsbutton"&gt;
&lt;div class="col-xs-12 text-center"&gt;
&lt;a href="${buttonUrl}" class="btn btn-primary btn-blue-o"&gt;${buttonText}&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
#end
&lt;/div&gt;
{{/html}}
{{/velocity}}</code>
</property>
<property>
<contentDescription/>
<contentDescription>This contains the logo, title, description and background image of each block.
Sample content is the following:
xwiki_logo.png|XWiki Logo||Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum.|Main.WebHome|See the following page|xwiki.png
xwiki_logo.png|XWiki Logo|Item 1 Title|Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. |Main.WebHome|Learn more|xwiki.png
xwiki_logo.png|XWiki Logo|Item 1 Title|Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. Lorem ipso sum. |||xwiki.png
xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki.png</contentDescription>
</property>
<property>
<contentType>Optional</contentType>
<contentType>Mandatory</contentType>
</property>
<property>
<defaultCategory/>
......@@ -660,4 +758,466 @@ xwiki_logo.png|XWiki Logo|Item 1 Title|Item 1 Desc|Main.WebHome|Learn more|xwiki
<visibility>Current Wiki</visibility>
</property>
</object>
<object>
<name>PublicWebSite.Code.BlockSquaresMacro</name>
<number>0</number>
<className>XWiki.WikiMacroParameterClass</className>
<guid>67182995-b335-44cb-a6cc-3036fbf4047a</guid>
<class>
<name>XWiki.WikiMacroParameterClass</name>
<customClass/>
<customMapping/>
<defaultViewSheet/>
<defaultEditSheet/>
<defaultWeb/>
<nameField/>
<validationScript/>
<defaultValue>
<disabled>0</disabled>
<name>defaultValue</name>
<number>4</number>
<prettyName>Parameter default value</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultValue>
<description>
<disabled>0</disabled>
<name>description</name>
<number>2</number>
<prettyName>Parameter description</prettyName>
<rows>5</rows>
<size>40</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</description>
<mandatory>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>mandatory</name>
<number>3</number>
<prettyName>Parameter mandatory</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</mandatory>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Parameter name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
</class>
<property>
<defaultValue/>
</property>
<property>
<description>Name of the block (must be unique in the page)</description>
</property>
<property>
<mandatory>1</mandatory>
</property>
<property>
<name>name</name>
</property>
</object>
<object>
<name>PublicWebSite.Code.BlockSquaresMacro</name>
<number>1</number>
<className>XWiki.WikiMacroParameterClass</className>
<guid>1ab341c0-a700-4df7-bb22-7f482b3bdafb</guid>
<class>
<name>XWiki.WikiMacroParameterClass</name>
<customClass/>
<customMapping/>
<defaultViewSheet/>
<defaultEditSheet/>
<defaultWeb/>
<nameField/>
<validationScript/>
<defaultValue>
<disabled>0</disabled>
<name>defaultValue</name>
<number>4</number>
<prettyName>Parameter default value</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultValue>
<description>
<disabled>0</disabled>
<name>description</name>
<number>2</number>
<prettyName>Parameter description</prettyName>
<rows>5</rows>
<size>40</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</description>
<mandatory>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>mandatory</name>
<number>3</number>
<prettyName>Parameter mandatory</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</mandatory>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Parameter name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
</class>
<property>
<defaultValue/>
</property>
<property>
<description>Title of the block</description>
</property>
<property>
<mandatory>0</mandatory>
</property>
<property>
<name>title</name>
</property>
</object>
<object>
<name>PublicWebSite.Code.BlockSquaresMacro</name>
<number>2</number>
<className>XWiki.WikiMacroParameterClass</className>
<guid>b0851e9d-457d-4a75-82f2-67e89de0541f</guid>
<class>
<name>XWiki.WikiMacroParameterClass</name>
<customClass/>
<customMapping/>
<defaultViewSheet/>
<defaultEditSheet/>
<defaultWeb/>
<nameField/>
<validationScript/>
<defaultValue>
<disabled>0</disabled>
<name>defaultValue</name>
<number>4</number>
<prettyName>Parameter default value</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultValue>
<description>
<disabled>0</disabled>
<name>description</name>
<number>2</number>
<prettyName>Parameter description</prettyName>
<rows>5</rows>
<size>40</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</description>
<mandatory>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>mandatory</name>
<number>3</number>
<prettyName>Parameter mandatory</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</mandatory>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Parameter name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
</class>
<property>
<defaultValue/>
</property>
<property>
<description>Description of the block</description>
</property>
<property>
<mandatory>0</mandatory>
</property>
<property>
<name>desc</name>
</property>
</object>
<object>
<name>PublicWebSite.Code.BlockSquaresMacro</name>
<number>3</number>
<className>XWiki.WikiMacroParameterClass</className>
<guid>89b102d1-9194-43f0-a12f-208512827d17</guid>
<class>
<name>XWiki.WikiMacroParameterClass</name>
<customClass/>
<customMapping/>
<defaultViewSheet/>
<defaultEditSheet/>
<defaultWeb/>
<nameField/>
<validationScript/>
<defaultValue>
<disabled>0</disabled>
<name>defaultValue</name>
<number>4</number>
<prettyName>Parameter default value</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultValue>
<description>
<disabled>0</disabled>
<name>description</name>
<number>2</number>
<prettyName>Parameter description</prettyName>
<rows>5</rows>
<size>40</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</description>
<mandatory>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>mandatory</name>
<number>3</number>
<prettyName>Parameter mandatory</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</mandatory>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Parameter name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
</class>
<property>
<defaultValue/>
</property>
<property>
<description>Background color of the block</description>
</property>
<property>
<mandatory>0</mandatory>
</property>
<property>
<name>color</name>
</property>
</object>
<object>
<name>PublicWebSite.Code.BlockSquaresMacro</name>
<number>4</number>
<className>XWiki.WikiMacroParameterClass</className>
<guid>d2fc4aa5-7375-405d-9045-81932c9dec5b</guid>
<class>
<name>XWiki.WikiMacroParameterClass</name>
<customClass/>
<customMapping/>
<defaultViewSheet/>
<defaultEditSheet/>
<defaultWeb/>
<nameField/>
<validationScript/>
<defaultValue>
<disabled>0</disabled>
<name>defaultValue</name>
<number>4</number>
<prettyName>Parameter default value</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultValue>
<description>
<disabled>0</disabled>
<name>description</name>
<number>2</number>
<prettyName>Parameter description</prettyName>
<rows>5</rows>
<size>40</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</description>
<mandatory>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>mandatory</name>
<number>3</number>
<prettyName>Parameter mandatory</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</mandatory>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Parameter name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
</class>
<property>
<defaultValue/>
</property>
<property>
<description>Background image of the block</description>
</property>
<property>
<mandatory>0</mandatory>
</property>
<property>
<name>image</name>
</property>
</object>
<object>
<name>PublicWebSite.Code.BlockSquaresMacro</name>
<number>5</number>
<className>XWiki.WikiMacroParameterClass</className>
<guid>9e2cdd1f-082d-4696-bcd3-12fc743cd4cc</guid>
<class>
<name>XWiki.WikiMacroParameterClass</name>
<customClass/>
<customMapping/>
<defaultViewSheet/>
<defaultEditSheet/>
<defaultWeb/>
<nameField/>
<validationScript/>
<defaultValue>
<disabled>0</disabled>
<name>defaultValue</name>
<number>4</number>
<prettyName>Parameter default value</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultValue>
<description>
<disabled>0</disabled>
<name>description</name>
<number>2</number>
<prettyName>Parameter description</prettyName>
<rows>5</rows>
<size>40</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</description>
<mandatory>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>mandatory</name>
<number>3</number>
<prettyName>Parameter mandatory</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</mandatory>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Parameter name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
</class>
<property>
<defaultValue/>
</property>
<property>
<description>Text of a button displayed below the squares</description>
</property>
<property>
<mandatory>0</mandatory>
</property>
<property>
<name>buttonText</name>
</property>
</object>
<object>
<name>PublicWebSite.Code.BlockSquaresMacro</name>
<number>6</number>
<className>XWiki.WikiMacroParameterClass</className>
<guid>ba95a343-3b4f-4632-953d-ba57046eb8c6</guid>
<class>
<name>XWiki.WikiMacroParameterClass</name>
<customClass/>
<customMapping/>
<defaultViewSheet/>
<defaultEditSheet/>
<defaultWeb/>
<nameField/>
<validationScript/>
<defaultValue>
<disabled>0</disabled>
<name>defaultValue</name>
<number>4</number>
<prettyName>Parameter default value</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultValue>
<description>
<disabled>0</disabled>
<name>description</name>
<number>2</number>
<prettyName>Parameter description</prettyName>
<rows>5</rows>
<size>40</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</description>
<mandatory>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>mandatory</name>
<number>3</number>
<prettyName>Parameter mandatory</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</mandatory>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Parameter name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
</class>
<property>
<defaultValue/>
</property>
<property>
<description>URL or page name to link to when clicking on the button</description>
</property>
<property>
<mandatory>0</mandatory>
</property>
<property>
<name>buttonUrl</name>
</property>
</object>
</xwikidoc>