-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from pagemachine/typo3v9-conditions
Replaced deprecated TypoScript conditions for TYPO3v9
- Loading branch information
Showing
7 changed files
with
148 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
plugin.tx_searchable { | ||
view { | ||
# cat=plugin.tx_searchable/file; type=string; label=Path to template root (FE) | ||
templateRootPath = EXT:searchable/Resources/Private/Templates/ | ||
# cat=plugin.tx_searchable/file; type=string; label=Path to template partials (FE) | ||
partialRootPath = EXT:searchable/Resources/Private/Partials/ | ||
# cat=plugin.tx_searchable/file; type=string; label=Path to template layouts (FE) | ||
layoutRootPath = EXT:searchable/Resources/Private/Layouts/ | ||
} | ||
persistence { | ||
# cat=plugin.tx_searchable//a; type=string; label=Default storage PID | ||
storagePid = | ||
} | ||
settings { | ||
# cat=plugin.tx_searchable/enable/a; type=boolean; label=Include jQuery (disable this if you already have jQuery in your page) | ||
includejQuery = 0 | ||
|
||
# cat=plugin.tx_searchable/enable/a; type=boolean; label=Include jQuery Autocomplete (used for Autosuggest loading) | ||
includejQueryAutocomplete = 1 | ||
|
||
# cat=plugin.tx_searchable/enable/a; type=boolean; label=Include Mustache (Used for live search result templating) | ||
includeMustache = 1 | ||
|
||
# cat=plugin.tx_searchable//a; type=int+; label=Search result page | ||
resultPage = | ||
# cat=plugin.tx_searchable//a; type=int+; label=Results per page | ||
search.resultsPerPage = 10 | ||
|
||
# cat=plugin.tx_searchable/enable/a; type=boolean; label=Show pre-rendered result preview | ||
result.showPreview = 1 | ||
|
||
# cat=plugin.tx_searchable/enable/a; type=boolean; label=Show highlighted text snippets in result | ||
result.showHighlighting = 0 | ||
|
||
# cat=plugin.tx_searchable/enable/a; type=boolean; label=Show Suggestions ("did you mean") | ||
result.showSuggestions = 1 | ||
|
||
# cat=plugin.tx_searchable/enable/a; type=boolean; label=Load completion suggestions ("autosuggest") | ||
features.completionSuggest = 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
plugin.tx_searchable { | ||
view { | ||
templateRootPaths.0 = {$plugin.tx_searchable.view.templateRootPath} | ||
partialRootPaths.0 = {$plugin.tx_searchable.view.partialRootPath} | ||
layoutRootPaths.0 = {$plugin.tx_searchable.view.layoutRootPath} | ||
|
||
pluginNamespace = tx_searchable | ||
} | ||
persistence { | ||
storagePid = {$plugin.tx_searchable.persistence.storagePid} | ||
} | ||
settings { | ||
includejQuery = {$plugin.tx_searchable.includejQuery} | ||
includejQueryAutocomplete = {$plugin.tx_searchable.includejQueryAutocomplete} | ||
|
||
resultPage = {$plugin.tx_searchable.settings.resultPage} | ||
|
||
search { | ||
resultsPerPage = {$plugin.tx_searchable.settings.search.resultsPerPage} | ||
} | ||
result { | ||
showPreview = {$plugin.tx_searchable.settings.result.showPreview} | ||
} | ||
} | ||
features { | ||
requireCHashArgumentForActionArguments = 0 | ||
} | ||
} | ||
|
||
plugin.tx_searchable_searchbar < plugin.tx_searchable | ||
plugin.tx_searchable_searchbar { | ||
settings { | ||
features { | ||
completionSuggest = {$plugin.tx_searchable.settings.features.completionSuggest} | ||
} | ||
} | ||
} | ||
|
||
plugin.tx_searchable_results < plugin.tx_searchable | ||
plugin.tx_searchable_results { | ||
settings { | ||
features { | ||
//@todo rename constants in V2 | ||
highlighting = {$plugin.tx_searchable.settings.result.showHighlighting} | ||
termSuggest = {$plugin.tx_searchable.settings.result.showSuggestions} | ||
} | ||
} | ||
} | ||
|
||
|
||
module.tx_searchable { | ||
settings < plugin.tx_searchable.settings | ||
persistence < plugin.tx_searchable.persistence | ||
view < plugin.tx_searchable.view | ||
} | ||
|
||
page.includeCSS.searchable = EXT:searchable/Resources/Public/Css/searchable.css | ||
|
||
# Include JQuery if activated | ||
[{$plugin.tx_searchable.settings.includejQuery} == 1] | ||
page.includeJSFooterlibs.jQuery = EXT:searchable/Resources/Public/JavaScript/jquery-3.2.1.min.js | ||
[global] | ||
|
||
# Include Autocomplete if activated | ||
[{$plugin.tx_searchable.settings.includejQueryAutocomplete} == 1] | ||
page.includeJSFooter.jQueryAutocomplete = EXT:searchable/Resources/Public/JavaScript/jquery.autocomplete.min.js | ||
[global] | ||
|
||
# Include mustache if activated | ||
[{$plugin.tx_searchable.settings.includeMustache} == 1] | ||
page.includeJSFooterlibs.mustache = EXT:searchable/Resources/Public/JavaScript/mustache.min.js | ||
[global] | ||
|
||
page.includeJSFooter.URI = EXT:searchable/Resources/Public/JavaScript/URI.js | ||
page.includeJSFooter.searchable = EXT:searchable/Resources/Public/JavaScript/searchable.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.