This project is read-only.

Media Picker Query Layout Rewrite Text for URL

Topics: General, Troubleshooting
May 7, 2012 at 7:41 PM

Has anyone found a token to use when rewriting the media picker URL property so it does not contain the "~" character in it? Right now I need to re-write the property in the Layouts section of the Query. I would like to not have to specify an optional template if possible.

May 7, 2012 at 7:57 PM

You need to use 1.4.1 then {Content.Fields.PART.FIELD.Url.Absolute}

You can see those tokens as of 1.4.1 in the dropdown.

May 8, 2012 at 3:35 AM

Thanks! Upgraded and did not even need to do that now. I think something else was fixed that properly rendered the media picker URL with an image tag after setting some custom query options. Nice work all around here. Version 1.4.1 rocks!

May 10, 2012 at 9:25 AM

I created layout for my query in 1.4.1 and I still have same problem. Of course Sebastien solution works, but I'm wondering now if everything is fine with my Orchard 1.4.1 distribution. Did you do anything else with the property rewrites? How should it render eventually?