Sharepoint 2013图片库显示形式,希望在用户单击缩略图时显示大图像 [英] Sharepoint 2013 Picture gallery display form, wanted to display big image when user click on thumbnail

查看:78
本文介绍了Sharepoint 2013图片库显示形式,希望在用户单击缩略图时显示大图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,在sharepoint 2013图片库中,当用户单击任何缩略图时,它应该首先打开图像,而不是首先打开具有某些图像详细信息的DispForm;当用户单击预览图像时,它将打开图像,我当用户单击时 缩略图将打开大图.

Hi I have a requirement that in sharepoint 2013 picture gallery when user click on any thumbnail it should open the image not first the DispForm with some image details and when user click on preview image it will open the image, I wan when user click on thumbnail it will open the big image.

我以为可以使用列表中的自定义DispForm来做到这一点,但是在这里我找不到任何标签来仅显示图像而没有其他信息.

I thought I can do it with custom DispForm in the list but there I am not able to find any tag to display image only without any other information.

默认列表页面是DispForm,我找不到任何HTML或XML代码来隐藏不需要的信息,例如名称,使用日期,用户名等.我只想显示大图.

The default list page which is DispForm I am not able to find any HTML or XML code to hide the unwanted information like name, date taken user name etc. Only I want to display the big image.

由于我无法找到任何解决方案,因此将非常感谢您的帮助.在2010年非常轻松,但在2013年我还找不到.

Any help will be really appreciated as I am not able to find any solution yet. It 2010 it was very easy but in 2013 I am not able to find yet.

谢谢

推荐答案

请将以下代码添加到DispForm.aspx页的脚本编辑器" Web部件中.

Please add the following code into a Script Editor Web Part in the DispForm.aspx page to achieve it.

<script src="//code.jquery.com/jquery-3.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript">


(function(){ var imgSrc =
(function(){ var imgSrc=


(#webImgShrinked").parent().attr("href");
("#webImgShrinked").parent().attr("href");


这篇关于Sharepoint 2013图片库显示形式,希望在用户单击缩略图时显示大图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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