I am having issues with "Name column" and its fields in libraries. I would like to iterate throuch each item and return default render value in this column in certain cases. I have tried lot of things lying here,but mostly this. For Name column I tried something like. This is JSlink issue:
function rewriteNameCoumn(ctx)
{
if(ctx.CurrentItem["fsObjType"] == 1)
{
//generate link for folder
return url;
}else{
//return default rendering for non-folder item
return RenderFieldValueDefault(ctx);
}
}
but that does not work. Basically, the only thing I want o achieve is, when item is folder add an HTML element title = "this is folder" to it and if it is file, let it as it was. Problem with doucment library views is, that SharePoint generates each folder and file with different hyperlink properties and inline javascripts. I do not want to rebuild all of this, just because I want to add html title="this is folder" to folder name.