dfurler-liv.asn
-
11/29/2012 11:07:31 PM
Macro gets destroyed by editable region
Hello,
I need to have a macro in an editable text region that changes a URL based on whether a visitor is internal or external. I have something like the below working fine:
<a href="{% internal = "192.168"; if (internal == Substring(IP, 0, 7)) {"http://someinternallink"} else {"http://someexternallink"} %}" target="blank">
I paste the above in as source and it works when saved, however, no one is able to edit that page again because the CMS converts the quotes to html entity on the next edit and in doing so destroys the macro.
I have tried lots of combinations of single and double quotes to try to get around this but nothing seems to work.
Does anyone know how I can paste a macro into an editable text area and have it stay untouched. The particular text area does not have a "insert macro" button in the tool bar as I have come across in certain tutorials.
Thanks, David
|