Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Translation of Page Meta Description Field not possible

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1644 Views
  • lubzee
    Avatar
    Community Member
    15 Posts

    Translation of Page Meta Description Field not possible Link to this post

    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?

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Translation of Page Meta Description Field not possible Link to this post

    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

  • phkemper
    Avatar
    Community Member
    2 Posts

    Re: Translation of Page Meta Description Field not possible Link to this post

    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?

    1644 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.