This guide is for site administrators and editors: installing PX Filter, creating filter pages, configuring facets, showing them on the site, SEO, index maintenance and troubleshooting. Buttons, tabs and fields are named exactly as they appear in the English (en-GB) administrator.
1. Introduction
PX Filter creates faceted search pages for Joomla content: visitors pick categories, tags, colours, price ranges… and the results update instantly, with the number of results shown next to every choice.
- Sources: Joomla articles (including custom fields), HikaShop products, VirtueMart products, PX Booking bookables (rooms, services).
- Fast: data is kept in a dedicated index, so filter pages stay fast with tens of thousands of items.
- SEO friendly: path URLs, automatic canonical and robots tags, JSON-LD.
- Works without JavaScript: every choice is a real link; with JavaScript the page updates without reloading.
- Respects access levels: items a visitor may not view are neither shown nor counted.
Requirements
- Joomla 5.2 or newer, or Joomla 6.x.
- PHP 8.2 or newer.
- MySQL 8+ or MariaDB 10.4+ (InnoDB, utf8mb4; keyword search uses an InnoDB FULLTEXT index).
- A Bootstrap 5 based template (for example Cassiopeia) for the standard look.
Terms
| Term | Meaning |
|---|---|
| Filter | One filter page: a source, its facets and display options. |
| Facet | One group of criteria (for example "Colour" with the values Black, White…). |
| Source | The type of content being filtered, for example com_content.article (articles). |
| Index | A prepared copy of the data used for fast filtering. It is updated automatically when content changes. |
2. Installation and sample data
Installing the package
- Go to System → Install → Extensions, tab Upload Package File.
- Choose
pkg_pxfilter-<version>.zip. The installer checks PHP and Joomla and reports "PX Filter requires PHP … or newer" or "PX Filter requires Joomla … or newer" when they are too old. - Install a newer package over the old one the same way (update). Filters, facets and settings are kept.
The package contains the PX Filter component, the mod_pxfilter module and several plugins. On first install these plugins are enabled:
| Plugin | Role |
|---|---|
| System - PX Filter | Queues changed content for the index. Must be enabled for results to update automatically. |
| PX Filter - Articles | Articles source. |
| PX Filter - Analytics | Anonymous search statistics. |
| Task - PX Filter | Scheduled Tasks routines. |
| Console - PX Filter | The pxfilter:* command line commands. |
| Sample Data - PX Filter | Demo content and this guide. |
PX Filter - HikaShop and PX Filter - VirtueMart are not enabled automatically; enable them in System → Manage → Plugins when the shop is installed. Updates keep your enabled/disabled choice.
Installing the sample data
- Open the Home Dashboard and find the Sample Data panel.
- On the PX Filter Demo row click Install and wait for the 4 steps to finish.
- On the site, open the PX Filter Demo menu (menu module in the
sidebar-rightposition).
The demo creates:
- A root category PX Filter Demo with 4 subcategories (Phones, Laptops, Accessories, Audio) and a members-only category (Access = Registered) that shows how access levels are handled.
- 5 tags, 4 article custom fields (Level, Colour, Price, Release date) and 26 sample articles, each with a product illustration (intro and full image, shipped with the plugin in
media/plg_sampledata_pxfilter/images/); some of them come with star votes. - A filter with 8 facets, limited to the demo product categories (Limit to categories). The facets show: a search box in the Category facet (Search box from = 4), a Swatch for Colour with colours set in the Values screen, Rating (N stars and up) on the article votes, values without results greyed out, tags ordered by number of results.
- Result cards (Item display tab): image, title, category, tags, price, level, release date, stars and intro text. Layout options stay at their defaults.
- 3 sample SEO rules: a landing page for the Laptops category (H1, title, description, intro and bottom text), an "Any value" rule for Level and a Force index rule for phones by colour.
- The PX Filter Demo menu with the filter page and a documentation item (it opens this guide), the menu module and the mod_pxfilter facet panel module.
- This guide as an article in the PX Filter Demo category. Components → PX Filter → Documentation in the administrator opens it on the site.
The demo content is written in the default site language (English when there is no translation) with Language = All. The index is built right away, no cron job is needed.
Removing the sample data
Open Components → PX Filter → Dashboard. While the demo is installed, a PX Filter demo card shows the Remove PX Filter demo button (needs the Configure (core.admin) permission of PX Filter). Confirm the dialog: only what the demo created is deleted (articles and their demo votes, categories, tags, custom fields, the demo filter, the demo SEO rules, menu, modules and this guide; the product images belong to the plugin and go with it); your own content is never touched. The message lists what was removed, for example "Demo removed: 69 items deleted (2 modules, 2 menu items, 1 menu, 3 SEO rules, …)". When something is kept (in use, checked out or not permitted) the message is "Demo partly removed…" with details in administrator/logs/pxfilter.php; fix the cause and press the button again. The Sample Data module of the Home Dashboard links to this button once the demo is installed.
3. Quick start with the wizard
The fastest way to a filter page: Components → PX Filter → Dashboard, click New filter wizard (also in the toolbar of the Filters list). Requires the Create permission.
- Choose a source: pick the content to filter. The table shows how many items of each source are indexed. When it is 0, build the index first (see Index and queue).
- Choose facets: tick the fields to use as facets. Each row shows the number of values and items. Fields with at least two different values are ticked already.
- Create: fill in
- Title – name of the filter page (for example "Product finder").
- Access, Language – who may see it and for which language.
- Create menu item (Yes by default) and Menu – creates a "Filter results" menu item.
- Create module, Module position, Show module ("Only on the new menu item" or "On all pages") – also creates a facet panel module.
The wizard creates a published filter and one facet per ticked field: number fields get Range (min–max), other fields Checkboxes, logic OR, zero-count values hidden; facets from the fifth on start collapsed. You are then taken to the filter edit screen to fine-tune it.
4. Filter configuration
Go to Components → PX Filter → Filters and click a filter title (or New). Each row has a Preview link. The edit screen has these tabs:
Details tab
- Title, Alias, Description.
- Source:
com_content.article(articles),com_hikashop.product,com_virtuemart.product,com_pxbooking.bookable. Only sources whose plugin is enabled are listed. - Status, Access, Language: an unpublished filter, or a visitor without access, cannot open the filter page.
Facets tab
Two more columns set the display conditions of each facet: Display conditions (rows of Facet has a selection / Category is) and Show when (all or any condition). Rows without conditions are always shown.
A quick table to add, edit and drag-and-drop facets inside the filter: Field, Label, Control, Logic, Collapsed, Values shown, Values without results, SEO indexable, Published. Rows removed from the table delete the facet on save (Delete permission needed). After changing the Source, save the filter to refresh the field list. More settings (Alias, Value type, Range step, Value order, Search box) are in the Facet screen.
Layout tab
Grid columns, spacing, position and width of the filter panel, pagination, per-page choices and how filters are applied, for this filter: see Layout.
Options tab
- Limit to categories: only items in the selected categories, subcategories included, are searched and counted. Leave empty (All categories) to search the whole source. The list shows the categories already indexed for the selected source.
- Results per page (empty = Use Global).
- Default sort: Newest first, Oldest first, Title A–Z, Title Z–A, Ordering, Number: low to high, Number: high to low (for shops the last two sort by price). The sort box on the site also offers the source's own sorts: Top rated (articles), Price: low to high / high to low (shops), and Relevance with a keyword.
- Results layout: Grid (cards) or List. Visitors can still switch with the Grid view / List view buttons.
- Keyword Box and Keyword Box Placeholder: the keyword search box (see Keyword search).
Item display tab
Chooses the fields shown on each result card – see Item display.
SEO tab
- Page title template and Meta description template. Leave empty to use the global templates from Options.
- Tokens:
{filter}page name,{values}selected values,{site}site name,{total}number of results,{page}page number. Separators next to an empty token are removed. - Example:
{filter} – {values} | {site}gives "Phones – Black | My Shop".
Which setting wins
Component Options < menu item options < filter options. An empty field in the filter means "use the level above". The layout options below are the exception: there the menu item wins.
Layout
The Layout tab of the component Options, of each filter and of each Filter results menu item sets how the results page is laid out:
- Columns per screen width: XS (phones, < 576px, default 1), SM (≥ 576px, 2), MD (≥ 768px, 2), LG (≥ 992px, 2), XL (≥ 1200px, 3), from 1 to 6. Grid layout only.
- Gap: space between the cards, 0 (none) to 5 (largest; default 3).
- Filter panel position: Left, Right or Top (facets side by side above the results from 768px). Filter panel width (left/right only): Narrow (¼ of the page), Medium (⅓) or Wide (5/12). On phones the panel always opens as an offcanvas.
- Pagination, Per-page choices and Applying filters: see Load more, per page and the Apply button.
Precedence for these options: component < filter < menu item. "Use Global" in the filter and "Use the filter setting" in the menu item inherit, so one filter can be shown with a different layout on two menu items.
Component Options
The Options toolbar button (Options permission needed):
| Option | Default | Meaning |
|---|---|---|
| Results per page | 12 | Results per page. |
| Default sort | Newest first | Default sort order. |
| Queue batch size | 200 | Items processed per click on Process queue. |
| Max indexable facets | 2 | Maximum number of facets on a page that may be indexed (see SEO). |
| Page title template / Meta description template | {filter} – {values} | {site} / {filter}: {values}. {total}. | Global SEO templates. |
| Results layout | Grid | Layout of the results. |
| Breadcrumbs JSON-LD | Yes | Turn off when the template's breadcrumbs module already outputs JSON-LD (for example Cassiopeia). |
| Result cache / Result cache lifetime (minutes) | Yes / 15 | Caches filter results; refreshed automatically when the index changes. |
| Record searches / Sampling rate (%) | Yes / 100 | Statistics (Analytics tab). |
| Rate limit (requests / minute) | 60 | AJAX (format=json) requests per visitor and minute; over the limit the answer is HTTP 429 and the browser simply loads the normal page, which is never limited. Searches over the limit are not recorded in Analytics. Visitors are told apart by an anonymous daily hash of their IP kept two minutes in the cache. 0 = off. |
Duplicate, export and import
In Filters, tick one or more filters, then:
- Duplicate: copies each filter with its facets, display settings and SEO rules. The copy is unpublished, with a numbered title and alias ("Products (2)"), like Save as Copy.
- Export: downloads a JSON file (
pxfilter-…json) with the filters, their facets, SEO rules and the value settings of their fields (custom labels, swatch colours / images, hidden and merged values). Nothing is stored on the server. - Import opens a dialog: choose the file (at most 2 MB), what to do when a filter with the same alias exists (Create new or Overwrite by alias) and keep Dry run on to first see a preview: which filters will be created or overwritten, how fields were matched and what will be skipped. Nothing changes during a dry run; upload again with Dry run off to import. An import runs in one transaction: on error nothing is changed.
Moving a configuration to another site (for example from development to production): fields that only exist by id (VirtueMart custom fields cf.<id>, HikaShop characteristics char.<id>) are matched with the field of the same label on the new site. A facet whose field does not exist there is imported unpublished; choose another field before publishing it. Categories of the filter scope and of SEO rule conditions are matched by their alias; value settings are applied to values already indexed on the new site (rebuild the index first). Access levels are matched by name. Duplicate and Import need the Create permission (Overwrite also Edit), Export needs Edit.
5. Facets
Managed in Components → PX Filter → Facets (search tools: Filter, Status, Control…) or in the Facets tab of a filter. The facet edit screen:
Details tab
- Title: label shown to visitors.
- Alias: used in SEO URLs (for example
colour). Leave empty to generate it from the title. - Filter: the filter this facet belongs to.
- Field: the source field. For articles:
cat(category),tag,author,date(year created),featured,rating(average vote),created(publish date as a number, for Date range),cf.<custom field name>. - Control: the control type (table below).
- Logic: OR – match any selected value (the facet's counts ignore its own selection, so visitors still see the alternatives); AND – items must have all selected values (good for tags).
- Value type: Term (discrete values) or Number (range).
- SEO indexable: pages filtered by this facet may be indexed by search engines (see SEO).
- Status, Access, Language: the facet is shown only to visitors with access and in the matching language.
Control types
| Control | Use for |
|---|---|
| Checkboxes | Several values (categories, colours, tags). |
| Radio buttons | Exactly one value (for example Featured / Not featured). |
| Dropdown | One value from a long list (years, brands). |
| Range (min–max) | Number ranges: price, rating, number custom fields. The value type becomes Number automatically. |
| Date range | Time ranges, for number fields holding dates as timestamps. For articles: the created field (Publish date) is meant for Date range; the date field is indexed by year, so use Dropdown or Checkboxes for it. |
| Rating (N stars and up) | A number field holding a score from 0 to 5 (article votes, shop reviews). Shows "★★★★☆ & up" rows down to 1 star, each with its number of results; choosing one filters on the minimum score (?rating=4-). The value type becomes Number automatically. |
| Swatch | Colours or images instead of check boxes (colour, material, pattern). The colour or image comes from the source when it has one (custom field of type Color, list options whose value is a hex code such as #ff0000, HikaShop characteristic colour or image, VirtueMart string value that is a hex code or image path), or from the Values screen, which always wins. |
| Tree | Nested categories: parents with their sub-categories, empty branches hidden. |
| Toggle (single on/off) | Quick shop filters: one switch labelled with the facet title, e.g. On sale (on_sale), In stock (stock), New (created, last N days), 4★ and up (rating, minimum 4). On a text field it selects one value (Value selected, default 1); on a number field it means "value at or above a threshold" (Minimum, or Within the last N days for dates). The URL is always ?f[field][]=1 (or the selected value). See Toggle. |
Automatic rules: a Term facet set to Range or Date range is shown as Radio buttons; a Number facet is always shown as a range. Radio buttons and Dropdown keep a single selection.
Display tab
- Collapsed: the facet stays closed until the visitor opens it (it opens automatically while it has a selection).
- Values shown (show_limit, default 8): values shown before a "Show N more" link; 0 shows all values.
- Range step: step of the range inputs (for example
1,0.5orany). Only for ranges. - Values without results (zero_mode, default Hide): Hide removes values without results for the current selection; Show greyed out keeps them in place, greyed out and not clickable, so the panel does not jump while the visitor filters; Show as links keeps them as normal links. Facets saved with the former "Hide 0 = No" setting behave as "Show greyed out".
- Value order: Manual (default: the order set by drag and drop in the Values screen, then the label), Alphabetical (follows the site language, so "Bạc" comes before "Đỏ" and "Size 9" before "Size 10") or Number of results.
- Date presets (date facets, on by default) and Offered presets: quick links such as Today, Last 7 days, Last 30 days, This month, This year or Last 12 months above the two date inputs (default: last 7 days, this month, this year, last 12 months). Each preset is a range from 00:00 (UTC) of a whole day up to now, so its URL changes at most once a day and the result cache keeps working. A selected preset is highlighted; clicking it again removes the range. The date inputs stay available for a custom range.
- Search box from (default 10): checkbox, radio and swatch facets with more values than this get a search box above the options. It filters the shown values as the visitor types (case and accent insensitive) and announces the number of matches to screen readers. It needs JavaScript; without it the box stays hidden and every value is still listed. 0 = never.
Toggle tab
- Value selected (text field): value key the switch selects, default
1(stock,on_sale,featured). - Minimum (number field): e.g.
4onratingfor "4★ and up". Empty = any value. - Within the last N days (date field): e.g.
30oncreated(Date added / Publish date) for "New". The threshold (start of the current UTC day minus N days) is computed when the page is shown, so the toggle never goes stale and needs no daily re-index; its URL stays the same every day.
The toggle shows the number of results it would give. With Values without results = Hide, a toggle with 0 results is not shown. A field can carry one facet only: to offer "4★ and up" as a toggle, use it instead of the Rating control on the same field.
Display conditions tab
Shows the facet only when its conditions hold (Show when: all conditions / any condition):
- Facet has a selection: another facet (Facet field) has a selection; with Values (value keys, comma separated) one of them must be selected. Example: show "Size" only when a "Type" is chosen.
- Category is: every current category is one of the category IDs in Values or one of their sub categories. The current category is the selected value of the Category facet (
cat), else the category of the page where the PX Filter module is shown (see Module), else the filter scope (Options tab). Example (demo): "Màu sắc" only for the Phones and Accessories categories.
A hidden facet is not counted, and its selection is removed from the URL: a link to a hidden facet value redirects (301) to the page without it. Hiding cascades: a facet that depends on a hidden one is hidden too.
Ordering
Drag and drop in the Facets list or in the Facets tab of a filter. This order is also the order of the URL segments. The order of the values inside a facet is set by the Value order setting above and the Values screen.
Values: rename, hide, merge, order, swatch
Components → PX Filter → Values lists the values of the facets (select a filter, then a field). The changes survive every re-index and refresh the frontend at once:
- Rename: edit the label directly in the list and click Save labels, or open the value. A changed label is kept ("Custom label" badge) even when the source changes; switch Keep custom label off to take the source label again. Labels belong to one content language. The URL alias does not change, so existing links keep working.
- Hide / Show: a hidden value is no longer offered in the facet; a link that already selects it keeps working.
- Merge: dirty data such as "Red", "red" and "RED" becomes one value. Check the values, click Merge and choose the value to keep (or use Merge into in the value form). The items are re-indexed with the kept value right away (large sets finish through the indexing queue) and the merge is applied again on every rebuild. Unmerge undoes it.
- Order: drag the rows (list sorted by ordering) to set the manual order, for example S, M, L, XL.
- Swatch: in the value form, choose a Colour or an Image. It overrides what the source provides, which the form shows for reference.
6. Item display
The Item display tab of a filter decides what each result card shows. Each row has Field, Show label and Display as; drag to reorder (up to 20 rows). Leave it empty to keep the default card of the source.
- Basic fields: Title, Image, Description, Date, Author, Category, Add to cart button (shops only), plus the fields of the source (custom fields, price, brand…).
- Display as: Text, Badges, Price, Date, Rating (stars), Image, Link.
- Displayed fields are independent of the facets: you can show a field without filtering by it. Values are read when the page is rendered, so they are always current.
Shop product cards
For HikaShop/VirtueMart sources with an empty Item display, the default card shows image, title, category, price and stock status. The cart button appears only when you add the Add to cart button field. It posts straight into the shop's own cart (PX Filter never handles orders). Products with variants/options show "Choose options", linking to the product page; out-of-stock products and products without a price have no button.
7. Showing filters on the site
Menu item
- Menus → [your menu] → New.
- Menu Item Type: PX Filter → Filter results.
- Choose the Filter. The Options tab has Results per page and Facet panel (Show/Hide the panel on the results page). The Layout tab has Results layout and the Layout options of the filter, set to "Use the filter setting" by default.
- Save. The standard tabs (Page Display, Metadata) work as usual; Robots "noindex" on the menu item always wins.
The mod_pxfilter module
For a facet panel in a sidebar or on other pages: Content → Site Modules → New → PX Filter:
- Filter: the filter to show.
- Results page: menu item that shows the results; "- Auto -" = the first menu item of this filter.
- Hide on its results page: hides the module on the results page itself (when that page already has its own panel).
On the results page the module follows the current selection and updates together with the page. On other pages it shows unfiltered counts and sends visitors to the results page when they pick something.
Use current category as scope (default Yes): on a category or product page of the filter's source (article category / article, VirtueMart category / product, HikaShop category or product listing / product), the module recognises the current category and
- counts only the items of that category and its sub categories,
- uses it for the display conditions (category-specific facet sets),
- pre-selects it in every link: choosing a value leads to the results page with the category already selected (the filter needs a Category facet on
cat; without one the results page shows the whole filter).
The category page itself is not filtered (it stays the shop's or Joomla's own listing): the module always leads to the PX Filter results page set in Results page. A category outside the filter scope is ignored. Typical setup: one module instance assigned to the shop menu item, so every category of the shop gets its own counts.
On phones
Below 768px the facet panel of the results page moves into an offcanvas: visitors tap Filters (with the number of active facets), make their choices and tap Apply (… results). The count on the button updates live. This applies whatever the Filter panel position.
Without JavaScript
Every choice is a real link; dropdowns and ranges get an Apply button. With JavaScript, results, counts, page title and URL update without reloading, and the browser's Back/Forward buttons keep working.
Load more, per page and the Apply button
- Pagination: Page numbers (default), “Load more” button (adds the next page under the current results, announces “n more results loaded” to screen readers and moves the focus to the first new item) or Infinite scroll (loads the next page when the visitor reaches the end of the list, at most 10 pages in a row; the button stays visible as a fallback). The address bar follows with
?page=, so reload and Back stay meaningful. The page links stay in the HTML for search engines and visitors without JavaScript. - Per-page choices: for example
12,24,48adds a Per page list to the toolbar (?limit=). Only the listed values (1–100, the results per page setting is always included) are accepted; other values are ignored and redirected. Pages with a non-default value are noindex, with the canonical URL at the default value. - Applying filters: Instantly on each click (default), With an Apply button (the visitor ticks several values; a sticky button at the bottom of the panel shows the expected number of results and applies them together) or Apply button on small screens only (the offcanvas footer button applies the choices on phones, desktop stays instant). Without JavaScript every click applies at once.
Keyword search
The results page shows a Search box at the top of the facet panel (also visible on phones). The keyword is combined with the facets: results and facet counts only cover matching items, and visibility rules (access, language, publishing) still apply. Typing with or without accents finds the same items ("điện thoại" = "dien thoai"); words are matched from their beginning ("wire" finds "wireless").
- Filter → Options → Keyword Box (Show/Hide, on by default) and Keyword Box Placeholder.
- Search while typing (on by default): the results update while the visitor types (from 3 characters, after a short pause; shorter words are searched when the visitor presses Enter); the box keeps the focus and the cursor position. One Back step returns to the page before the search. Off: the results update when the visitor presses Enter.
- Keyword pages are always noindex; their title says what was searched for ("Results for “…”"), and the breadcrumbs (and their JSON-LD) point to pages without the keyword.
- mod_pxfilter → Keyword Box (off by default) shows the box in the module too; from any page it sends the visitor to the results page.
- What is searched: the title, plus for articles the intro text, meta keywords, category, tag, author and custom field values; for HikaShop and VirtueMart the SKU, description, keywords (HikaShop), category, manufacturer, characteristic and custom field values. Other sources: title and facet value labels. Run Rebuild index once after updating.
- With a keyword the default sort is Relevance; visitors can still pick another sort. Clear all clears the facets, Clear search (under the box) removes the keyword.
- Short words (fewer than 3 letters, such as "tv" or "xe"), very common English words ("the", "about") and Chinese, Japanese or Thai text are matched with a slower substring search; they still work.
8. URLs and SEO
Path URLs
With Joomla's SEF URLs on, selected values become path segments built from the facet alias and the value aliases:
/products/colour-black+white/level-premium?price=10-30&sort=title&page=2
- Segments follow the facet order; several values are joined with
+. - Ranges, sort, results per page and page stay in the query string.
- URLs in the wrong order or in an old format are redirected (301) to the canonical URL; unknown values give a 404. Each filter state has exactly one URL.
Canonical and noindex
A filter page may be indexed (index, follow) only when all of these are true:
- it has at least one result;
- no range is selected, it is page 1 and uses the default sort and the default number of results per page;
- the number of selected facets does not exceed Max indexable facets (2 by default);
- every selected facet has SEO indexable on, with one value per facet.
Pages with a keyword (?q=) are always noindex, follow and their canonical URL is the same page without the keyword.
An SEO rule can force index or noindex a combination. All other pages are noindex, follow, their canonical points to the nearest indexable page, and links to them carry rel="nofollow". Tip: switch SEO indexable on only for facets people search for (categories, brands), not for price or tags.
Title, description and JSON-LD
- Title and description follow the templates of the SEO tab (or Options). Without a selection, the menu item's meta description is used when it is set.
- JSON-LD
ItemListfor the results andBreadcrumbList(switch off with Breadcrumbs JSON-LD). The Joomla breadcrumbs also get the selected facets.
SEO rules (landing pages)
Components → PX Filter → SEO rules turns chosen filter combinations into landing pages, for example category "Laptops" or "any colour".
- Conditions: up to 3 facets of the filter. For each, pick values or Any value. A page matches when its selected facets are exactly the rule's facets and each selection only holds listed values. A rule without conditions applies to the unfiltered page. The live preview lists the public URLs the rule matches and how many results a guest gets.
- Which rule wins: exact values beat "Any value", fewer listed values beat more, a rule for the current language beats "All", then the higher Priority.
- Meta and robots: H1 heading, page title, meta description; Robots = Default (the rules above), Force index (also indexes combinations beyond Max indexable facets or with facets that are not SEO indexable, one value per facet, with results) or Force noindex; optional Canonical URL. A menu item set to noindex always wins.
- Texts: intro text above the results and bottom text below them (editor; content plugins run on them; text filters of the author's user group apply, as for articles).
- Placeholders in every field:
{filter}page name,{values}selected values,{facet:alias}values of one facet (facet alias or field),{total}number of results,{site}site name. - Rules never apply to keyword searches, ranges, sorted pages or page 2 and beyond: those pages keep the normal templates and stay noindex.
- Access, language and publish dates of a rule work like those of an article. The JSON response used by the AJAX filter returns the texts too (
html.seo_top,html.seo_bottom,html.heading,meta.h1).
XML sitemap
PX Filter serves an XML sitemap of its indexable pages:
https://example.com/index.php?option=com_pxfilter&view=sitemap&format=xml
- It lists the results menu item of each published filter, every combination of one value per SEO indexable facet up to Max indexable facets, and every combination of a published Force index rule (Any value is expanded). Only pages with results, that are indexable and are their own canonical are listed.
- It is built for guests (public view levels) and in the current language; on a multilingual site add
&lang=xx. lastmodcomes from the last index update of the source, or the last change of the filter or the rule. The list is cached in thecom_pxfilter_sitemapcache group for the Result cache lifetime (minutes) of Options and refreshed when the index or the rules change.- More than 50,000 URLs: the address returns a sitemap index that points to
&page=1,&page=2… At most 500,000 URLs in total. - Submit the address in Google Search Console, or add a
Sitemap:line torobots.txtyourself. PX Filter does not changerobots.txt. - OSMap / JSitemap: no plugin is needed. Add the PX Filter sitemap next to the one these extensions generate (both can be submitted to search engines), or reference it from a sitemap index. Avoid also listing the PX Filter menu items' filtered URLs through those extensions, so each URL is listed once.
9. Index and queue
When you save, delete, publish/unpublish or change the access of content (also categories, tags and custom fields), the System - PX Filter plugin queues the items. Up to 20 items are indexed right after saving; the rest is handled by a scheduled task, the CLI or the Process queue button. On larger sites, create the PX Filter - Process queue task.
The Index page
Components → PX Filter → Index:
- The Index health table per source: Adapter, At source, Items (badge "differs" when it does not match the source), Visible, Queued, Failed, Fields without values, Last indexed, Last rebuild. The Rebuild button of a row rebuilds one source with a progress display.
- Rebuild index: rebuilds the whole index. The site keeps working meanwhile; if it stops halfway, click again to continue where it stopped.
- Process queue: processes the queue now (Queue batch size items per click).
- Retry failed: shown only when items failed; queues them again. The Failed items list and the log
administrator/logs/pxfilter.phptell you why.
An item is tried up to 5 times (after 1, 5, 15 minutes, then 1 hour) before it is marked as failed.
The Rebuild index permission
Rebuild, Process queue and Retry failed need the Rebuild index permission (pxfilter.rebuild). Grant it in Options → Permissions to the right user groups.
Scheduled Tasks
Create them in System → Manage → Scheduled Tasks → New (none are created on install):
The PX Filter - Process queue task is needed on every site: it indexes the queued changes and re-queues products when a discount or a price starts or ends (only the products that discount applies to). While no enabled queue task exists, the Dashboard shows a warning with a Create the queue task button (Super Users / core.admin, plus permission to create Scheduled Tasks): it creates the task to run every 5 minutes.
| Routine | Parameters | Suggestion |
|---|---|---|
| PX Filter - Process queue | Batch size (200), Time budget (seconds) (25) | Every 5–15 minutes. |
| PX Filter - Rebuild index | Batch size (500), Time budget (seconds) (25) | Nightly or weekly; an unfinished run resumes on the next one. |
| PX Filter - Clean up analytics | Keep statistics (days) (180), Time budget (seconds) | Daily. |
For reliable timing on low-traffic sites, run php cli/joomla.php scheduler:run from a cron job instead of relying on visitor-triggered runs.
Command line (CLI)
Run from the site root:
| Command | Purpose |
|---|---|
php cli/joomla.php pxfilter:status | Table row counts and indexed items per source. |
php cli/joomla.php pxfilter:rebuild | Rebuilds the index. Options: --source=com_content.article (one source), --batch=500, --resume (continue an interrupted rebuild). |
php cli/joomla.php pxfilter:queue | Processes the queue. Options: --batch=200, --time=60 (time budget in seconds, 0 = until empty), --retry-failed. |
php cli/joomla.php pxfilter:bench | Benchmark on a synthetic dataset (for testing; --cleanup removes the synthetic data). |
10. Shops: HikaShop and VirtueMart; PX Booking
Enable the plugin in System → Manage → Plugins, click Rebuild for the new source on the Index page, then create a filter with that Source. The plugin is active only when the shop is installed and enabled.
HikaShop
- Source
com_hikashop.product, tested with HikaShop 6.8. - Fields:
cat(product category),manufacturer(brand),price,stock(In stock / Out of stock),rating,char.<id>(characteristics from variants, such as colour or size),cf.<namekey>(custom fields of type dropdown, radio, checkbox, text, boolean). - Each main product is one result; variants are folded into it.
on_sale(On sale / Regular price): an automatic discount (discount, not coupon, public, valid now) lowers the price.created: date the product was added (for the "New" toggle or a date range). Discounts and prices have start / end dates: the product is queued for re-indexing at the next start or end, so "On sale" is correct within a minute of a sale ending when the PX Filter - Process queue task runs every minute.- The price is the lowest public price in the main currency; taxes and automatic discounts are approximated for a guest visitor. The final price is always calculated by HikaShop in the cart.
- Customer-group restrictions exist only in HikaShop Business; multilingual products need Falang.
VirtueMart
- Source
com_virtuemart.product. Joomla 5: VirtueMart 4.6 or newer. Joomla 6: use the VirtueMart release for Joomla 6 (currently a beta, tested with 4.9.3). - Fields:
cat,manufacturer,price,stock,featured,rating,cf.<id>(string, number and yes/no custom fields). - Child products are indexed on their own; empty attributes are inherited from the parent (except stock).
on_sale: the shopper price is below the price without discount rules (an active DBTax/DATax rule, or an override price lower than the base price).created: creation date of the product (empty when VirtueMart has none). Calculation rules and prices with publish dates queue the product for re-indexing at their next start or end (see the queue task).- Shopper groups: guests and the default groups map to Public/Registered; products limited to other groups are hidden.
- Prices are an estimate of the price rules for a guest visitor, without currency conversion, country rules or variant price modifiers.
- Note: toggling Published or Featured directly in VirtueMart's product list and stock changes from orders fire no event, so the index is not updated by them. Schedule the PX Filter - Rebuild index task.
PX Booking
- Source
com_pxbooking.bookable(plugin PX Filter - PX Booking): rooms, apartments, treatments ... of PX Booking. The plugin is switched on at install only when PX Booking is installed; without PX Booking it does nothing and the PX Filter screens show a notice while it is enabled. - Fields:
cat(bookable category with its parents),location,mode(Stay per night / Appointment),guests("at least N guests": values 1+ ... up to the capacity, use a Radio or Dropdown facet),capacity(number, for a range),price(base price in the PX Booking currency, major units: 189, not 18900),cf.<name>(custom fields of bookables: text and list values as facet values, integer / number fields as numbers). - Only published bookables of a published location, in the modes PX Booking sells (per night, time slot), whose category chain is published are shown; the access level is the strictest of bookable, location and categories. Translations of PX Booking (title, description, location) are used per language on multilingual sites.
- Sorts: ordering, price low to high / high to low, title, newest. Card fields: price ("From $189 per night", formatted by PX Booking), capacity ("Up to 4 guests"), category, location, booking type and custom fields; the card links to the bookable page of PX Booking. Availability and the final price stay with PX Booking (dates are chosen on the bookable page).
- Saving, publishing or deleting a bookable re-indexes it; saving or publishing a location re-indexes its bookables. Prices changed by rate plans or rules do not change the base price shown here.
11. Analytics
Components → PX Filter → Analytics shows what visitors filter for:
- Filters: Filter, Period (Today, 7/30/90/180/365 days), Results (Without results / With results).
- Tiles: Searches, Filtered searches, Unique selections, Zero-result rate, Avg. query time, Cache hit ratio.
- Tables: Top facet values, Zero-result searches (hints at missing content), Top selections (with an "Open on site" link), Top keywords and Zero-result keywords (keywords of the search box, stored folded: lower case, no accents; a keyword that looks like an e-mail address or a phone number is never stored).
Settings in Options → Analytics: Record searches (on/off) and Sampling rate (%) (record only part of the searches on busy sites). The PX Filter - Analytics plugin must be enabled.
No personal data: only the filter, the day, the selected values, the number of results and the query time are stored. No IP address, user, session or browser data, so no privacy plugin or consent is needed for this data. Bots, administrator previews and further result pages are not counted.
Retention: old statistics are deleted by the PX Filter - Clean up analytics task (keeps 180 days by default). Without that task, statistics are never deleted.
The Preview page shows the results of a filter for any User group and Language (for example guests versus members), with the query time, without logging in as someone else.
12. Customising the look
Layout overrides
Create overrides with System → Site Templates → [template] → Create Overrides or copy the files into the template folder:
| Part | Override path |
|---|---|
| Results page | templates/<template>/html/com_pxfilter/filter/default.php |
| Facet panel module | templates/<template>/html/mod_pxfilter/default.php |
| Facet panel, toolbar, pagination | templates/<template>/html/layouts/com_pxfilter/pxfilter/facets.php, toolbar.php, pagination.php, active-filters.php, search.php (keyword box) |
| Each facet control | …/layouts/com_pxfilter/pxfilter/facet/checkbox.php (radio, select, range, date, rating, swatch, tree…) |
| Result cards | …/layouts/com_pxfilter/pxfilter/item/default.php, article.php, product.php, title.php, cart.php, item/field/price.php… |
| SEO rule texts | …/layouts/com_pxfilter/pxfilter/seo-text.php |
| Results layout | …/layouts/com_pxfilter/pxfilter/results.php, results/grid.php, results/list.php |
CSS variables
Change colours and sizes without overrides by declaring them in the template CSS (for example Cassiopeia's user.css):
.pxf {
--pxf-accent: #198754;
--pxf-facet-max-height: 18rem;
}
| Variable | Controls |
|---|---|
--pxf-accent | Accent colour: selected boxes, ring of the selected swatch (defaults to the template's primary colour). |
--pxf-accent-contrast | Text / icon colour on the accent colour (white by default). |
--pxf-border | Border of option boxes and swatches. |
--pxf-count-color, --pxf-count-bg | Text and background of the counts. |
--pxf-option-hover | Background of a value on hover. |
--pxf-focus-ring | Keyboard focus ring. |
--pxf-facet-max-height | Maximum height of a value list (22rem by default, the rest scrolls). |
--pxf-swatch-size | Size of colour swatches (1.5rem by default). |
--pxf-star-color | Rating stars. |
--pxf-card-image-ratio | Image aspect ratio on result cards (4 / 3 by default). |
13. Troubleshooting / FAQ
I edited content but the filter results did not change
- Check that the System - PX Filter plugin is enabled.
- On the Index page: when Queued is above 0, click Process queue and create the PX Filter - Process queue task.
- When Failed is above 0: check Failed items and
administrator/logs/pxfilter.php, fix the cause, then click Retry failed. - For changes that fire no event (a new custom field, bulk actions in VirtueMart, stock changes from orders): click Rebuild index or run
pxfilter:rebuild.
A facet is missing, or the wizard does not suggest a field
A facet appears only when the index has values for it. The Index page lists such fields under "Fields without values". A facet is also hidden when it is unpublished or has a different Access or Language. With Values without results = Hide, values without results for the current selection are hidden; values hidden in the Values screen are never offered.
Members see items that guests do not
That is by design: items with a restricted Access level, or inside a restricted category (even when the item itself is Public), are shown and counted only for visitors allowed to see them. Use the Preview page to check the results per user group. Articles before their publish-up date or after their publish-down date appear and disappear at the right time.
Cache
The Result cache is refreshed automatically whenever the index changes, so manual clearing is rarely needed. If in doubt, clear the com_pxfilter group (and com_pxfilter_sitemap for the sitemap) in System → Maintenance → Clear Cache or switch Result cache off for a while. Prices, titles and displayed fields are always read live. The mod_pxfilter module has no cache of its own (Caching = No caching).
The layout looks broken or borders and colours are missing
PX Filter uses the Bootstrap 5 shipped with Joomla. With a template that is not based on Bootstrap 5, set the --pxf-* variables above or create layout overrides. Check that the template CSS does not restyle classes such as .card or .form-check globally. On phones the panel sits behind the Filters button, not in the sidebar.
The filter page returns 404
The filter is unpublished, the visitor lacks access, the language does not match, or the URL contains a value that no longer exists (for example after an alias change). Open the page from the menu to get the canonical URL.
14. Uninstalling
- If the demo is installed, remove it first (see Removing the sample data) to delete the sample content, menu and modules.
- Delete the PX Filter Scheduled Tasks and the Filter results menu items and mod_pxfilter modules you created.
- Go to System → Manage → Extensions, filter Type = Package, select PX Filter and click Uninstall. Its parts cannot be uninstalled one by one, only the whole package.
Uninstalling deletes all PX Filter tables: filters, facets, index, queue and statistics. Your articles, products and custom fields are not affected.