owen2345/camaleon-cms

Multilanguage and varchar field length issue

Closed this issue · 0 comments

We're operating a page with 7 locales. The current table structure of cama_posts limits title and slug to 255 chars, which would be fine for a single language. The way localizations are stored atm causes problems already for slugs, as they simply get too big for the field; I'm pretty sure, the same problem will arise for titles very soon as well.
I could simply convert the columns for title and slug to text, and limit the index on slug to 255 chars, but maybe there is a better solution?
How about an option to make certain languages optional, but at least supported? (might only be a partial solution)