使用本地Sharepoint 2013进行Intranet门户的响应式设计 [英] Responsive Design for Intranet Portal using On-Premise Sharepoint 2013

查看:108
本文介绍了使用本地Sharepoint 2013进行Intranet门户的响应式设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试为SharePoint 2013中客户端的Intranet门户之一创建响应网站.有很多页面包含列表和文档库.

We are trying to create the responsive site for one of client's intranet portal in SharePoint 2013. There are lots of pages contains the list and document library.

当我们尝试减小尺寸时,页面内容在其他设备(如移动设备和ipad)上显示正常.

When we are trying to reduce the size the contents of page is showing fine in other devices like mobile and ipad.

但是我们的CSS并没有控制文档库的列,因此,文档的模式对话框也被裁剪了.

But the document library columns are not getting controlled by our CSS and modal dialog of documents are also getting cropped due to this.

请帮助我们,可以为列表和文档库进行响应式设计.还请告知我们是否可以为系统页面(网站设置,用户权限页面等)实施响应式设计

Please help us that the responsive design is possible for list and document libraries. Also let us know if we can implement responsive design for systems pages (site settings, user permission pages etc.)

推荐答案

如果要使列表和库页面具有响应性,则有点复杂.所有这些页面都是通过XSLT呈现的,您可能需要用itemstyle.xsl和headerstyle.xsl文件覆盖HTML标记.您可以在/Style Librar/中找到这些文件 XSL样式表/.请确保进行备份,因为如果出现问题,所有列表/表单视图页面将停止工作.

This will be bit complex if you want to make list and library pages as responsive. All these pages are render through XSLT, you might need to overwrite the HTML markup with itemstyle.xsl and headerstyle.xsl files. you can find these files at /Style Librar/ XSL Style Sheets/. Please make sure to take backup copy because if something gets wrong, all the list/form view pages will stop working.

我只使用这些itemstyle.xsl编写了自己的样式模板,所以我建议您编写自己的样式模板并从Web部件属性中更改列表视图模板.

I only used these itemstyle.xsl to write my own style templates, so i will suggest to write your own style template and change the list view template from web part properties.

您还可以根据需要使用JSLink呈现列表视图.查看此博客文章以供参考 使用JSLink替代计算列

You can also use JSLink to render list views as per your requirement. Check this blog post for reference Using JSLink as an alternative for Calculated columns


这篇关于使用本地Sharepoint 2013进行Intranet门户的响应式设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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