I am trying to use String.Contains(URL,"http"), but it is not working. The event log is showing an error saying:
Method 'Contains' for object of type 'CMS.MacroEngine.StringNamespace' not found, please check the macro or the method declaration.
Yet this macro is on the Macro Reference page of the documentation: https://docs.kentico.com/k9/macro-expressions/reference-macro-methods#Reference-Macromethods-Textmanipulation
use {% Contains(URL,"http") %}
{% Contains(URL,"http") %}
Thank you, that worked.
Please, sign in to be able to submit a new answer.