heimrichhannot / contao-search_plus
Extend the contao core search, to achieve more features like pdf search.
Installs: 1 031
Dependents: 0
Suggesters: 1
Security: 0
Stars: 1
Watchers: 10
Forks: 2
Open Issues: 0
Type:contao-module
Requires
- php: ~5.4 || ~7.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ^3.5.1 || ~4.1
- heimrichhannot/contao-haste_plus: >=1.2.0,<2-dev
- smalot/pdfparser: >=0.9,<1-dev
This package is auto-updated.
Last update: 2024-10-12 16:10:23 UTC
README
Notice: This bundle is not activly maintained anymore! Please refere to out 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: No needed anymore for contao 4.x from version 1.2.mod_search_simple
and mod_search_advanced
. In your mod_search
template you need to add <?php echo $this->form ?>
to output the correct search form template.
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.