In this short blog post I want to show you how to get a specific user property of the “current loged in user” and due to that, change a link on the masterpage.

I am going to change the text “teamoverview” into “workspace” and set the link from “/teams” to “/teams/<teamsite>”

Why I am doing this? Because I want to give the user the quickest way to access their teamsite from the startpage.

Masterpage before:

Get userproperty to change link in masterpage (en)_1

 

Masterpage after:

Get userproperty to change link in masterpage (en)_2

 

Lets go!

Open up SharePoint Designer and check out your Masterpage. Please copy the masterpage so in case you got a backup.

Edit the masterpage in advanced view and between the PlaceHolderMain:

Get userproperty to change link in masterpage (en)_3

 

paste the following script:

I tried to comment some parts of the script, to give you some information what it is doing.

That’s it. Hopefully you have now a better idea how to “get userproperty change link in masterpage”.

If you have questions, don’t be afraIT to comment and if you like it, share it 🙂

LEAVE A REPLY

Please enter your comment!
Please enter your name here