[opencms-dev] Files ending with _en don't show up in gallery dialog

Tobias Herrmann t.herrmann at alkacon.com
Fri Feb 10 16:35:56 CET 2017


Hi Tobias,

this is a feature.
In case of a locale infix like _en before the file ending OpenCms will 
use it to determine the content locale of the document. So in your case, 
the PDF got indexed and stored with a content locale en. When searching 
the index with the search locale de you will no longer find the 
document. Switch to search locale en and you should find it in the 
gallery dialog again.
You can avoid this behavior, by setting the locale.available property on 
a parent folder to de only. In this case any infix not matching one of 
the available locales will be ignored.


Kind regards,

Tobias

-------------------

Tobias Herrmann

Alkacon Software GmbH & Co. KG  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Am 10.02.2017 um 14:55 schrieb Tobias Karrer:
> Hi all,
>
> someone had problems with files ending by "_de", e.g. brochure_en.pdf,
> vita_en.doc, ...?
>
> An upload with filename brochure_en.pdf in a downloadgallery folder
> isn't visible in gallery dialog when you try to select it.
> After renaming it to brochure_EN.pdf everything works fine.
>
> What could be the problem?
>
> For screenshots see https://github.com/alkacon/opencms-core/issues/479
>
> Regards,
> Tobias
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>



More information about the opencms-dev mailing list