Creating a catalog document library

The cross-site publishing features work ideally with list content. However, it is possible to create catalog libraries. In this recipe, we will add a new pages library to our product catalog site created in the Creating a product catalog authoring site collection recipe. In addition, we will publish the pages library as a catalog library.

The product catalog site template does not provide the pages library template in the list of items that can be added to the site. As such, we will create a document library and turn it into a pages library.

How to do it...

Follow these steps to create a catalog library:

  1. Navigate to the product catalog site in your preferred web browser.
  2. Select Site contents from the Settings menu.
  3. Click on add an app as shown in the following screenshot:
    How to do it...
  4. Select Document Library as shown in the following screenshot:
    How to do it...
  5. Provide a name for the library, Product Documents, for example, as shown in the following screenshot:
    How to do it...
  6. Click on the Create button.
  7. Navigate to the new document library.
  8. From the Library tab on the ribbon, select Library Settings.
  9. Select Advanced settings from the General Settings section as shown in the following screenshot:
    How to do it...
  10. Set Allow management of content types? to Yes. Have a look at the following screenshot:
    How to do it...
  11. Click on OK.
  12. Select Add from existing site content types from the Content Types section:
    How to do it...
  13. Add the Basic Page content type as shown in the following screenshot:
    How to do it...
  14. Click on OK.
  15. Select the Document content type from the Content Types section:
    How to do it...
  16. Select Delete this content type from the Settings section:
    How to do it...
  17. Select Create Column from the Columns section.
  18. Enter category for the Column Name.
  19. Select Managed Metadata for the type.
  20. Set Require that this column contains information to Yes.
  21. Under Term Set Settings, navigate to and select our Widgets term set.
  22. Click on OK.
  23. Navigate to the document library and select New Document from the Files tab on the ribbon.
  24. Enter WidgetASpecs as the Name and then click on Create:
    How to do it...
  25. Edit the page and provide some text.
  26. From the PAGE tab on the ribbon, select Edit Properties as shown in the following screenshot:
    How to do it...
  27. Select a term for the category:
    How to do it...
  28. Click on Save.
  29. Navigate to the document library.
  30. Check-in the newly created page.
  31. Select Library Settings from the Library tab on the ribbon.
  32. Under General Settings, select Catalog Settings.
  33. Check the Enable this library as a catalog checkbox.
  34. Click on Enable anonymous access and then click on Make Anonymous.
  35. Add Category and Title to the Selected Fields list for Catalog Item URL Fields.
  36. Select Category as the column to categorize items for navigation and click on OK.

How it works...

In a similar fashion to our Products list, the document library will be made available as a catalog library through the search services once it has been crawled. Using a catalog library may not prove as useful as a catalog list. By default, the properties of a catalog library item will be displayed in the consuming site, not the document itself. Additional customization would be required in order to retrieve the documents themselves through a catalog connection. For more information on catalog libraries, refer to http://technet.microsoft.com/en-us/library/jj656774.aspx.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.73.127