Sharepoint 服务图像超链接
我正在使用 Sharepoint 服务创建网页。我有一个图像 - 主页右上角的徽标 - 我想放置一个超链接,这样当按下它时,它会将您带到另一个网站。请问我该怎么做?
I am using Sharepoint service to create a webpage. I have an image - the logo on the top-right of the homepage - and am wanting to put a hyperlink so when it is pressed it takes you to another site. How would I do that please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新
下次我会更仔细地阅读问题。我把左右混淆了,以为他想更改网站标题旁边左上角的徽标。
问题是,链接是否应该始终指向相同的目标,并且徽标是否应该始终相同,或者链接目标和徽标是否因站点而异?
如果它应该始终是相同的徽标,那么编辑母版页将是最简单的解决方案。
对于不同的链接目标和徽标,您必须进行更多计划。首先,您需要一个可以存储链接目标的位置。因此,我认为 SPWeb 的 PropertyBag 将是一个好地方。此外,您需要一个地方来存储您的徽标。在这种情况下,新站点上的图书馆将完成这项工作。
最后,我将实现一个控件,该控件创建 HTML 以显示带有链接的徽标。该控件从库中检索徽标(徽标的 url),并从实际站点的 PropertyBag 中检索链接目标。因此,最后一步是将旧徽标控件替换为新徽标控件。
UPDATE
Next time I'll read the question more carefully. I mixed up right with left and thought he want to change the logo in the top left next to the site's title.
The question is, should the link point always to the same target and should the logo be always the same one or will the link target and logo differ from site to site?
If it should be always the same logo then editing the master page would be the easiest solution.
For different link targets and logos you have to plan a little bit more. First you'll need a place where you could store the link target. I think the SPWeb's PropertyBag would be a good place therefore. Furthermore you need a place to store the you logo. In this case a library on the new site will do the job.
Finally I would implement a control that creates the HTML to display the logo with a link. The control retrieves the logo (logo's url) from the library and the link target form the actual site's PropertyBag. So the last step would be to replace the old logo control with your new one.