Sharepoint 搜索搜索结果中的“创建者”字段不一致
我正在使用博客聚合器 (CoreResultsWebPart) 返回我的网站中的所有博客文章。 我正在尝试检索在我的 xsl 中创建博客文章的用户的登录名。
但是我得到的结果不一致。例如:
用户登录:mydomain\maggie.smith
返回的作者数据:mydomain\maggie.smith(正确!)
另一个用户登录:mydomain\bob.hope
作者返回的数据:Bob Hope
现在我假设这是因为用户配置文件数据库获取了 Bob Hope 的显示名称,因为该信息存在,但是,而不是“Bob Hope”,我想知道他的登录名!如果我使用共享点管理器检查博客文章中的“Bob Hope”,则所有“创建者”和“作者”字段都显示“Bob Hope”,而不是 mydomain\bob.hope。
我怎样才能得到它?原因是为了将用户个人资料图片附加到我的 xsl 博客聚合中。
我添加了其他元数据列来返回并重新抓取内容源,但我无法获取原始作者的登录名。请帮助任何人!
I am using a blog aggregator (CoreResultsWebPart) returning all blog posts from my mysites.
I am trying to retrieve the login name of the user who created the blog post in my xsl.
However I am getting inconsistent results. eg:
User login: mydomain\maggie.smith
Returned data for author : mydomain\maggie.smith (CORRECT!)
Another user login : mydomain\bob.hope
Returned data for author : Bob Hope
Now I am assuming that its because the user profile database fetched the display name of Bob hope because that information exists, however, instead of "Bob Hope", I want to get his login name! If I use sharepoint manager to inspect the blog post for 'Bob Hope', all the Created By and Author fields show 'Bob Hope' and not mydomain\bob.hope.
How do I get it? The reason being is to get the users profile picture to attach to my xsl blog aggregation.
I have added other metadata columns to return and recrawled the content source but I cant get the login name of the original author. Help anyone, please!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SPUserField 具有“显示字段”设置。尝试更改此设置以在“CreatedBy”字段中显示“Login”而不是“DisplayName”,看看是否有帮助。
SPUserField has "Show field" setting. Try to change this to show Login instead of DisplayName for your "CreatedBy" field and see if it would help.