News Search Configuration
Used to configure the News Search
How to use
- Add a Publish to One File navigation object for the JSON Source
- Select the Terminalfour PHP Search Module PHAR file from the Media Library (this has been uploaded to folder Categorised > mdx.ac.uk > Site Assets > T4 Modules > PHP Search) media ID: 11409
- Enter a number for Max Results per Page, this controls how many News Articles are shown per page in the search results
The News Search Configuration has no visible output on the page. Results are displayed using the PHP Search View content type, and the Masthead is displayed using the News Search Masthead content type.
Content Type Details
ID: 478
Name: News Search Configuration
Description: Content to configure the News Search.
Minimum user level: Administrator
Content Type Elements Details
Name | Description | Size | Type | Required |
---|---|---|---|---|
Name | The Name element | 80 Characters | Plain Text | Yes |
JSON Source | Add the navigation asset for the news article JSON | 80 Characters | Plain Text | Yes |
PHP Search Library | Choose PHP Main Library PHAR file | N/A | Media | Yes |
Max Results per Page | Number out results to output before pagination | N/A | Whole Number | Yes |
Example
See News Search.