Is there a way you can distinguish a view whether it's a public view or a personal view ?
2 Answers
When you click the view in the list or library look at the URL. With a personal view you will find the URL looks something like:
Site/Lists/ListName/PersonalViews.aspx?
-
This might not apply to modern SharePoint Online sites. This probably applies to on prem SharePoint 2013 installations but nothing cloud based. Aug 31, 2023 at 4:46
The previous answer is right, you can do it also by powershell, with the property PersonalView.
$site = Get-SPSite http://yourSite
$web = $site.OpenWeb()
$list=$web.Lists["your List name"]
#get the index of your view
$list.Views[0].PersonalView #true or false
If you want a more user friendly way, you can add this code into a script editor in the view page:
<div id="viewType"></div>
<script>
$(document).ready(function(){
if(window.location.href.indexOf("PersonalViews")>-1){
$("#viewType").html("Personal View");
}else{
$("#viewType").html("Public View");
}
});
<script>
-
Yes, I believe you can use those methods as well, But is there's another way ? A more user friendly method? Apr 23, 2015 at 11:58
-