问题描述
我有一个自定义的Sharepoint 2010 Web模板,我想在Sharepoint添加网站库中为它设置自定义预览图像。
I have a custom Sharepoint 2010 Web Template and I would like to set a custom preview image for it in the Sharepoint add site gallery.
示例(我想要设置) 项目模板网站自定义Web模板的自定义图像:
Example (I wanna set a custom image for the "Project Template Site" custom web template):
注意:我已经尝试设置WebTemplate元素的ImageUrl属性()它无法正常工作..
Note: I already tried setting the ImageUrl property of the WebTemplate element (http://msdn.microsoft.com/en-us/library/ff408392.aspx) and it is not working..
推荐答案
我设法解决了我的问题。显然,模板元素的ImageUrl属性仅适用于相对URL(我试图将其设置为绝对URL)。
I've managed to solve my problem. Apparently the ImageUrl property of the template element only works with relative URLs (and I was trying to set it to an absolute URL).
<WebTemplate
(...)
ImageUrl="/_layouts/images/example.PNG" /> <!-- Works -->
这篇关于为Sharepoint 2010自定义Web模板设置预览图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!