Skip to Content
Site setup

Site search

The visitor search window: where it opens, what it finds, which modules add their own results and where to configure it.

A visitor types a nickname, a page title or a SteamID and jumps straight to the profile, page or menu item they want. Search is built into the engine and is on right after installation, guests included.

What visitors see

The "Search" button sits in the site header next to the profile or sign-in buttons. The window opens on click or with Ctrl+K (⌘K on a Mac) from any page and with any keyboard layout. Pressing it again or Esc closes it.

Search window with source filters, the Recent section and the keyboard hint row

While the query is empty, the window shows "Recent" (the last five links opened from search, kept in this browser), "Sections" (the first ten header menu items) and "Quick actions" with a "My profile" link for signed-in users.

Searching starts from the second character. Results are grouped by source, and the filters above the list ("All" plus one button per source) narrow them down. Arrow keys pick a row, Enter opens it, Tab switches the filter. The "Users", "Pages" and "Navigation" filters, along with the news and skin set filters, also work with an empty query: the window lists that source's entries.

A page with access permissions is not found by anyone who lacks them. Hidden accounts and admin pages never show up in results.

What gets searched

The engine searches four sources, and modules add the rest. Each source can be turned off on its own (see settings).

SourceKeyWhat it finds
Usersusersaccounts by the start of the name, login or profile address, and by SteamID in any notation (STEAM_1:0:…, [U:1:…], 7656119…)
Playersplayersserver players without a site account. Only people who can open moderation, and administrators, see this source
Pagespagessite pages by title, address and description
Navigationnavigationheader menu items
Newsnewspublished articles by title and summary
Forumforumtopics by title from the boards the visitor can read
Rulesrulespublished rule clauses and articles
Monitoringmonitoringservers by name and current map, modes
Clansclansclans by name or tag
Casescasescases that can be opened
Skin setsskinchangerpublished sets by title
Player checksteamlookupgiven a SteamID or Steam profile link, returns one row that opens the check

A module source takes its name in the search window from the module's own settings. If you renamed "News" to "Blog", the filter is called "Blog" too.

Settings

Open https://<YOUR_DOMAIN>/admin/search-module/settings. The screen is called "Search Settings". It has no entry in the admin menu, so bookmark the address. You need the admin and admin.search permissions. The role editor labels the second one "Admin search", and the owner has both.

Search Settings screen with the General Settings and Search Providers cards

The "General Settings" card is saved with the "Save" button:

FieldDefaultWhat it does
"Enable search"onturns off the button, the window and search itself for everyone
"Only for authenticated users"offhides search from guests. A guest does not see the button, and their search requests are refused
"Display mode""Modal dialog""Modal dialog" opens in the middle of the screen. "Dropdown under input" puts an input in the header with a results panel below it, and on a phone the panel opens full screen
"Minimum query length"20 to 64. The window starts searching at the second character whatever the value, so anything below 2 changes nothing, while 3 or more makes shorter queries show "No results found"
"Results limit"201 to 100, how many rows the window shows per query

The "Search Providers" card lists every source with its key and an "On" or "Off" status. The "On" button in a row toggles the source and saves the change right away. A module's source appears in the table by itself once the module is active.

Troubleshooting

For any other message, use the error lookup.

No Search button in the header

Check "Enable search" and "Only for authenticated users". With the second one on, a guest does not see the button until they sign in.

Search is temporarily unavailable

The window got no answer: the site refused the request or the connection dropped. If the text reads "Search temporarily unavailable" instead, search failed on the server and the reason is in the modules.log file.

If one source breaks, the others keep answering and modules.log gets a Search provider <key> failed line. You can open the file on the "Log files" tab. If a nickname finds nothing, type it from the beginning: users are matched only on the first letters of the name, login or profile address.

Site search is separate from admin search. That one opens with the same Ctrl+K inside /admin, finds sections, players and actions, and is covered on the admin home page. A module developer who wants to add a source needs SearchRegistry from the extension points.

Learn more

On this page