Hi,
I am trying to use keyword modifier to replace colon and forward slash, that is http://
But the modified keyword doesn't return anything. How can I get it work, maybe by escape? I have tried back slash but it doesn't work for me.
Thanks,
Robin
[quote]
Hi,
I am trying to use keyword modifier to replace colon and forward slash, that is http://
But the modified keyword doesn't return anything. How can I get it work, maybe by escape? I have tried back slash but it doesn't work for me.
Thanks,
Robin
[/quote]
What is the keyword you are using? would like to see the format really.
The parse_keyword() function which try to extract the modifier out of the keyword seems to be using ':' to get the strings to replace and to replace with. This is probably what might be causing the issue.
Ash
%asset_url:replace:http://blah.blah%
Thanks Ash.
[quote]
%asset_url:replace:http://blah.blah%
Thanks Ash.
[/quote]
Yes it is what was suspected. Matrix will try to split the string at the ':' , the one after the replace one. It will take the string 'http' as a string to replace and "//blah.blah" as string to replace with. There isn't much we can do to ignore this semicolons sadly. It just the way it has been coded right now. would probably be a nice idea to see it as a bug.
Ash
Thanks Ash, I will use JS to get rid of the hostname.