Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Extending SS Tutorial - Custom Field Labels Missing from CMS

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: 1502 Views
  • Aaron
    Avatar
    Community Member
    63 Posts

    Extending SS Tutorial - Custom Field Labels Missing from CMS Link to this post

    Hi,

    I've worked through the Extending Silverstripe Tute and am busy creating my own data type for storing Travel Tours.

    I'm currently trying to create a Teaser content item on the Main Content Panel of the CMS. The field is showing up there, but it has no Label above it.

    Here is my code, largely taken from the Tutorial above:

    class Tour extends Page {

    static $db = array(
          'TourTeaser' => 'Text'
       );

    function getCMSFields() {
    $fields = parent::getCMSFields();

    $fields->addFieldToTab( 'Root.Content.Main', new TextareaField('TourTeaser'), 'Content' );

    return $fields;
    }

    Have I done something wrong there?

  • Aaron
    Avatar
    Community Member
    63 Posts
    1502 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.