core icon indicating copy to clipboard operation
core copied to clipboard

WorkingCache doesn't support multilanguage fileAsset

Open almontic opened this issue 13 years ago • 5 comments

Step 1: Create a file asset inside a folder (i.e. pdf) with its translation Step 2: Try to preview both fileAssets created The result is always the same pdf file. Looking the WorkingCache class I saw that it works using just the default language.

almontic avatar Apr 10 '13 15:04 almontic

Alberto - ask Christian and or Nevia about this. I believe you all hacked at our LiveCache in order to support Multi-lingual fileAssets. Multilingual fileAssets (using the same url) is not something that is supported out of the box by dotCMS

Will


Will Ezell http://dotcms.com phone: (305) 900-2001 ext. 7010 direct: (978) 294-9429 https://www.google.com/voice/b/0?pli=1#phones skype: wezell1

On Wed, Apr 10, 2013 at 11:12 AM, almontic [email protected] wrote:

Step 1: Create a file asset inside a folder (i.e. pdf) with its translation Step 2: Try to preview both fileAssets created The result is always the same pdf file. Looking the WorkingCache class I saw that it works using just the default language.

— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/2588 .

dotcmsCodeReview avatar Apr 10 '13 15:04 dotcmsCodeReview

Ok Will, but in this case I think that should be better to disable the possibility to create Multi-lingual fileAssets from backend interface

almontic avatar Apr 10 '13 15:04 almontic

Well it is sometimes needed and useful. For example you can create files in multiple languages and then use pulls to build tooling on the front end. So their are cases for it

On Wed, Apr 10, 2013 at 11:54 AM, almontic [email protected] wrote:

Ok Will, but in this case I think that should be better to disable the possibility to create Multi-lingual fileAssets from backend interface

Thanks, Jason S. Tesser Director, Support Services dotCMS, Inc. T: 305.858.1422 x7003 http://twitter.com/dotCMS www.dotcms.com

jtesser avatar Apr 10 '13 16:04 jtesser

Well, I agree with you, but if what you say is true and the function is needed, we should find a way to enable a user to see the correct preview, when he creates a multilanguage-files. If not I think it is a bug in any case, don't you think?

almontic avatar Apr 10 '13 16:04 almontic

no cause pulling files in different languages in a widget is a very valid case

jtesser avatar Apr 10 '13 16:04 jtesser