Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

File Upload - Multi Language

Started by Muut Archive 10 years ago · 4 replies · 407 views
10 years ago

Hi,

I have a multi-language website, and like to know how you can make use of the upload field for language based documents (pdf). When i translate a page (copy) and replace the existing file with an other (in this case in french) it deletes the existing file. Is it possible to make this language based? it seems it checks on filename.

best.

10 years ago

Need to ask if I understand correctly the situation: are you using a Grav form to upload a PDF and you want that PDF to have a the current language code appended to it?

10 years ago

eh well, it is just the upload field in the administrator panel. When creating a content page you can attach an image, or a file, it looks like it is not creating the file for the language specifically, but just for that specific page. So when i have the page in english and french, and i upload a PDF for english, and copy it to translate it to french, when i replace the pdf for the french version, it removes the english pdf version. Hope you understand my situation now ? ;D

10 years ago

Ah ok, Thanks @flaviocopes, it was my plan to do a custom check, but you already have a temporary solution. thx!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1366 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago