Umbraco - 如何将可点击的图像插入页面?

时间:2016-07-25 11:00:55

标签: image umbraco umbraco7

我是Umbraco的初学者。我可以将图像上传到媒体库,然后将它们放到页面上,但对于我的侧边栏,我希望图像是可点击链接到我网站的其他部分和其他网站。

目前我正在使用富文本编辑器编写锚标记等,但这看起来很荒谬,我不希望内容作者[试图]编写HTML。

似乎应该有一个内置的数据类型,或图像上的属性,但我什么也看不见。我是否需要将自己的Razor代码编写为DataType?这似乎是一件很平常的事情,我很惊讶没有内置的解决方案。

我使用7.2.8

1 个答案:

答案 0 :(得分:2)

If you're already using the RTE, you can just select the image and click the Link button, then whatever you have selected (in this case the image) should become a link. No need to make your own HTML :-)