Sharepoint Designer 2007:在链接上添加服务器名称

时间:2011-04-06 11:29:19

标签: sharepoint sharepoint-2007 sharepoint-designer

当我使用Sharepoint Designer 2007并在Sharepoint 2007 Standard Server上创建链接或图片引用时,我使用斜杠(/)表示root,SharePoint Designer会自动将beginigng中的服务器名称添加到它的左边(完整的URL)。是否有一个选项或某些东西阻止它这样做?

有时某些链接具有实际的服务器名称,而其他链接则具有备用公共名称。

1 个答案:

答案 0 :(得分:0)

我以前见过这个,最简单的解决方法是使用Javascript。您可以将链接设置为:

javascript:window.location='/Lists/SomeList/AllItems.aspx'

所以在链接中它看起来像这样:

<a href="javascript:window.location='/Lists/SomeList/AllItems.aspx'">Wowee</a>