Tag Info

Hot answers tagged

1

You could utilize SP.FileVersionCollection.deleteAll Method for that purpose: Example var fileName = '/sites/news/Pages/default.aspx'; var ctx = SP.ClientContext.get_current(); var versions = ctx.get_web().getFileByServerRelativeUrl(fileName).get_versions(); versions.deleteAll(); ctx.executeQueryAsync( function() { console.log('File versions ...


1

For 2013, Check this out using (var ctx = new ClientContext(webUri)) { var currentUser = ctx.Web.CurrentUser; ctx.Load(currentUser); ctx.ExecuteQuery(); Console.WriteLine(currentUser.IsSiteAdmin); } Greetings


1

Couldn't you refactor the SPServices call into another function, that takes the "area" value, "topic" value, and the list selector as parameters? You'd still be querying the list 24 times, but it will look a lot cleaner. $(document).ready(function () { QueryNewsList("highlights", "company", "#highlights1"); QueryNewsList("downfalls", "company", ...



Only top voted, non community-wiki answers of a minimum length are eligible