How to access translatable files?
Created 4 years ago by geezombie

I have enabled translations on several files field type in CMS for several of my pages, some directly in page context and some inside repeaters, I would like those files (PDFs/Images/Docs) to be downloaded/displayed based on the language being used.

So for example when my website is being viewed in Arabic, I am using the Arabic feature image for page. Or if someone tries to download instruction manual, they get an Arabic version for this.

I am able to set files to translatable, but the files return null after being set as translatable. What to do in this situation?

ryanthompson  —  4 years ago

I don't know that the files field type should let you make things translatable. Unless you mean file field type in plural - that will allow it. But files FT requires a pivot table which cannot be translated. However you could use a file FT on a repeater to get around that. IF you needed to emulate multiple files translated and not just a file FT. I hope that makes sense! Let me know if you have any questions.