I’m trying to create a Macro which opens a URL (a website) on a new tab in the browser.
I can’t get the link to work…it’s not parsing it correctly.
The “link” parameter is like “http://www.google.com” (without the quotes).
Can somebody help me out?
Here’s my code
{{velocity}}
#set($titel=$xcontext.macro.params.Titel)
#set($omschrijving=$xcontext.macro.params.Omschrijving)
#set($icon=$xcontext.macro.params.Icon)
#set($link=$xcontext.macro.params.Link)
{{html wiki="true"}}
<a href=$link target="_blank">
<div style="
width: 240px;
height: 240px;
display: inline-block;
padding-left: 5px;
background-color: rgb(255,255,255);
border-radius: 2px;
border-width: 2px;
border-style: solid;
text-align: center;
cursor: pointer;
">
<br>
{{icon name=$icon size="4x" title=$titel}}{{/icon}}<br>
<br>
**$titel**<br>
<br>
//$omschrijving//<br>
<br>
</div>
<br>
</a>
{{/html}}
{{/velocity}}