Skip to main content

Multilingual Catalog Indexes for Plone

Project description

Indexes optimized to query multilingual content made with


tgpath Index (Translation Group Path)

Utility and index to get the path of an item as UUIDs of its translationgroup.

language_or_fallback Index

Index to query items and get one fallback if not available in the current language. Fallbacks can be configured in control-panel and are stored in the registry.

Integration with Collections

Both indexes are available in Collections and other places using under the hood. Both indexes do only need activation.

tgpath is available as a switch Language independent location. If this is selected, the normal path will be converted to a tgpath! If no path is selected this switch has no effect.

<figure> Querystring selection with Translationgroup path </figure>

language_or_fallback is available as Fallback languages. If a path is selected together with this option, the path will be converted to a tgpath.

If the tgpath or language_or_fallback is used in a Collection, the path will be set to the portal. Thus the usal automatically added fixation to the current INavigationRoot wont be set, because language root folders are navigation roots.

<figure> Querystring selection with Language fallback and (optional) location. </figure>

Behind the scenes

Fallback Index

It is in fact a simple FieldIndex. Fallback detection happens on index time. On query time it has the same functionality and performance as the normal Language index.

<figure> Browse the index to get a feeling what fallbacks are in there. </figure>
Translation Group Index

It is in fact a normal ExtendendPathIndex. Just the path it indexes consists out of the translation group uids. If an item is not translatable and thus is not part of an translationgroup, then its normal id is taken as patyh element. Path example: /Plone/f5843e426b5d47cdb44af587b322f7ea/320b1ffbf0f64603803043d48bd57516.

In order to query the index, you need to use the translationgroup path instead of the id path:

from import tg_path
import plone.api



Install by adding it to your buildout:



eggs =

and then running bin/buildout



The project is licensed under the GPLv2.



3.0.2 (2021-11-22)

  • Make request caching more test friendly (where there is no request). [jensens]

3.0.1 (2021-11-17)

  • Fix import for Plone 6 and add CI [jensens]

3.0.0 (2021-11-16)

2.1 (2020-08-04)

2.0 (2019-07-12)

  • Patch CMFCore because of [jensens]

  • Fix bugs on rename/move/delete (wrong fallbacks) [jensens]

  • Drop support of Plone 5.1 [jensens]

  • Python 3 compatibility [jensens]

  • Refactor index to be less complex on indexing. [jensens]

  • Bugfix: Use latest and add subscribers to ensure in-/rein-/unindexing. [jensens]

  • Fixing “RuntimeError: the bucket being iterated changed size” (issue #3) [gogobd]

  • Depend on Products.CMFPlone instead of Plone to not fetch unnecessary dependencies. [thet]

1.0 (2016-10-15)

  • Initial release. [jensens]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (180.2 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page