SharePoint Pals
 | Sign In
Cross site publishing for Document library.
by Arunraj Venugopal 8 May 2014
SharePoint Developer
Today  :   3     Total  :    15648


Cross site publishing for Page Library

Cross-site publishing feature is used to store and maintain content in one or more authoring site collections and display the content in one or more publishing site collections. Cross-site publishing will make life easy for you as it:

  • Can be used across site collections, web applications, and even across farms.
  • Separates content authoring from branding and rendering, meaning how you author content has nothing to do with how it is displayed to users.
  • Allows you to mix pages and catalog content.

How does cross-site publishing work?
Cross-site publishing uses search technology to retrieve content. Here's how it works in four simple steps:

  1. Create content in libraries and lists in a site collection where cross-site publishing is enabled. Enable these libraries and lists as catalogs.
  2. Crawl the content in your catalog-enabled libraries and lists. This will add the catalog content to the search index.
  3. Add one or more Search Web Parts to the site collections where you want to display your catalog content.
  4. When users view a page, the Search Web Parts issue queries to the search index. Query results are returned from the search index, and shown in the Search Web Parts.


Changing content in an authoring site collection will be reflected across all publishing site collections that are using that same content. The following mapping are supported in the cross site publishing

· Number of Authoring sites to number of publishing sites (N to N)

· One Authoring site to one Publishing site

· One Authoring site to number of publishing sites.

· Number of authoring sites to one publishing site.

Create a site collection “Author”

Step1: Create a site collection “Author” using Product Catalog in a web application



Create a site collection “PublishDoc”

Step2: Create a site collection “PublishDoc” using Publishing Site in a web application which should be different from the web application in which the author site is created.



Central Administrator

Step3: Go to Central Administrator and create a term hierarchy


Create Metadata Column

Step4: Go to site setting in the author site to create Metadata Column; “DocMetadata”



Attach Metadata column to the Document Library

Step5: Go to Document library in the authoring site and add metadata column to it.


Add a document in the document library

Step6: Add a document in the document Library


Enable Catalog

Step7: Enable the Document library as catalog.


Step8: Perform the Crawling Full

Step9: Go to site setting of the PublishDoc site and click Manage Catalog Connection. Click Connect to a Catalog


Step10: Click Connect against the catalog Name for which the connection to be done.


Step11: Select Termset “Browse by” in the Root term of hierarchy and click okay.


Category page and CategoryItem page got created once the connection is enabled by clicking ok.


Step12: click on Navigation in the site setting in the publishing site. Change the setting as per the screen below and select Sitemap termset and then click ok.


Map Category & CategoryItem Pages

Step13: Click on Term Store Management link in the publishing site to map the Category page CategoryItem page to each term in the sitemap termset


Select the Category page and CategoryItem page for all the terms by click browse button in the Term Driven Pages tab and click save.

Note: In this example, ther term ‘Batter Finder” Mapped to Termset document in the document library using DocMetadata column. So I am navigation till the end of the termset in the publishing site and then edit the page to configure Category Page.

Edit Category Page & Configure Search Content Webpart



15.1 Choose two lines template in the Item Dropdown field under Display Template.

15.2 Expand Property Mappings and select checkbox of “Change the mapping of Managed”

15.3 Select Original Path, Title & DocumentLink in the respective field and click ok.


Note: To bring the exact document name, the Name column (Link with Filename: ”LinkwithFileNameNoMenu” (internal name)) must be mapped to managed properties and performed Crawling Full. The documentLink is managed properties in this example.

The output is


blog comments powered by Disqus

SharePoint Pals

SharePoint Pals, a community portal for SharePoint developers, Administrators and End Users. Let's join hands and share the point together.
Read this on mobile


Angular Js Training In Chennai
Advanced Angular Js training with real world developer scenarios
Angular Js, Web Api and Ionic for .Net Developers
All in one client side application development for .Net developers
Angular Js For SharePoint Developers
Get ready for the future. Its no more just C#

Get Connected

SharePoint Resources

SharePoint 2013 and 2010 Web Parts
Free Web Parts with Source Code for SharePoint Community

SharePoint 2013 Books and Tutorials
Collection of free SharePoint 2013 books and tutorials (eBooks, pdfs)

Supported By

Contribute your article and be eligible for a one month Free Subscription for Plural Sight. The Author of the most popular New Article (published in the previous month) will be awarded with a Free One month Plural Sight Subscription. Article can be sent to in a word document.

Related Resources

Recent Tweets

Twitter January 15, 00:25
How To Enable Target Value And Actual Value In #D3 Gauge Chart

Twitter January 15, 00:24
How To Open #SharePoint List Hyperlink Column In Modal #Popup Window

Twitter January 15, 00:24
Quick Introduction To #Asp.NetCore And It’s Features

Twitter January 15, 00:22
How To Configure #PerformancePoint Services To Use Secure Store In #SharePoint 2013

Twitter January 15, 00:21
How To Block Or Disable #Office365 Services

Follow us @SharePointPals
Note: For Customization and Configuration, CheckOutRecent Tweets Documentation