17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1348 Views |
-
Extending SS Tutorial - Custom Field Labels Missing from CMS

25 May 2008 at 2:27pm
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?
-
Re: Extending SS Tutorial - Custom Field Labels Missing from CMS

25 May 2008 at 2:33pm
Got it - this post covers the above:
http://silverstripe.com/site-builders-forum/flat/3487
| 1348 Views | ||
|
Page:
1
|
Go to Top |

