cluster Posted March 18, 2018 Share Posted March 18, 2018 modern theme > configureproductdomain.tpl > $freedomaintlds would it be it possible to put a href link on the individual domain endings, disassemble the string ... divide ?? f.ex. <a href="{$freedomaintlds}">{strtoupper($freedomaintlds)}</a> all endings have the same link then ... maybe split that somehow ... ? Link to comment Share on other sites More sharing options...
brian! Posted March 18, 2018 Share Posted March 18, 2018 6 hours ago, cluster said: would it be it possible to put a href link on the individual domain endings, disassemble the string ... divide ?? all endings have the same link then ... maybe split that somehow ... ? explode them.... {if $freedomaintlds}<p>* <em>{$LANG.orderfreedomainregistration} {$LANG.orderfreedomainappliesto}: {assign var=freedomlist value=","|explode:$freedomaintlds} {foreach from=$freedomlist item=freedomtld} <a href="{$freedomtld}">{strtoupper($freedomtld)}</a>{if not $freedomtld@last}, {/if} {/foreach} </em></p> {/if} alternatively, you could write a hook that would do all of the above in PHP and then pass it back as $freedomaintlds but as an array including your links for each... but I assume you're editing the template anyway for other changes. Link to comment Share on other sites More sharing options...
cluster Posted March 19, 2018 Author Share Posted March 19, 2018 that's great! respect ... thank you for your help Link to comment Share on other sites More sharing options...
Recommended Posts