3070 Posts in 869 Topics by 651 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 805 Views |
-
Related content - has_many relationship of same pagetype

5 January 2010 at 8:42am
Hi All,
I am setting up a site that has categories, sub categories, and then articles. What I want to do is create a way for admins to select other articles on the site to be "related articles". When I tried to do so with a has many relationship -
static $has_many = array('RelatedArticles' => 'ArticlePage');
I then setup - a HasManyComplexTableField -
$tablefield = new HasManyComplexTableField( $this, 'RelatedArticles', 'ArticlePage', array('Title' => 'Title' ), 'getCMSFields_forPopup' );
$fields->addFieldToTab('Root.Content.RelatedArticles', $tablefield);
When I do this though on the admin side all checkboxes are disabled.
Does anyone know how to resolve this so that the check boxes will then be enabled.
| 805 Views | ||
|
Page:
1
|
Go to Top |
