only My site

Thursday, June 13, 2013

Bootstrap CSS framework - faster and easier web development

Sleek, Intuitive and powerful front-end framework for faster and easier web development

http://twitter.github.io/bootstrap/base-css.html#typography
 

Tuesday, June 4, 2013

Apply Theme for Publishing site


public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
   ApplyTheme(properties);
}
/// <summary>
/// Sets master page and css properties for the site collection
/// </summary>
/// <param name="properties"></param>
private void ApplyTheme(SPFeatureReceiverProperties properties)
{
SPSite site = (SPSite)properties.Feature.Parent;
if (site != null)
{
// System Master Page
Uri masterUri = new Uri(site.RootWeb.Url + "/_catalogs/masterpage/v4.master");
site.RootWeb.MasterUrl = masterUri.AbsolutePath;
// Publishing Master Page
Uri customMasterUri = new Uri(site.RootWeb.Url + "/_catalogs/masterpage/mycustom.master");
site.RootWeb.CustomMasterUrl = customMasterUri.AbsolutePath;
//logo and css
site.RootWeb.SiteLogoUrl = "/_layouts/MyProjectName/Images/mycustomlogo.jpg";
site.RootWeb.AlternateCssUrl = "/Style Library/MyProjectName/css/mycustomcss.css";
site.RootWeb.Update();
}
}

Wednesday, May 29, 2013

SPWebApplication.Lookup Method

Finds the Web application that is located in the specified path.

static void Main(string[] args)
{
     SPWebApplication app = SPWebApplication.Lookup(new Uri("http://spdev2010:1000"));
}

Saturday, May 25, 2013

SharePoint 2010 - SPMetal and Multi list view using Visual webpart



SPMetal.exe resides in "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN" folder.

Example

SPMetal.exe /web:http://YOURSITE /code:SiteEntities.cs 

Friday, May 24, 2013

Sharepoint 2010 Content Type Hub - Publish and subscribe

SharePoint 2010 now introduces a new feature called Content Type Hubs.Content Type Hub is a central location where you can manage and publish your content types – so now web applications can subscribe to this hub and pull down the published content types from the hub. Even receive updates on the published content types!

Some of the useful links are

http://www.sharepoint4developers.net/en-nz/post/sharepoint-2010-content-type-hub.aspx
http://chakkaradeep.com/index.php/sharepoint-2010-content-type-hubs-publish-and-subscribe-to-content-types/
http://blogs.msdn.com/b/chaks/archive/2011/09/04/web-templates-and-content-type-publishing.aspx


Tuesday, April 23, 2013

Sharepoint 2013 New Feature : Social Computing