如何在 Orchard 1.7 中显示带有投影布局的图像? [英] How can I display images with projection layouts in Orchard 1.7?

查看:50
本文介绍了如何在 Orchard 1.7 中显示带有投影布局的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用带有属性的查询布局,并且在 1.7 之前的版本中一直使用 .Url.Absolute 来获取图像的路径.

I use query layouts with properties and had been using .Url.Absolute in versions previous to 1.7 to get the path to an image.

有没有办法在布局中从新媒体库中生成图像 url 和其他属性?

Is there way to produce the image url and other properties from the new media library in a layout?

谢谢!

推荐答案

要使用 {Content.Fields.MyPicture.Url.Absolute} 你必须启用

for using {Content.Fields.MyPicture.Url.Absolute} you must Enable

替代网址

首先来自模块功能.

这篇关于如何在 Orchard 1.7 中显示带有投影布局的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆