Tag Info

Hot answers tagged

5

Getting only the current user won't be enough to get user profile properties. You need to use the PeopleManager as well. Your code should look something like this: var context = SP.ClientContext.get_current() var web = context.get_web(); var user = web.get_currentUser(); var peopleManager = new SP.UserProfiles.PeopleManager(context); var personProperties = ...


3

Structural navigation is tightly coupled with the content and therefore it is hard to create friendly URLs. However, managed metadata navigation addresses this issue by providing central way to manage navigation, irrespective of location of content, which makes it easy to create friendly URLs. The only con, navigation will be managed by term store. You can ...


3

John Q: First you need to dig deeper into the field definition using SharePoint Manager 2013, and observe if property 'AllowGridEditing' exists? A: The property doesn't exist so give PowerShell a break ;) Why: In SharePoint 2013, client-side rendering (CSR) provides a way to control the output/design of your fields and set of controls by leveraging HTML ...


3

In SharePoint 2013, client-side rendering (CSR) provides a way to control the output/design of your fields and set of controls by leveraging HTML and JavaScript technologies for example how should the fields render in list views (edit, new or quick edit), search, list forms etc. Now, every field definition comes with JSLink property that can be overridden, ...


3

I'd like to quote myself on this reply I gave to a similar question What are the factors that govern the dicission of whether to choose publishing or collaboration (teamsite) template for new site collection? Site Pages (from the team site) contain Wiki Pages. Pages (from the publishing site features) contains Article pages and similar pages, that can be ...


2

please look at this link, it shows how to achieve what you're trying to do. using System; using Microsoft.SharePoint.Administration; namespace Test { class Program { static void Main(string[] args) { SPDiagnosticsService diagSvc = SPDiagnosticsService.Local; string ulsLogLocation = diagSvc.LogLocation; ...


2

You would need to create a site collection scoped feature that would create them and add them to the content type gallery if you are not going to use a content type hub. This makes upkeep much more complex, so I'd encourage the use of a hub if possible.


2

First I am assuming that you're using SharePoint 2013. I would suggest you to use SharePoint's Client Side Rendering Framework. I would suggest this blog to understand how to apply CSR. The code which you can write to modify column names is as below (I am currently modifying "Title"): (function () { function preTaskFormRenderer(renderCtx) { ...


2

First You need to install the Language packs for the extra language. I.E. if your base load is in English then you need the French Language pack to install on you SharePoint farm. you can get all LPs overe here: https://technet.microsoft.com/en-us/library/ff463597.aspx I think you need to plan the multilingual site collection. The multilingual user ...


2

@john You can try setting ReadOnlyField property of the field to True $field.ReadOnlyField = $True


2

If you have a page, "page1.aspx" in the pages library, it can be accessed via: http://site/pages/page1.aspx. But, perhaps you would rather be able to access it via: http://site/page1 The above would require some sort of routing table. This routing table could have been implemented in a variety of ways, but they happened to decide to use a term set for ...


2

The command below always helped me to take backup of entire farm. Backup-SPFarm -Directory C:\Backup -BackupMethod full -BackupThreads 10 -Force Source: here and here If you want a script which will take backup regularly, I'll suggest you to check this script. It's for SharePoint 2010 but I don't see any reason for it to not work with SharePoint ...


2

Alex, I think it's going to depend on when you need the recurring task to execute. If you're okay with it running on a timescale (e.g. hourly, daily, etc), you can use Timer jobs. If you need to be based on an activity (e.g. list item updates), then you'll need go with a workflow or event receiver. For a daily recurring task, you can go with a single Timer ...


2

Since I have to load the userprofile script, I had to use: SP.SOD.executeFunc('userprofile', 'SP.UserProfiles.PeopleManager', function() { var clientContext = new SP.ClientContext.get_current(); var personProperties = new SP.UserProfiles.PeopleManager(clientContext).getMyProperties(); clientContext.load(personProperties); ...


2

If you can whip up a console app and schedule it and it does the job - then great. I probably would rely on PowerShell. I prefer being able to monitor and alter scripts if needed without having to recompile or open up VS to make the edit. When working with data I've also used SSIS packages on SQL server. If you are running SharePoint locally you have an ...


1

Adding a server into does not required the down time at all. Because all the operations will be performed on the new server. But when it comes to configuring the services on server then may be you see the some down time. when you change the search topology this may cause the search outage but not farm outage. if you adding another WFE and using the ...


1

@Arsalan is correct. SHA-1 is being phased out. Google is also phasing this out as well, and Microsoft has said it will not support them after Dec 31, 2015. This basically correlates to 1024 bit encryption (SHA-1) and 2048 bit (SHA-2) encryption (SHA-2). Also note that you need to ensure all your intermediate and root certificates are updated. If you ...


1

Below script will upload file recursively from folder to document library if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null) { Add-PSSnapin Microsoft.SharePoint.PowerShell } Function UploadFiles($web,$path,$docLibrary) { $files = Get-ChildItem $path foreach ($file in $files) { if($file.GetType().Name -eq "DirectoryInfo") { ...


1

John, All of the examples I've found online tell you to use the Managed Navigation approach. I found a video tutorial and step-by-step instructions that are quite similar. Managed Metadata Navigation in SharePoint 2013 SharePoint 2013 – Navigation using Managed Metadata (Term Store)


1

You can get list of site collection in Office 365 using CSOM var token = TokenHelper.GetAppOnlyAccessToken("00000003-0000-0ff1-ce00-000000000000", tenantAdminUri.Authority, null).AccessToken; using (var clientContext = TokenHelper.GetClientContextWithAccessToken("https://yourtenant-admin.sharepoint.com", token)) { var tenant = new ...


1

That should work for most needs. You don't have some of the template features for the look and feel, and a lot of the advanced document management stuff isn't in Foundations, but basic document libraries are there and that works for most people's needs if they just want a repository.


1

The reasons to use content types rather than adding columns: If you have two disparate types of information in one list/library. ex: A list that has purchase requests for new employees and for new equipment. If you are going to use the same type of information on multiple sites/lists/libraries. ex: You have a content type that inherits from document that ...


1

Check in - check out feature in the document library needs to be turned OFF.


1

You can have a web application say http://yoursite and create two different site collection en and fr i.e http://yoursite/en and http://yoursite/fr and for the content, you can have a configure an event receiver which gets triggered whenever user adds a page to en site and adds that to the pages of fr site collection after changing values to french using ...


1

You can do that by edit the current view "Task Summary" and add your custom field, like this:


1

This feature is really useful if you want to control what should be publish on your site, this feature enable to use the content approval workflow. SharePoint includes a set of features that enables you to author and publish rich webpages for your intranet or Internet. These features are housed within the SharePoint Publishing Infrastructure and must ...


1

The SharePoint Server Publishing Infrastructure feature provides publishing functionality at the site collection level, Provides centralized libraries, content types, master pages and page layouts and enables page scheduling and other publishing functionality for a site collection. SharePoint Server Publishing feature provides publishing functionality at ...


1

I would suggest you to install Virtual Machine like VMWare WorkStation and then you have to install Microsoft windows server and Microsoft SQL after that SharePoint 2013. Personally I referred this blog when I was installing my SharePoint. You can do the same and make sure you are meeting the system requirements for SP2013. How to install it, please this ...


1

first , you need to decide on which version that you would like to have and then follow the msdn articles for latest 2013 version for hardware and software requirements. Reference msdn link you can also choose the version in the same article to get the understanding on pre-requisites.


1

The following example demonstrates how to create Document Set and set its properties: function createFolder(webUrl,listName,folderOptions) { var folderPayload = folderOptions; folderPayload['Title'] = folderOptions.Url.split('/').pop(); folderPayload['Path'] = folderOptions.Url.split('/').slice(0, -1).join('/'); //Create Folder ...



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