Hi,
In Revolution, is it possible to have a regex output modifier, or something that's similarly flexible?
The use-case I have in mind is when using a URL TV; obviously the href is generated, but there is a lack of customisation for the actual text to be displayed. It'd be nice to have an option to remove all mailto:, http://, https:// etc...
The other thing I'm having trouble with is getting Modx to hide a URL TV if it's not been filled in. The issue seems to be that there's always a "--" present, even when the user doesn't select a protocol, or add an address. The code I believe ought to work is this:
[[+artisturl:isnt=`--`:or:notempty=`<a href="[[+url]]" target="_blank" class="small artist-url">[[+artisturl:striphttp`]]</a>`]]
...but if left unfilled, it will always return "--".
Any thoughts?