Mikko Ohtamaa
Mikko Ohtamaa

Reputation: 83716

Making English portlet appear in other LinguaPlone translated folders

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?

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.

Upvotes: 1

Views: 106

Answers (1)

Martijn Pieters
Martijn Pieters

Reputation: 1125398

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.

Upvotes: 0

Related Questions