Cross site publishing for Page Library in SharePoint 2013


Arunraj Venugopal
SharePoint Architect
Published On :   31 Mar 2014
Visit Count
Today :  6    Total :   19292



In this article, let us discuss about configuring Cross Site Publishing for the Page Library in SharePoint 2013

Step 1: Create a site collection in any of the web application. The template for the site collection should be Product Catalog

clip_image002

clip_image004

Step 2: Create a site Collection in another web application. The template for the site collection be publishing site.

clip_image006clip_image008

Step3: Go to Central Administrator and create a term hierarchy

clip_image009clip_image011

Step4: Go to site setting and click site content type. Create a site content type.

clip_image013

Step5: Filter Page Layout Content Types and click on it.

clip_image014clip_image016

clip_image018

Step6: Add the site columns to the article page content type by selecting Page layout column type.

clip_image020

clip_image022

clip_image024

Note: Site columns should be created for all the existing data types including Managed Metadata type.

During the creation of managed metadata column, select termset in the site navigation column.

Step7: Go to page library, add the newly created content type and change the default content type from article page to customArticleContenttype.

clip_image026

Step8: Create two article pages by selecting article page layout.

clip_image028

Add content in page content. Web part content including JavaScript is not getting reflected in the publishing site.

clip_image030

clip_image032

Add content in page content. Web part content including JavaScript is not getting reflected in the publishing site.

clip_image034

Step9: Edit page properties and change the content type from article to newly added content type.

clip_image036

Step10: Go to Term field in the edit form, select the term for which the page will be reflected in the publishing site.

clip_image038

Step11: Enable the catalog setting for the page library.

clip_image039clip_image041

Enable the anonymous access, select the metadata field from available fields and navigation hierarchy field.

clip_image043

Step12. Publish the page.

Step13. Perform the incremental crawling in the central administration.

clip_image045

Step14. Go to the publishing site collection and click site setting. Select Manage catalog connection setting

clip_image047

Click Connect to a catalog

clip_image049

clip_image051

Click connect against the site collection in which the pages are created.

clip_image053

clip_image055

Step15. The categorypage and the cateogryitem page are created once the connection went on successfully.

clip_image057

Step16: Go to site content to ensure that the pages are created.

clip_image059

Step17: Go to site setting and click Navigation to map the term with the category page and category item page respectively in the term driven tab.

clip_image061

Step 18: In the Left Navigation, click the term for which page is attached to it.

clip_image063

Step 19: Click the link to see the page attached to that term in the authoring site.

clip_image065

Note: In the default page layout attached to the category (term).aspx would show additional columns details on the page. To hide those details, the below steps to be followed.

1. Edit the page

2. Change the default page layout to any one of the available layouts.

3. Add Catalog Item Reuse webpart and edit it.

4. Select the PublishingpagecontentowsHtml in the Managed Properties field after selecting the change managed properties checkbox.

5. Save it.

Remember: Content and JavaScript in the webpart don’t get populated in the publishing site as there is not code in the source view since the webpart get removed along with the internal content when it got published.

Display Template & Item Template customization will be posted in the separate article.

Categories