Loading...
 
Skip to main content

Module Search


New to Tiki6, this merges

  • Search text (of all the site)
  • Search title of wiki page
  • Edit page

Parameters

Multi-purpose search module (go or edit page by name and/or search site)

Go to the source code

Parameters Accepted Values Description Default Since
additional_filters Filters to be applied to the search results, as a URL-encoded string. Ex.: catgories=1+AND+2&prefix~title=Test
advanced_search Use advanced (boolean) search (full text search only). Default: "y" (use advanced search)
categId If set to a category identifier, pages created through the module are automatically categorized in the specified category. Not set by default.
compact Makes the three buttons only appear on mouse-over. Default: "n"
default_button Action to perform on entering . Default: "search" (search|go|edit)
edit_action If set, send the form to the given location (relative to Tiki's root) for processing. Default: tiki-editpage.php
edit_submit The label on the button to submit the form. Default: Edit
templateId If set to a template identifier, the specified template is used for creating new Wiki pages. Not set by default.
go_action If set, send the form to the given location (relative to Tiki's root) for processing. Default: tiki-listpages.php
go_submit The label on the button to submit the form. Default: Go
search_heading Optional heading to display at the top of the module's content.
legacy_mode Setting to emulate previous behaviour. Default: "" ("search"=search_box, "page"=search_wiki_page, "quick"=quick_edit)
search_action If set, send the form to the given location (relative to Tiki's root) for processing. Default: tiki-searchindex.php (for Tiki search)
search_submit The label on the button to submit the form. Default: Search
show_edit_button Show edit button. Default: "y" (do show edit button)
show_go_button Show go to page button. Default: "y" (do show go button)
show_object_filter If set to "y" shows a dropdown of sections to search. Default: "n" (no object filter)
show_search_button Show search button. Default: "y" (do show search button)
tiki_search If set to "y" the search performed is a "Tiki search". Default: "n" (full text search)
use_autocomplete If set to "y" input uses autocomplete for pagenames if applicable. Default: "y" (use autocomplete)
input_size int Width of the text input field (in characters). Example value: 15. Default: 0 (leave automatic width)
select_size int Size of the Search Filter dropdown list. Default: 10


Editing the look of the Search Module:

To remove the Titles button from the module -

  1. Go to Admin Modules (tiki-admin_modules.php) and add the module to your site.
  2. The module config page will open.
  3. Enter "n" in "Show Go Button" (looks like this became the Titles button).
  4. Save.

- I also changed the name of the module to "Action" and the text of the search button to "Search". (Sorry, the tooltip disappears when you edit the module.) This leaves a Search button and an Edit button, to edit/create pages.