plone / plone.app.mosaic

Plone Mosaic main repository
https://pypi.python.org/pypi/plone.app.mosaic
GNU General Public License v2.0
35 stars 26 forks source link

unclear how it works with plone.app.multilingual #67

Open djay opened 9 years ago

djay commented 9 years ago

User Problem

You might have a complex layout with only the need to translate certain tiles rather than the page as a whole. You might also want to have different layouts per country. It's not yet clear how to achieve these.

Internal

Pretty sure p.a.multilingual doesn't work for tiles and it would be certainly hard for transient tiles. I'm guessing that a mosaic page can be translated now as a whole?

options

  1. ?
datakurre commented 9 years ago

This is not yet fully thought through.

Content layout is stored in a single (language depedendent) field, so, fully customizable layout must be translated as whole. Yet, I'd expect the layout editor and babel edit are not yet compatible.

Of course, content types may still have other fields besides layout and those field are translated (or language independent) normally.

Preconfigured static content layouts (sometimes called also type views) could be configured so that each language has their own layout. Yet, this still needs some work.

https://github.com/plone/plone.app.mosaic/issues/35 (one more layer between site layout and content instance layout) may make it possible to mix pre-configured language localized layout and user translatable layout.

djay commented 9 years ago

So what about text tiles or images tiles that aren't fields in the content type (which would be normal for cover/landing page)? I don't really understand the layout stuff.

datakurre commented 9 years ago

They must be translated by the user. Images could be shared by translation provided that they are stored in language independent location.

Content layout is one big HTML string stored in a single field in content instance. It contains the grid, "text tiles" (they are just HTML) and references to "field tiles" and "app tiles". (Everything which is not a text file embedded into layout, or a field tile, is an app tile.)