Thursday, August 15, 2013

Custom breadcrumb control

Channels in SP 2013

Remove tables from webpart zones

Measure performance using SPMonitoredScope

Friday, August 9, 2013

SharePoint get names of all lists in a site

CAML Query builder

Search contents in a sharepoint site

There are several ways to fetch data from sharepoint 2010. Below are few of the most standard ones, however it is worth mentioning that the list does not include client object model or web services which are equally important aspects.

These methods can be used for:
  1. Execute search queries
  2. Get enumeration of list items, documents, lists, pages, etc.
  3. Get navigation structure either with hidden objects included or without them
  4. Iterate through all contents in SharePoint 2010 site
Overview
http://www.codeproject.com/Articles/638734/Basics-of-Sharepoint-Search

Using search API
http://social.technet.microsoft.com/wiki/contents/articles/18202.using-the-keywordquery-class-to-search-sharepoint-content.aspx
http://msdn.microsoft.com/en-us/library/ms544561%28office.12%29.aspx
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx

Using site data query
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.webs.aspx
http://www.pointsharepoint.com/2008/08/spsitedataquery-crosslistqueryinfo.html
        --- from a single list
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f54cdcd1-d2a3-470e-a939-835934e801c4/using-spsitedataquery-to-pull-items-form-specific-lists

Using CrossListQueryCache
http://donahoo-development.com/index.php/2010/04/16/crosslistqueryinfo-and-crosslistquerycache/
 http://bloggingabout.net/blogs/bas/archive/2009/03/27/using-the-crosslistqueryinfo-and-crosslistquerycache.aspx
http://sharepoint.nailhead.net/2008/04/musing-on-crosslistquerycache-class.html
http://donahoo-development.com/index.php/2010/04/16/crosslistqueryinfo-and-crosslistquerycache/

Using ContentByQueryWebPart and CrossListQueryInfo and CrossListQueryCach
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.crosslistquerycache.aspx

SharePoint query classes
http://purunep.wordpress.com/2012/04/26/sharepoint-query-classes-and-where-to-use-them/
http://extreme-sharepoint.com/2012/07/17/data-access-via-caml-queries/

SharePoint 2013
http://code.msdn.microsoft.com/office/Query-Search-with-the-372139b5

SPChangeQuery
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spchangequery.aspx


Wednesday, August 7, 2013

Create content types in VS

http://msdn.microsoft.com/en-us/library/gg295290%28v=office.14%29.aspx
http://msdn.microsoft.com/en-us/library/ff648024.aspx
http://leedale.wordpress.com/2009/01/20/creating-an-enhanced-rich-text-field-in-your-sharepoint-content-types/
http://stackoverflow.com/questions/2172714/deploying-content-type-with-publishing-html-field-by-feature-saving-content-not
http://sharepoint-ss.blogspot.co.uk/?_sm_au_=iVVWSNbsjQF5kPbs
http://harishnagalapur.wordpress.com/

Add-in to create page layout from custom content type
http://visualstudiogallery.msdn.microsoft.com/990bd0c8-a55b-4643-a35d-88136594c3d9/

referenced here
 http://rburgundy.wordpress.com/2010/05/21/sharepoint-2010-create-page-layout-based-on-a-custom-content-type-in-visual-studio-2010/

First four characters of the field name must be alphabets
http://www.dannyhansen.nl/sharepoint/sharepoint-2010/first-character-sharepoint-2010-internal-field-name-replaced-with-its-hexadecimal-code

Creating content types programetically
http://sharepointdragons.com/2012/04/10/content-type-galore/

Script to change multiline textbox mode
http://chweber.wordpress.com/tag/sharepoint-2010/

SharePoint OOTB field types
http://sharpointpractice.blogspot.co.uk/2011/08/sharepoint-field-types-elementsxml.html?_sm_au_=iVVpRKFRLF7qMSnQ

Fieldref element in the content type
http://msdn.microsoft.com/en-us/library/aa543225.aspx

Jquery Image animations

Monday, August 5, 2013

Apply CSS only to IE

To apply css file only for IE use this tag

<%-- Added a version number to force refresh --%>

<!--[if lt IE 9]>
        <link rel="stylesheet" type="text/css" media="screen" href="/_layouts/Myfeature/css/MyIEStyles.css?v=5" />
<![endif]-->


Thursday, August 1, 2013

Subsites are sorted in global navigation

After creating a custom master page where subsite titles were automatically sorted alphabetically in global navigation menu and pulling out my hair for almost 3 hours I realised that the order can be changed in Site Settings -> Navigation page. Hmmm .. need to take a coffee break :-)

Sharepoint 2010 custom navigation provider

Created a custom navigation provider using this link

http://code.msdn.microsoft.com/office/SharePoint-2010-Developing-5f0e73c2

but it retrieves all nodes from the root web in site collection so I had to configure the SiteMapDataSource object to show nodes only from current site as below



<asp:SiteMapDataSource ShowStartingNode="true" SiteMapProvider="MyCustomSiteMapProvider"
                                                ID="topSiteMap" runat="server" StartFromCurrentNode="true" StartingNodeOffset="0" />

Secure micro services using jwt and ocelot

  Secure Microservices Using JWT With Ocelot in .NET Core (code-maze.com)