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

Introduction

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.

clip_image002

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

clip_image004

clip_image006

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.

clip_image008

clip_image010

Central Administrator

Step3: Go to Central Administrator and create a term hierarchy

clip_image011clip_image013

Create Metadata Column

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

clip_image015

clip_image017

Attach Metadata column to the Document Library

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

clip_image018clip_image020

Add a document in the document library

Step6: Add a document in the document Library

clip_image022

Enable Catalog

Step7: Enable the Document library as catalog.

clip_image024

Step8: Perform the Crawling Full

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

clip_image026

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

clip_image027clip_image029

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

clip_image031

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

clip_image032clip_image034

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.

clip_image036

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

clip_image038.

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

clip_image040

Step15:

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.

clip_image042

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

image

blog comments powered by Disqus

SharePoint Pals

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

Training

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 articles@sharepointpals.com 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 https://t.co/VxSi4QnNrC

Twitter January 15, 00:24
How To Open #SharePoint List Hyperlink Column In Modal #Popup Window https://t.co/EQ7HkoZDkX

Twitter January 15, 00:24
Quick Introduction To #Asp.NetCore And It’s Features https://t.co/zAXObHCFpH

Twitter January 15, 00:22
How To Configure #PerformancePoint Services To Use Secure Store In #SharePoint 2013 https://t.co/LEwnUoI7EY

Twitter January 15, 00:21
How To Block Or Disable #Office365 Services https://t.co/Yvp2VPFIRP

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