Hello,
i have a multi language website. a page class called 'product' and a class called 'technology'. product has a many_many relation to technology. with a TreeMultiselectField you can select the technology page, this all works in English (default) but in other languages i cant load level 3 pages...
[edit] some english pages do load, some don't, so its not a translate error
<?php
class Product extends Page {
static $db = array(
);
static $has_one = array(
);
static $many_many = array(
'Technologys' => 'Technology'
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Technology', new TreeMultiselectField('Technologys', 'Select multiple technologys<br><i>Will be displayed on the product page</i>', 'Technology'));
return $fields;
}
}
class Product_Controller extends Page_Controller {
}
class Technology extends Page {
static $belongs_many_many = array(
'Products' => 'Product'
);
static $has_one = array(
'Foto1' => 'Image',
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Images", new ImageField('Foto1', 'Photo 1'));
return $fields;
}
}
class Technology_Controller extends Page_Controller {}
Error
error [30-May-2011 10:48:50] Error at \sapphire\forms\TreeDropdownField.php line 205: Uncaught Exception: TreeDropdownField->tree(): the object #838 of type Technology could not be found