开发者

Custom template/onet.xml and icon link in SharePoint2010

How can I change the link URL for the icon in the picture

I have a custom template and when I create a new site from it I want the link to take the user to the main portal site. I have about 10 site collections with a copy of the template each. I think I can go to the main site in each site collection and set all subsites to inherit from the 'this' site but I don't want to do this every time I create a new site.

In开发者_运维百科 onet.xml I set the url to the custom icon:

<Project Title="test" Revision="0" UIVersion="4" SiteLogoUrl="/SiteCollectionImages/test.png" SiteLogoDescription="" xmlns="http://schemas.microsoft.com/sharepoint/">

Can I also set the link URL?

Thanks in advance.


SiteLogoUrl does not work in the onet.xml file. You need to set it programmatically using SPWeb.SiteLogoUrl.

See also: Under what circumstances does SiteLogoUrl work?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜