【问题标题】:Returning user profile properties on a page layout in SharePoint Online?在 SharePoint Online 中的页面布局上返回用户配置文件属性?
【发布时间】:2017-01-04 00:37:42
【问题描述】:

在我的 SharePoint 2013 开发环境中,自定义页面布局中的此代码会恢复当前用户的名字:

<SPSWC:ProfilePropertyValue runat="server" TitleMode="true" PropertyName="FirstName"/>

但是,如果我将此添加到 Office 365 中 SharePoint Online 的页面布局中,它不会返回任何内容(只是空白)。

这是一个可能的错误还是设计使然?

我想带回这个属性服务器端而不是客户端脚本,因为我希望能够在文档准备好之前使用它。

【问题讨论】:

    标签: sharepoint user-controls office365


    【解决方案1】:

    我发现答案是因为您需要先使用“ProfilePropertyLoader”标签,例如:

    【讨论】:

      猜你喜欢
      • 2021-06-15
      • 2020-02-15
      • 2016-06-15
      • 1970-01-01
      • 2018-02-15
      • 1970-01-01
      • 2017-10-06
      • 1970-01-01
      • 2019-07-25
      相关资源
      最近更新 更多