This project is read-only.

how to use Display.ResizeMediaUrl() in Rewrite output ?

Topics: Customizing Orchard
Sep 21, 2013 at 7:27 PM
I created new query, added Layout ( Raw)
I have Property - MediaPickerFiled
I want to Rewrite Results-Rewrite output
<img class="img-rounded" src="{Content.Fields.BlogPost.BeforePostImage.Url.Absolute}" alt="{Content.Fields.BlogPost.BeforePostImage.AlternateText}" title="{Content.Fields.BlogPost.BeforePostImage.AlternateText}" /> It was in previous version 1.6
in 1.7 we have method Display.ResizeMediaUrl()
How can i use it in query? ( src="{Display.ResizeMediaUr )

"Rewrite output" has a limit of 255 characters - it is not enough if i override many attributes in element.
Sep 22, 2013 at 3:03 AM
You would need a token for this. Which is clearly a good idea. Doesn't exist now as far as I know however.