mardi 7 février 2017

Silverstripe 3 / Tabset / Special Chars / Issue

Vote count: 0

I'm extending SiteConfig and create a new Tabset. I can't get it to work properly ; when using special chars in tabnames, the layout is mixed up.

I also tried it with _t('MyClass.MyMainTab','Public') and a german language-yml without success.

How can i use SpecialChars in tab names (Tabset - names)?

yml:

SiteConfig:
  extensions:
    - MyClass

MyClass:

class MyClass extends DataExtension{

    public function updateCMSFields(FieldList $fields){

        $set = new TabSet(
            'ÖffentlicherBereich',  // PROBLEM !!!!!
                new Tab(
                    'Einstellungen',
                        new LiteralField('Bla', 'Blabla')
                ),
                new Tab(
                    'OtherTab',
                        new LiteralField('Blabla', 'Bla')
                ),
                new Tab(
                    'AnotherTab',
                        new LiteralField('Blabla', 'Bla')
                )
        );

        $fields->addFieldToTab('Root.Main.Main',  $set);
    }
}

asked 29 secs ago

Let's block ads! (Why?)



Silverstripe 3 / Tabset / Special Chars / Issue

Aucun commentaire:

Enregistrer un commentaire