FileRef and FileLeafRef in a list view

Question

Wednesday, October 26, 2011 11:35 AM

Hi,

I want my list (blog posts) to include FileRef and FileLeafRef fields. It's not a document library, so I think that's why these fields get thrown away or something (the content type and list definition have them, I checked with PowerShell). I checked the list definition, view definitions and there's no word about those fields but in the AllPosts view it is included. Why? How? How do I tell SharePoint to pass them to XSLT?

This has been really bugging me for a week, so at least an explanation why it is that way and why I can't do anything about it would be really appriciated.

Thanks

All replies (2)

Wednesday, October 26, 2011 11:58 AM ✅Answered

let me give a try

According to my understanding, FileRef and FileLeafRef are built in fields of SharePoint because of which you are not having control on these fields

FileLeaRef:Identifies a field that contains information about the server-relative URL for the file node that is associated with the specified SharePoint Foundation object.

FileRef:Identifies a field that contains information about the server-relative URL for the specified SharePoint Foundation object.

these are content types associated to a folder.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbuiltinfieldid.fileleafref.aspx

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbuiltinfieldid.fileref.aspx

Raghavendra Shanbhag | Blog: http://moss-solutions.blogspot.com
Please click "Propose As Answer " if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
Disclaimer: This posting is provided "AS IS" with no warranties.


Wednesday, June 15, 2016 2:56 AM

I think that's not answering the question. What about "Title", "Created", "Created By", "Modified", "Modified By"? Aren't those a built-in fields?

I think still need to find the reason why these fields are hidden from Create View columns.

"Jangan bertanya seberapa besar mimpi yang akan kau raih, tetapi bertanyalah seberapa besar dirimu untuk mimpi itu"
  http://otak-otak-it.blogspot.com  
Click Propose as Answer if you found out that the answer is helpful.