acuarelweb Posted February 7, 2015 Share Posted February 7, 2015 Hi there. I'm a newbie at smarty and need a little bit of help (using PS 1.6.0.9) : In smarty template i have the following variable: {assign var ="link_url" value = $link->getCmsLink(8)} I want to sprint a string with that link, using {l s='... so i tried: {l s='I've read and understood the %s terms of policy %s' sprintf=['<a class="fancybox" href="$link_url">', '</a>'] } or {l s='I've read and understood the %1$ terms of policy %2$' sprintf=['<a class="fancybox" href="$link_url">', '</a>'] } with no success, as <a tag> is stripped in sprintf. What is the right way to do that? Thx in advance! Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 Assing the whole <a> element to a variable {l s='I've read and understood the %s terms of policy %s' sprintf=[$a_part, '</a>'] } 1 Link to comment Share on other sites More sharing options...
acuarelweb Posted June 2, 2015 Author Share Posted June 2, 2015 Thx for your reply. Sorry for being late in answering but , believe me, i couldn't find a way to reach this message until now :-P Regards, Daniel Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now