Ivana,
Thanks for the quick response, but using that macro gives me the literal value in the document fields - eg my document name says '{%headline|(substring)0;99%}', instead of the truncated value.
FYI - I'm trying to use it in the 'Source field or expression' column in Step 6 of the tool.
Thanks,
Lance
kentico_ivanat wrote: Hi,
here is an example:
Macro
{%username%} returns for example
administrator.
Macro
{%username|(substring)2;3%} returns
min.
Above macros will be resolved in transformations, properties of webpart, etc. For more details please take a look at
macro expressions.
If you need to use macro inside code you can use:
string macroResult = CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{%macro%}").ToString() %>";Best regards,
Ivana Tomanickova