SharePoint 2013 – Add and Remove Link Items From Search Navigation Using PowerShell

Sunday, May 11, 2014

Here’s a quick tip on how to add link items to SharePoint 2013 search navigation and how to remove items from search navigation. Add Items: $sites=Get-SPsite http://testsite -Limit all | Get-SPweb $node1 = new-object -TypeName "Microsoft.SharePoint.Navigation.SPNavigationNode" -ArgumentList "Link1", "http://site/sites/Search/Pages/pageA.aspx", $true $node2 = new-object -TypeName "Microsoft.SharePoint.Navigation.SPNavigationNode" -ArgumentList "Link2", "http://site/sites/Search/Pages/PageB.aspx", $true $node3 = new-object -TypeName "Microsoft.SharePoint.Navigation.SPNavigationNode" -ArgumentList "Link3", "http://site/sites/Search/Pages/PageC.aspx", $true foreach ($web in $sites) { $web.Navigation.SearchNav.AddAsFirst($node1) $web.Navigation.SearchNav.AddAsFirst($node2) $web.Navigation.SearchNav.AddAsFirst($node3) } Remove items: $navItems=@(); $sites=Get-SPsite http://testsite -Limit all | Get-SPweb foreach($web in $sites){ $navs = $web.Navigation.SearchNav foreach ($nav in $navs) { $nodeid =$web.Navigation.GetNodeById($nav.Id) $idItems+=$nodeid write-host "add id...

How to Get Login Name and Display Name using SharePoint 2013 REST API

Wednesday, May 1, 2013

Working with REST API is quite simple and straight forward, for example when you need to fetch data from a list you can use the following JQuery Ajax code snippet: jQuery.ajax({ url: "http://YourSite/_api/web/lists/getbytitle('ListName')/items", type: "GET", headers: { "Accept": "application/json;odata=verbose" }, success: function(data, textStatus, xhr) { ...

Session at SharePoint Extreme 2013 Conference

Monday, March 18, 2013

Last week i gave a session about What’s new for WCM and Internet Sites in SharePoint 2013 at SharePoint Extreme 2013 Conference. I would like to thank everyone who attended my session and hope to see you soon.  My presentation on SlideShare. What’s new for WCM and Internet Sites in SharePoint 2013 Special thanks to Johnny Tordgeman for hosting a SharePoint 2013 development seminar at the SharePoint Extreme 2013 conference and helping me with this presentation.
no comments

A Cool New ‘Paste JSON As Classes’ Feature in ASP.NET Web Tools 2012.2 RC

Saturday, January 26, 2013

Great news for Web developers, With ASP.NET and Web Tools 2012.2 RC installed, you now have a great and easy tool for converting your JSON objects into C# or VB.NET classes. This feature uses Newtonsoft JSON parser to parse JSON text from clipboard. Once Newtonsoft JSON parser validates the clipboard data as valid JSON, then it will be converted into C# or VB.NET class depending on the selected file type. Here’s a simple example: A) Copy to clipboard your JSON object. { "link": "http://www.microsoft.com/Surface/en-US", "virtual": "Virtual Keyboard", "partial": " The magnesium panels are finished...

How To Create Custom Search Engine For SharePoint 2013 In Google Chrome

Tuesday, January 1, 2013

A great way to search something on your SharePoint 2013 site or any older version of SharePoint without the need of browsing to the site and start writing your search query cause Google Custom Search is doing it for you. Steps for Adding a Custom Search Engine A) Right click mouse on the address bar and choose “Edit Search Engine” B) You will need to fill 3 text boxes.  Add a new search engine – the name of the search engine, by default, Google Chrome uses the site’s domain name Keyword – use a Keyword that will be easy to remember like “SP” or...

How To Create A Windows 8 App For SharePoint Part 2 – The Development Stage

Sunday, September 30, 2012

  The Development Stage In my last post How To Create A Windows 8 App For SharePoint Part 1 – The Planning Stage we discussed about the reason I chose Windows 8 HTML5 as my development environment and why it’s the best and the most intuitive environment for SharePoint developers who plan to start creating Win8 apps. Today we will focus on developing our Win8 app and integrate it with SharePoint Online 2013. The app will serve as a search and use The new Search REST API to pull data from SharePoint 2013 Search engine (FAST) and display it in our app....

How To Create A Windows 8 App For SharePoint Part 1 – The Planning Stage

Saturday, September 15, 2012

The Planning Stage There’s a big buzz going on around Windows 8 app development, In my earlier post “Create a Metro Live Tile using MetroJS, JsRender and the new REST API” I showed how to create a metro live tile using html and JavaScript and today we continue exploring this subject area and create Windows 8 app that interacts with SharePoint. We will focus on Windows 8 HTML5 app, There are 4 main reasons why I chose to use HTML5 development in this example. A) SharePoint developers will feel much more comfortable around JavaScript and HTML rather then in XAML development. B) Leverage...

SharePoint 2013: Create a Metro Live Tile using MetroJS, JsRender and the new REST API

Saturday, August 11, 2012

Hi guys, One of the biggest changes made in SharePoint 2013 is the UI. And of course I’m talking about The Metro UI Style. We see it ,feel it and interact with it since Microsoft introduced Windows phone 7. and later on in Windows 8 etc... As stated on Wikipedia “A key design principle of Metro is better focus on the content of applications, relying more on typography and less on graphics ("content before chrome").” More and more websites are adopting the Metro UI Style, web sites like www.microsoft.com, www.touchality.com and www.mykindofphone.com. more examples you can find here. We will focus on the Metro...

Step by step example of creating SharePoint 2013 App using Napa office 365 development tool

Saturday, July 28, 2012

Hi guys, I will show you a simple example of creating an SharePoint app using Napa office 365 development tools. I will use office 365 enterprise preview. 1) First you need to register to office 365 enterprise preview, It’s easy, all you need to do is to fill the form and wait until you get your own SharePoint farm 2) when your site is ready to go, I will recommend to get the free “Napa office 365 development tools” app from the app store ,it’s like a small web version of Visual Studio so for this example you won’t need to download VS2012. All...