Steps to create Article Pages in SharePoint 2010

Technical Approach Article Pages

Below are the steps to create Article Pages,

Requirement :

Sub Site>> Page Library>> Create New >> Page Item>> Page1

Story Number:

Task : 1 Create site columns if needed

Details: Note: there is a separate task for timezone column, do it last.

These new site columns are needed:

LocationFacts (html field)

LocationAddresses (html field)

LocationPhones (html field)

LocationOther (html field)

Latitude (text)

Longitude (text)

Add to PublishingSiteColumns in SP folder.

As sample, use existing site columns in the file.

Also look at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\PublishingResources and MSDN reference.

When testing (good point to test is after task 6) make sure your site columns shows in Site Actions > Site settings > Site columns of root site.

Story Number:

Task : 2 Create content type for front page

Details: Update: ct must also have these fields:

<FieldRef ID=”{6252D9D6-A295-4400-8B45-0E8C65BCDB75}” Name=”CountryNote” />

<FieldRef ID=”{99BDBE1D-4BCD-450F-A163-130B34147C45}” Name=”Country” />

Add new content type to SP folder using Add > New Item > Content Type.

Inherit from CTPublBase.

Use name it CTPublLocationItem

Use Elements.xml of CTPublSectionWelcome as a sample.

Content type must have these site columns:

PublishingPageContent

LocationFacts

LocationAddresses

LocationPhones

LocationOther

Latitude

Longitude

Add CTPublLocationItem to Publishing feature.

When testing (good point to test is after task 6) make sure your content type  shows in Site Actions > Site settings > Site content types of root site.

Story Number:

Task : 3 Create page layout for page

Details: Update: page layout must have this additional field:

<PublishingWebControls:EditModePanel runat=”server”>

<Taxonomy:TaxonomyFieldControl ID=”CountryFieldControl” FieldName=”Country” runat=”server”></Taxonomy:TaxonomyFieldControl>

</PublishingWebControls:EditModePanel>

Create new page layout for front page.

Put page layout in MdlPageLayouts.

Copy SectionWelcome.aspx and name it LocationItemWelcome.aspx.

Edit also Elements.xml as needed, using SectionWelcome there as a sample.

Make page layout’s field controls and web part zones as in user story and wireframe.

Remove all HTML from page layout.

When testing (good point to test is after task 6) make sure your page layouts Site Actions > Other Options > Page > Publishing Page.

Story Number:

Task : 4 Create publishing defaults feature

Details: Create new feature called PublDefaultsLocationItem.

Use PublDefaultsSection as a sample for feature name, description, scope etc.

In SP folder, create new module called MdlPagesLocationItem using  Add New Item > Module

Use MdlPagesSection as a sample (copy default.aspx and Elements.xml from it).

In Elements.xml, do content type binding for Location content type to Pages library.

In Elements.xml, create Location site welcome page as a file element inside a module element.

Story Number:

Task : 5 Create web template in SP folder for site

Details: Create web template called WTLocationItem in SP folder using Add New Item > Empty ELement.

Use WTSection as a sample for Elements.xml

Copy onet.xml from WTSection and modify as needed.

In onet.xml, set these properties:

Set allowed subsites of this site here (you may need to return to this later):

<Property Key=”AvailableWebTemplates” Value=”<your values here>”/>

Set allowed page layouts of this site here (you may need to return to this later):

<Property Key=”AvailablePageLayouts” Value=”<your values here>”/>

Add your publishing defaults feature create in previous tasks in place of this:

<!–Feature that creates site welcome page and possibly also other pages –>

<Feature ID=”<your feature id here>” > </Feature>

Finally add web template to WebTemplates feature.

When testing (good point to test is after task 6) make sure your web template shows in Site Actions > New Site.

Advertisements

2 thoughts on “Steps to create Article Pages in SharePoint 2010

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s