Showing posts with label Site Templates. Show all posts
Showing posts with label Site Templates. Show all posts

Saturday, October 24, 2015

List of All Site Templates with REST API and AngularJS

Here is the code which can show you how to display all site templates / custom templates with use of REST API & AngularJS in SharePoint :

<script src=""></script> 
<script src=""></script> 
        var myAngApp = angular.module('SPAngGetSiteTemplate', []); 
        myAngApp.controller('SPAngGetSiteTemplateController', function ($scope, $http) { 
                method: 'GET', 
                url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/getavailablewebtemplates(1033)?$orderby=Title", 
                headers: { "Accept": "application/json;odata=verbose" } 
            }).success(function (data, status, headers, config) { 
                $scope.customers = data.d.results; 
            }).error(function (data, status, headers, config) { 

<div ng-app="SPAngGetSiteTemplate"> 
    <div ng-controller="SPAngGetSiteTemplateController" > 
        <table style="width: 100%;"> 
                <th style="width: 30%;">Title</th> 
                <th style="width: 65%;">Name</th> 
            <tr ng-repeat="customer in customers"> 
                <td style="">{{customer.Title}}</td> 

Enjoy SharePoint Coding!!!
Gaurav Goyal

Administrator is not able to change user’s picture in User Profile in SharePoint Admin Center

For some users Admin is able to change picture by going to User Profile -> Manage user profile option. But for some users , Admin ...