I’m trying to place a button with a link as an embed in a page. Works all well, the button is there and as long as I use an absolute href in the embeded page the button links nicely to whatever href given. Using EE 1.6.9
However I want the href to be given as a variable. As soon as I’m doing that the link doesn’t work anymore and the page renders the url twice. This is the code in the embed document, where simpel_subtitel is the variable for the url.
<div id="buttons" class="append-bottom">
../../resources/img/decowhite.png
<hgroup class="aside">
{exp:weblog:entries weblog="button" limit="1" status="Open" dynamic="off"}
{simpel_tekst}
<a href="http://{simpel_subtitel}%22class=%22button" class="button medium green ">{title}</a>
{/exp:weblog:entries}
</div>The embed relation in the final document looks like this:
<div id="content" class="container normalbackground">
<aside class="span-8">
<!-- sidenav elementen worden per pagina geselecteerd -->
{embed="embed/_sidenav"}
{exp:weblog:entries weblog="firstlevel" limit="1" status="Open"}
{if {side_selection:selected option="Adres"}}
{embed="embed/_address"}
{/if}
{if {side_selection:selected option="Googlemap"}}
{embed="embed/_googlemaps"}
{/if}
{if {side_selection:selected option="Testimonial"}}
{embed="embed/_testimonial"}
{/if}
{if {side_selection:selected option="Video"}}
{embed="embed/_video"}
{/if}
{if {side_selection:selected option="Advertentie"}}
{embed="embed/_advert"}
{/if}
{if {side_selection:selected option="Fotos"}}
{embed="embed/_fotos"}
{/if}
{if {side_selection:selected option="Nieuws"}}
{embed="embed/_nieuws"}
{/if}
{if {side_selection:selected option="Freepass"}}
{embed="embed/_freepass"}
{/if}
{if {side_selection:selected option="Button"}}
{embed="embed/_button"}
{/if}
<!-- end sidenav elementen -->Any glue?