mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Renaming shape and adding a hint
--HG-- branch : 1.x extra : rebase_source : 4d74199aa85e9194ae579959cab33a6a2740310c
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Orchard.MediaProcessing.Shapes {
|
||||
public ILogger Logger { get; set; }
|
||||
|
||||
[Shape]
|
||||
public void ImageUrl(dynamic Display, TextWriter Output, string Profile, string Path, ContentItem ContentItem) {
|
||||
public void MediaUrl(dynamic Display, TextWriter Output, string Profile, string Path, ContentItem ContentItem) {
|
||||
var filePath = _fileNameProvider.Value.GetFileName(Profile, Path);
|
||||
// todo: regenerate the file if the profile is newer, by getting IStorageFile.
|
||||
if (string.IsNullOrEmpty(filePath) || !_storageProvider.Value.FileExists(filePath)) {
|
||||
|
@@ -41,6 +41,8 @@
|
||||
}
|
||||
</table>
|
||||
|
||||
<span class="hint">@T("Usage example: ")@("@Display.MediaUrl(Profile: \"")@Model.Name@("\", Path: Model.ContentItem.Contact.Picture.Url)")</span>
|
||||
|
||||
<fieldset>
|
||||
@*@Html.ActionLink(T("Preview").ToString(), "Preview", new { Model.Id }, new { @class = "button" })*@
|
||||
@Html.ActionLink(T("Close").ToString(), "Index", new { }, new { @class = "button" })
|
||||
|
Reference in New Issue
Block a user