CMS_Selflink: passing a variable into the cms_selflink
Posted: Tue Apr 11, 2017 12:04 pm
I am trying to find a solution to including a variable in the href of a cms_selflink tag, like below
I have tried to find a solution and tried various bits of code like:
and
any thought welcome
cheers
Mark
Code: Select all
{cms_selflink href='$specialism'}
Code: Select all
{specialism = '$item->fielddefs.specialism'}
{cms_selflink href='$specialism'}
Code: Select all
{assign='specialism' value='$item->fielddefs.specialism'}
{cms_selflink href='$specialism'}
cheers
Mark