Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heimrichhannot/contao-search_plus

Extend the contao core search, to achieve more features like pdf search.
https://github.com/heimrichhannot/contao-search_plus

Last synced: about 1 month ago
JSON representation

Extend the contao core search, to achieve more features like pdf search.

Awesome Lists containing this project

README

        

# Search Plus

> **Notice:** This bundle is not activly maintained anymore! Please refere to out [Search Bundle](https://github.com/heimrichhannot/contao-search-bundle) for contao 4 and new features!

Extend the contao core search, to achieve more features like pdf search.

## Features

- pdf search
- filter pages for search frontend module
- Support Access-Control-Allow-Origin within be_rebuild_index.html5

### Dependencies

Don't worry, install via composer and all dependencies will be resolved like magic.

- [smalot/pdfparser] (https://github.com/smalot/pdfparser)

### PDF Search

- index pdf files that are referenced inside searched pages and must be locally (contao filesystem) stored
- parse pdf files with smalot/pdfparser
- make usage of meta information from tl_files to provide better file titles (consider language too)
- group the results in the result list
- select the search order (show pages first, show files first or by relenvance)

## Usage

### Install

Add following line to your composer.json required section:

"heimrichhannot/contao-search_plus" : "^1.0"

You can also add the package via commandline:

composer require heimrichhannot/contao-search_plus

### Templates

~~You need to add two templates: `mod_search_simple` and `mod_search_advanced`. In your `mod_search` template you need to add `form ?>` to output the correct search form template.~~ No needed anymore for contao 4.x from version 1.2.

### Settings

You can disable PDF search on the Contao setting page. If enabled, an option to set the maximum pdf size to parse, is given.

## Credits

The contao 4.x compatibility changes were sponsored by fanthomas communications.