Search again widget

mark_meijers's Avatar

mark_meijers

20 Aug, 2012 09:51 AM

I would like to put the "search again" part thats placed above the search results in the sidebar (i created a position for that duuh).

I figured out that I need this code:

<div class="inner">
    <header class="hd">
        <h4>{$lblSearchAgain|ucfirst}</h4>
    </header>
    <div class="bd">
        {form:search}
            <p{option:txtQError} class="errorArea"{/option:txtQError}>
                <label for="q">{$lblSearchTerm|ucfirst}<abbr title="{$lblRequiredField}">*</abbr></label>
                {$txtQ} {$txtQError}
            </p>
            <p>
                <input id="submit" class="inputSubmit" type="submit" name="submit" value="{$lblSearch|ucfirst}" />
            </p>
        {/form:search}
    </div>
</div>

BUT WHERE DO I PUT IT?

  1. Support Staff 1 Posted by John on 20 Aug, 2012 12:36 PM

    John's Avatar

    This is template code so it needs to be in the tpl file

  2. 2 Posted by mark_meijers on 20 Aug, 2012 01:55 PM

    mark_meijers's Avatar

    no shit sherlock. but how do i get it in a different position (i.e. the sidebar of the search results page)?

  3. Support Staff 3 Posted by tijs on 11 Nov, 2012 12:17 PM

    tijs's Avatar

    Open the page in the page-module and drag to block to the correct position.

  4. tijs closed this discussion on 11 Nov, 2012 12:17 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac