17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1331 Views |
-
Translation of Page Meta Description Field not possible

24 October 2008 at 12:15am
When in translation mode in CMS of a page, going to the Meta Description area shows the Original Text under Original and then a blank uneditable Field also under heading Original Where I believe the translated piece of text should go.
Don't know if this is a bug or what is the deal.. but I see no way of adding Translation to the meta data of a page.
Using Silverstrip v2.2
Has anyone tried adding translation to the meta data eg. description of a page?
-
Re: Translation of Page Meta Description Field not possible

1 November 2008 at 12:17pm
From the code, the field is marked as being translatable, but you're right, for some reason its marked as readonly. I've created a ticket: http://open.silverstripe.com/ticket/2993
-
Re: Translation of Page Meta Description Field not possible

9 November 2008 at 5:03am
I think I have fixed it but need some eyeballs of a knowledgable person.
There was an error in the file sapphire/core/model/Translatable.php in method duplicateOrReplaceFields().
In the elseif (line 645 in version 2.2.3) it read:
if(is_subclass_of($field->class,'TextareaField')) {I think this must be:
if(get_class($field) == 'TextareaField' || is_subclass_of($field,'TextareaField')) {Can anyone verify my solution?
| 1331 Views | ||
|
Page:
1
|
Go to Top |



