Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Translatable Problems

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

Page: 1
Go to End
Author Topic: 1028 Views
  • rainerh
    Avatar
    Community Member
    23 Posts

    Translatable Problems Link to this post

    Hello everybody,

    I'm building a web site with multilingual content. I've followed the steps according to http://doc.silverstripe.com/doku.php?id=multilingualcontent:
    1) Default Installation of Silverstripe
    2) adding "Object::add_extension('SiteTree', 'Translatable'); Translatable::set_default_locale('de_DE');" to mysite/_config.php
    3) running /dev/build

    Everything seemed OK so far. Unfortunately when I go into the administration menu the "Site Content" menu button is shown twice. I've attached a screenshot.

    Does somebody know what could have went wrong here?

    Attached Files
  • rainerh
    Avatar
    Community Member
    23 Posts

    Re: Translatable Problems Link to this post

    OK, problem solved. There was a class that inherited from LeftAndMain. When the CMS menu ist build all classes that are subclasses from LeftAndMain are included automatically.
    In my opinion there should be some property (which can be set to true by default) if the class should be shown in the menu.
    The only way to remove a menu item is to add a line to _config.php which exectutes CMSMenu::remove_item($code). IMHO a property would be the more elegant solution. If needed I could provide a patch for that matter...

    1028 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.