
mFilter
Faceted filtering for MODX 3 with SEO URL support


Word forms provide declension for words in SEO text.
Some languages require declension by case:
| Case | Example |
|---|---|
| Nominative | phone |
| Genitive | phone's |
| Dative | (to) phone |
| Accusative | phone |
| Instrumental | (with) phone |
| Prepositional | (about) phone |
| Column | Description |
|---|---|
| Word | Nominative form |
| Genitive | Genitive form |
| Dative | Dative form |
| Accusative | Accusative form |
| Instrumental | Instrumental form |
| Prepositional | Prepositional form |
| Plural | Plural form |
| Field | Example |
|---|---|
| Word | phone |
| Genitive | phone's |
| Dative | phone |
| Accusative | phone |
| Instrumental | phone |
| Prepositional | phone |
| Plural | phones |
| Modifier | Case | Example |
|---|---|---|
| ` | nominative` | Nominative |
| ` | genitive` | Genitive |
| ` | dative` | Dative |
| ` | accusative` | Accusative |
| ` | instrumental` | Instrumental |
| ` | prepositional` | Prepositional |
| ` | plural` | Plural |
Title template:
Buy {$filters.vendor|accusative}Result:
SamsungBuy SamsungDescription template:
Wide selection of {$filters.vendor|genitive}. Delivery.If a word form is not in the database, the system may:
$mfilter = $modx->services->get('mfilter');
$wordForms = $mfilter->getWordFormsManager();
// Get form
$genitive = $wordForms->getForm('phone', 'genitive');
// 'phone\'s'
// Check existence
$exists = $wordForms->hasWord('phone');
// Add word form
$wordForms->add([
'word' => 'laptop',
'genitive' => 'laptop\'s',
'dative' => 'laptop',
'accusative' => 'laptop',
'instrumental' => 'laptop',
'prepositional' => 'laptop',
'plural' => 'laptops'
]);For foreign brands, use the same form for all cases:
| Field | Value |
|---|---|
| Word | Apple |
| Genitive | Apple |
| Dative | Apple |
| ... | Apple |
| Field | Value |
|---|---|
| Word | day |
| Genitive | day's |
| Dative | day |
| Accusative | day |
| Instrumental | day |
| Prepositional | day |
| Plural | days |