Hey,
in the page.php I have this code:
private static $db = array(
....
'Glasart' => 'Text'
);
and this:
public function getCMSFields() {
$fields = parent::getCMSFields();
....
$options = array("Kaffeeglas", "Weinglas", "Cocktailglas", "Bierglas", "Sektglas", "Wasserglas", "Sonstige");
$fields->addFieldToTab("Root.Main", new DropdownField("Glasart", "Glasart", $options), 'Content');
....
return $fields;
and in the Page.ss:
<h1>$Title - $Glasart</h1>
But in the frontend I only see the ID of the selected value, but I want the value, for example "Kaffeglas".
Any ideas ? :-)