hi,
I have this DO's:
Faq.php
class Faq extends DataObject {
...
static $has_one = array(
'FaqPage' => 'FaqPage',
'FaqGroup' => 'FaqGroup'
);
FaqGroup.php
class FaqGroup extends DataObject {
static $db = array(
'groupname' => 'Varchar(255)'
);
static $has_many = array(
'Faqs' => 'Faq'
...
and this Page:
FaqPage.php
class FaqPage extends Page {
...
static $has_many = array(
'Faqs' => 'Faq'
);
the DOM Code:
$f->addFieldToTab("Root.Content.FAQ", new DataObjectManager(
$this,
'Faqs',
'Faq',
array(
'question' => 'Frage',
'answer' => 'Antwort',
'active' => 'Aktiv?',
),
'getCMSFields_forPopup'
));
As you see there are 3 columns for the overview. I need a 4th column with the FaqGroup (groupname), how to do that?
thx