Wednesday, May 9, 2012

Page Layout with default webpart

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="LayoutWithWebPart" List="116"  Url="_catalogs/masterpage">
    <File Path="LayoutWithWebPart\LayoutWithWebPart.aspx" Url="LayoutWithWebPart.aspx" IgnoreIfAlreadyExists="TRUE" Type="GhostableInLibrary">
      <AllUsersWebPart WebPartZoneID="RightColumn" WebPartOrder="1">
     

        <![CDATA[
    <webParts>
  <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
    <metaData>
      <type name="VCSB.INTRANET.ViewArticlesInnerWebpart.ViewArticlesInnerWebpart, VCSB.INTRANET, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5c6b1aa174bc8565" />
      <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
    </metaData>
    <data>
      <properties>
        <property name="Title" type="string">ViewArticlesInnerWebpart</property>
        <property name="Description" type="string">My Visual WebPart</property>
      </properties>
    </data>
  </webPart>
</webParts>
      ]]>

      </AllUsersWebPart>
      <AllUsersWebPart WebPartZoneID="Part2" WebPartOrder="2">

        <![CDATA[
    <webParts>
  <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
    <metaData>
      <type name="VCSB.INTRANET.CongratulationInnerPageSingleWebPart.CongratulationInnerPageSingleWebPart, VCSB.INTRANET, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5c6b1aa174bc8565" />
      <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
    </metaData>
    <data>
      <properties>
        <property name="Title" type="string">CongratulationInnerPageSingleWebPart</property>
        <property name="Description" type="string">My Visual WebPart</property>
      </properties>
    </data>
  </webPart>
</webParts>
      ]]>
      </AllUsersWebPart>

    </File>
  </Module>
</Elements>

Friday, May 4, 2012

Custom Breadcrumb in sharepoint

To Create breadcrumb in sharepoint page or in page layout
paste this code in desired place

<asp:SiteMapPath SiteMapProvider="SPContentMapProvider" id="ContentMap"  SkipLinkText="" RenderCurrentNodeAsLink="true"  NodeStyle-CssClass="ms-sitemapdirectional" runat="server"/>
it will result as,

Creating Provider hosted app (sharepoint online) with local hosted IIS

The Pre-requires are as follows. 1. Office 365 Subscription 2. Visual Studio 2015 (Professional/Community/Enterprise Edition) With t...