使用列表列作为页面标题 [英] Use a list column as the a title for a page

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

问题描述

如何将其设为列表列系统名称"?成为页面上的标题.

How can i make this the list column "System Name" to be a Title on a page.

系统"一词目前是Webpart的标题.

The word System is currently the webpart title.

我只想首先显示系统名称,以便用户知道他们正在使用的系统

I just want to be able to display the System Name above all so user know what system they are working

推荐答案

请按照以下步骤操作:

  • 编辑显示表单页面
  • 在列表Webpart上方添加脚本编辑器WebPart并插入以下脚本
<script src="/SiteAssets/jquery-1.9.1.min.js"></script>
<script src="/SiteAssets/spjsutility.js"></script>
<script>


(文档).ready(function(){ var title = getFieldValue('Title'); //spjs-utility的标题列"的getFieldValue
(document).ready(function(){ var title=getFieldValue('Title'); //spjs-utility's getFieldValue for Title Column


(".ms-webpart-titleText").text(title); }); </script>
(".ms-webpart-titleText").text(title); }); </script>

注意:我已经使用Spjs-utility来获取字段值.您可以下载spjs-utility

Note: I have used Spjs-utility to get the field value. You can download spjs-utility here


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

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