Keyword Modifiers replacing + to a %2B


(Nick Papadatos) #1

HTML URL Encoding Reference
Is there a way for keyword modifiers to do the following?
%globals_asset_metadata_excludeunits^replace:(\W):%2B%

so the end result would be 1%2b2%2B3%2B4 etc from 1+2+3+4
In a nutshell convert metadata values from a + to %2b. I’m able to do this via javascript but was wondering if it’s possible via the keyword modifier


(Peter McLeod) #2

Hi
Could you use the urlencode modifier?
%globals_asset_metadata_excludeunits^urlencode%
Thanks
Peter


(Nick Papadatos) #3

Yeah that worked, thanks Peter. Did look closely at that keyword though - thought I had already tried it. Too many late nights
cheers
Nick