MODULES

Site search

Help visitors find published pages and content.

Back to modules
Included with the systemNo separate catalog listing at present
FoxCoreCMS
01 / FOXCORECMS

Overview

What it does

The module indexes site content and displays search results. Put the search field in the header or a separate section.

Where it helps

Particularly helpful as your blog, documentation, or services catalog grows.

Example from the demo template

This is a real placeholder from the FoXBuilder design. The system fills it with module output or current-page data; configurable instance labels are set in the admin panel.

<div class="header-search">[#site_search_form#]</div>
02 / FOXCORECMS

Where it helps

Searching published content on larger sites and documentation portals.

03 / FOXBUILDER

FoXBuilder demo example

FoXBuilder embeds the search form in the page header.

How to build it

  1. Create a module instance and choose its HTML template.
  2. Place [#site_search_form#] in the page template and bind the instance.
  3. Fill in content in the required languages.
  4. Open the demo page and check the result.

Template code

modules/site_search/templates/form/default.html

<form action="%action%" method="get" role="search">
  <input name="q" type="search" value="%query%" placeholder="%placeholder%">
  <button type="submit">%button%</button>
</form>

Page-template label

[#site_search_form#]