sunzinet / sz-quickfinder
SzQuickfinder - Quickfinder Plugin from SUNZINET GmbH
Installs: 25 762
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Type:typo3-cms-extension
Requires
- php: ^7.4 || ^8.0
- typo3/cms-backend: ^11.5
- typo3/cms-core: ~11.5.0
- typo3/cms-extbase: ~11.5.0
- typo3/cms-extensionmanager: ~11.5.0
- typo3/cms-filemetadata: ~11.5.0
- typo3/cms-fluid: ~11.5.0
- typo3/cms-install: ~11.5.0
Requires (Dev)
README
Installation
- Run
composer req sunzinet/sz-quickfinder
- Activate sz-quickfinder in the Extens**ionmanager
- Include TypoScript
- Include sz-quickfinder in your template. Example:
lib.contents {
pageSearch =< lib.tx_szquickfinder
}
Settings:
All settings can be overridden in 'customSearch' section.
Important notes:
It's required to give a data-attribute to the body-tag called "data-languid" with the current sys_language_uid to make multilingualism work.
page {
bodyTagCObject = COA
bodyTagCObject {
10 = TEXT
10.value = default
10.stdWrap.noTrimWrap = |language-| |
stdWrap.trim = 1
stdWrap.dataWrap = <body class="|" data-languid="{sitelanguage:languageId}">
}
}
Known problems:
- Autocomplete doesn't work correctly on detail pages (e.g. tx_news).
Workaround: Set
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFoundOnCHashError'] = false
- Search won't be executed on any page if
pageNotFoundOnCHashError
activated. Use$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters']
PHPUnit Tests:
composer install ./vendor/bin/phpunit -c Tests/phpunit.xml
Todos:
- Redesign interfaces
for example:
- interface SearchResult
- interface PageResult implements SearchResult
- interface FileResult implements SearchResult
- interface NewsResult implements SearchResult