使用页面标题作为图像URL的文件名的一部分 [英] Use page title as part of the file name for an image url

查看:101
本文介绍了使用页面标题作为图像URL的文件名的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将图片链接添加到DocSet页面,我希望此图片URL获取页面标题,然后在照片库中显示与其关联的文件。我不想使用页面过滤器或CQWP。我想添加页面代码的链接。
有什么想法吗? 

I wanted to add an image link to a DocSet page and I want this Image URL to get the title of the page then display the file that is associated with it in a photo library. I do not want to use a page filter or CQWP. I want to add the link to page code. Any thoughts? 

推荐答案

您好Jetbluebob,

Hi Jetbluebob,

您要添加标题吗?图像URL中的DocSet页面?你是什​​么意思"在照片库中显示与它相关的文件"?

Do you want to add the title of the DocSet page in the image URL? What do you mean "display the file that is associated with it in a photo library"?

如果您想在页面中添加可点击图片,可以使用下面的自定义代码。编辑页面 - >添加内容编辑器Web部件或脚本编辑器Web部件 - >将下面的自定义代码添加到内容编辑器Web部件或脚本编辑器Web部件中。

If you want to add the clickable image in the page, you could use the custom code below. Edit the page->add the Content Editor web part or Script Editor web part-> add the custom code below into the Content Editor web part or Script Editor web part.

<a href="the URL of the DocSet page ">

<img border="0" alt="test" src="the URL of the file in the photo library " width="100" height="100">

 </a>




致以最诚挚的问候,

Sara Fan


这篇关于使用页面标题作为图像URL的文件名的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆