Skip to content

Instantly share code, notes, and snippets.

@antons-
Created April 23, 2015 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antons-/1544b1c9f420f5a7974c to your computer and use it in GitHub Desktop.
Save antons-/1544b1c9f420f5a7974c to your computer and use it in GitHub Desktop.
ResearchModelAdmin
class ResearchModelAdmin extends ModelAdmin {
private static $managed_models = array(
'ResearchProject' => array('title' => 'Projects'),
'ResearchOrganisation' => array('title' => 'Organisation'),
'ResearchIndustry' => array('title' => 'Industry'),
'ResearchProject' => array('title' => 'Archived')
);
private static $url_segment = 'research';
private static $menu_title = 'Research';
public $showImportForm = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment