Question: The extension [ke\_search](https://typo3.org/extensions/repository/view/ke_search) has a search field plugin that I want to insert into my fluidtemplate and show on every page. I am very new in this and don't know how to start. Any help is appreciated.

Answer: 
In general you have three possibilities to include special content in all your pages:

1. put the HTML hardcoded in your template (typoscript, marker, fluid)
2. use a typoscript object which can be inserted in your template
3. use typoscript to render a special CE on a special page
4. use a special column in your (BE) page layout, where the content is inherited to subpages

Solution 1 has the drawback of being very static and you might miss the opportunity to configure dynamically (e.g. links, spamprotection, ...)

Solution 2 could be complicated if you want a plugin and the plugin can not be configured by pure typoscript (or the configuration collided with the configuration of the plugin in the main content)

Solution 3 needs a special (unvisible) page where the CE is stored and can be edited. In your TS you render it with the CONTENT object and use a hard coded uid. You need to remember that special place and special CE. (an editor might 'replace' the CE and wonder why it goes missing)

Solution 4 enables you to use 'normal' editor functionality (configure the plugin as a CE), but might cost some more rendering time because of the sliding and you need to define a special column with additional handling.
There is on more option if you only want the search input but no results e.g. in a header or footer. I could only test this in a TYPO3 11.5 with indexed\_search though! The general approach might also work with ke\_search.

My TypoScript setup:

```
plugin.tx_indexedsearch.settings {
    targetPid = 17
    displayAdvancedSearchLink = 0
}

lib.search = FLUIDTEMPLATE
lib.search{
    file = EXT:mysitepackage/Resources/Private/Partials/IndexedSearch/Form.html
    settings < plugin.tx_indexedsearch.settings
}

// Custom templates for indexed search.
plugin.tx_indexedsearch.view {
    templateRootPaths {
        0 = EXT:indexed_search/Resources/Private/Templates/
        10 = {$plugin.tx_indexedsearch.view.templateRootPath}
        20 = EXT:mysitepackage/Resources/Private/Templates/IndexedSearch/
    }

    partialRootPaths {
        0 = EXT:indexed_search/Resources/Private/Partials/
        10 = {$plugin.tx_indexedsearch.view.partialRootPath}
        20 = EXT:mysitepackage/Resources/Private/Partials/IndexedSearch/
    }
}

```

Then I copied `public/typo3/sysext/indexed_search/Resources/Private/Partials/Form.html` to my folder `public/typo3conf/ext/mysitepackage/Resources/Private/Partials/IndexedSearch/Form.html`.

In the copied file you have to add some attributes to the form tag: `extensionName="IndexedSearch"`, `pluginName="pi2"`and `controller="Search"` so that in the end the form tag looks like this:

```
<f:form action="search" method="post" pageUid="{settings.targetPid}" extensionName="IndexedSearch" pluginName="pi2" controller="Search">

```

Now you can add this to any fluid template to add a search input:

```
<f:cObject typoscriptObjectPath="lib.search" />

```