Context: Kentico 12.0.15 portal engine in an ascx transformationI am trying to implement a very simple border style to an html tag using transformation methods If() and IfTrue(). The problem is th...
I have a field called 'description' on my structured pages in Kentico 11 and I want to count the number of characters in the string.I tried something like this but it didn't work. Any ideas?{% If (...
I am trying to build out a hyperlink and want to add target=@_blank@ only if the link contains http or https in the url? Is there a macro for that?Example: {% if (BannerImageLink @starts with http ...
HeyIs their a method that will allow me to check whether a value exists in my custom table ? I have a column called CountryAlias and would like to check that if a certain country code exists in the...
Can I write a elseif in Macro syntax ? Like: {% if(a == @value1@){ @some test 1@ }elseif(a==@value2@){ @some test 2@ }else{ @some test 3@ } %}
Hi, I am trying to add the following code into an html envelope. @nav aria-label=@{% CurrentDocument.DocumentName #%}menu@ class=@vs-menu-secondary {% CurrentDocument.DocumentName#%}@@{% if (Curre...