Making English portlet appear in other LinguaPlone translated folders

108 views Asked by At

I have a site with five different languages. I have one English portlet I'd like to make appear in folders and pagers in the other languages, so that updates would be automatic to all languages (no manually copy-pasting around the text).

What kind of solutions Plone ecosystem have for this kind of problem?

  • Linking portlets from other folders

  • Making a "language neutral" portlet

In this case the portlet cannot be created in the site language neutral root, as the porlet is specific to a subsection of a site.

1

There are 1 answers

0
Martijn Pieters On

I'd customize the portlet to only render if a specific marker interface is present on the context, then assign it to the language-neutral root. If you need to show the portlet on all folders in a section, and below you could check for the interface on all objects in the aq_chain(context) list.

Then, you assign that marker interface to the sections that you want the portlet to appear.