Skip to main content

Version Docs Updated

Purpose

This page describes the Unified Search module as a standard reference, covering both technical and operational aspects.

πŸš— Unified Search

Contents​

  • Usage
  • Features
  • Developer Notes

The Unified Search module is designed to manage and present vehicle search processes to visitors on the Rentiva platform.

Usage​

IMAGE COMING SOON

A screenshot showing the frontend (visitor-facing) appearance of this module will be added here.

To add this module to any page or post, use the shortcode below:

[rentiva_unified_search default_tab="default"]

You can also insert it visually from the Gutenberg block editor by selecting "MHM Rentiva β†’ Unified Search".

Parameters​

The following parameters are available inside the shortcode:

ParameterDefaultDescription
default_tabdefaultControls the module's workflow behavior.
default_tab_aliasdefaultTabControls the module's feature filter behavior.
show_rental_tabdefaultVisibility toggle. 1 (on) or 0 (off).
show_transfer_tabdefaultVisibility toggle. 1 (on) or 0 (off).
show_location_selectdefaultVisibility toggle. 1 (on) or 0 (off).
show_time_selectdefaultVisibility toggle. 1 (on) or 0 (off).
show_date_pickerdefaultVisibility toggle. 1 (on) or 0 (off).
show_dropoff_locationdefaultVisibility toggle. 1 (on) or 0 (off).
show_paxdefaultVisibility toggle. 1 (on) or 0 (off).
show_luggagedefaultVisibility toggle. 1 (on) or 0 (off).
service_typebothControls the module's feature filter behavior.
filter_categories(empty)Controls the module's feature filter behavior.
redirect_pagedefaultControls the module's workflow behavior.
layouthorizontalControls the module's general layout behavior.
search_layout(empty)Controls the module's layout behavior.
styleglassControls the module's layout behavior.
location_required0Controls whether location selection is required. 1 (required) or 0 (optional).
class(empty)Controls the module's general layout behavior.

Field Requirement Behavior​

Field requirement behavior in the search form differs by tab:

  • Rental tab: Field requirements are conditional, based on the mhm_rentiva_fields_required global setting. Default value is 0 (not required).
  • Transfer tab: Transfer fields (origin_id, destination_id, date, luggage_count, luggage_large) are always required (hardcoded required). Because transfer is a route-based service, these fields cannot be left empty.
Settings Management

The mhm_rentiva_fields_required value can be changed via MHM Rentiva > Settings. This setting only affects the rental tab; the transfer tab is always required.

Features​

πŸ“± Responsive Design​

  • Mobile: Single-column layout.
  • Tablet (under 782px): Optimized view.
  • Desktop: Full view at the configured column count or width.

πŸš€ Performance-Focused​

  • Smart Caching: Database queries are optimized and cached by the system.
  • Conditional Loading: Static assets are only enqueued on pages where the module is used.

Developer Notes​

  • HTML Structure: All containers start with the .mhm-rentiva-unified-search-wrapper class.
  • Customization: CSS variables (--mhm-color-primary, etc.) are inherited from the global css-variables.css file.

Section Summary​

  • The Unified Search page has been aligned to the standard documentation structure with consistent reference headings.

Changelog​

DateVersionNote
23.04.20264.27.2English translation added.
27.03.20264.22.1location_required parameter added. Field requirement (fields_required) behavior documented: rental is conditional, transfer is always required.
19.03.20264.21.0-docsPage alphabetized and image placeholder added.