subugoe / typo3-find

TYPO3 extension providing a frontend for Solr indexes.
GNU General Public License v2.0
16 stars 20 forks source link

Separating search slot from result page #157

Closed AppWerft closed 5 years ago

AppWerft commented 5 years ago

At the time all the find-stuff runs on same page (pid). In our project we plan a search slot on one page and the result on other. For the first page (with slim slot) I built a new template with embeded partial Form/Form.html. A new ts-property (setting.jumpToPage) prepares the new functionality.

My question: how I can feed the action property with this new stuff? Currently I'm using 'index' for it. But how I can configure the new pid?

AppWerft commented 5 years ago

Solved. The way:

  1. Changing template (removing superfluous components) plugin.tx_find.view.templateRootPaths.20 = EXT:hosfindfacetviews/Resources/Private/Templates/Searchslot/

  2. adding new property: plugin.tx_find.settings.jumpToPage = 42

  3. 
    <f:form name="c{config.uid}-form"
                method="get"
                action="index"
                section="{settings.jumpToID}"
                pageUid="{settings.jumpToPage}"> 
    …
    </f.form>