Model Admin with custom tab names

Send Snippet To: Save this snippet to Code Collector Pro -- view all balzan's snippets
language: PHP
license: Other

Code for Snippet:

class CompositionAdmin extends ModelAdmin {
	private static $managed_models = array(
		'Composition_TopUserTail'  => array( 'title' => 'TopUserTail' ),
		'Composition_PIP' => array( 'title' => 'PIP' ),
		'Composition_FilenameContains' => array( 'title' => 'FilenameContains' ),
		'Composition_Moderation' => array( 'title' => 'Moderation' ),
	private static $menu_title = 'Composition';
	private static $url_segment = 'compositions';
	// used to do actual CSV exports
comments powered by Disqus


Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 350
Date Added: 2015-11-17 23:40:36
Last Modified: 2015-11-17 16:40:49

Web Analytics