Content Hub Content Types
There are three content types required for the Content Hub PHP Search:
Content Hub - Search Configuration
This content type should only be used once per search.
This content type has 3 elements.
- JSON Source - this is used to reference a JSON file created by a navigation object (id: 2051). This file is populated by instances of the Content Hub Article content type.
- Search Library - this points to a PHAR file in media library that provides the logic for the search.
- Max Results per Page - a user may enter a number here to control the number of results that display per page.
Content Hub - Search View
This content type has 4 elements.
- PHP Search Config Link - the section where the Search Configuration content type exists must be selected.
- Position in page - where should the view output in the HTML. 3 choices - Main, Sidebar, Home.
- View - select the relevant PHP view in the media library.
- Options - allows additional options to be set for the search.
Content Hub - Article