On the current project I'm working on, I need to replace a telephone number, depending on whether a cookie has been set. So the way I'm thinking at the minute, was that in the content, i'd put the number in as {TELEPHONE} and then intercept the content before it's rendered and replace as necesary.
I've been trying to think of a way to do it in XSLT and using my own extensions, but it's a bit messy. Is there a way that I could do it from c# and extending Umbraco itself?
Intercept content and dynamically replace
On the current project I'm working on, I need to replace a telephone number, depending on whether a cookie has been set. So the way I'm thinking at the minute, was that in the content, i'd put the number in as {TELEPHONE} and then intercept the content before it's rendered and replace as necesary.
I've been trying to think of a way to do it in XSLT and using my own extensions, but it's a bit messy. Is there a way that I could do it from c# and extending Umbraco itself?
Many thanks in advance for any help.
Mark
I think you can do something like this. Too
is working on a reply...