Is it possible for me to create a subtheme from the Admin theme? I'm trying to add some new templates for certain pages and am having difficulty--drupal says that the admin_theme function is already called--is this a problem with the naming convention of "admin" or is there another place this call is being made on behalf of this theme..?
Thanks for any help you can provide.
This is the call I'm trying to use in my subtheme's template.php file...
function admin_theme(){
return array(
'page_node_form' => array(
'arguments' => array('form' => NULL),
'template' => 'page-node-form',
),
);
}
Comments
Comment #1
yhahn commentedHi dellis,
It's actually not currently possible to use admin as a base theme. This is because the admin module essentially bypasses the drupal theme system in order to provide its theme components through a module.
Eventually I would like to split the theme portion out of admin proper and create a admin theme/module pair (especially for any of the work that goes into D7), but given that admin is currently pretty experimental and moving quickly to test out usability ideas, I'd like to keep the pieces together so people can quickly download it and turn it on with minimal fuss.
What kind of overrides/extensions are you looking to implement? Would any of them be suitable as upstream changes?
Comment #2
dellis commentedI'd like to be able to customize the content submission forms---I'm working on a project right now that will have a good number of non-technical folks adding content. Obviously, I'm spending a lot of time trying to simplify their interface as much as possible. Using the Popups API module--my whole way of looking at drupal content creation has changed.
I used to try and build fully-inclusive content types to save on having to fill out multiple forms, but with Popups, I've now simplified the main form and just used a bunch of related node fields when adding stuff--so that the extra fields aren't cluttering up the interface. Now if someone wants to add an audio file, they just click create a new audio file and do it from within the same page.
I've added a bit of jquery and modified the page content submission form (mainly ordering/structure on printout, prefixes and suffixes--adding class/id wrappers and navigation type elements). So far this is tracking well with my pre-launch user group: v.3: http://www.vimeo.com/4169918
I have been using Rootcandy because it is a really high quality theme, but I really like what you are doing with Admin and would love to be able to override those form pages (using a new template and some pre-processing functions) but it sounds like that isn't really in the cards. Keep up the good work, this "theme" looks great! Thanks.
Comment #3
solutiondrop commentedThis is a great module and I'm looking forward to parts of it making it into D7 after testing out the usability ideas.
Since this module won't split the theme from the module just yet, I was wondering how to override the links to the content submission forms at admin/content/add ? What function creates the admin/content/add/[content-type]? There are cases were I like to customize the submission forms for clients.
Thanks again for the module and the usability work.
Comment #4
chriscohen commentedI would like to +1 the idea of an admin theme/module pair. This would enable subthemes to be created which would avoid the need to modify the base theme directly, and although it might complicate installation slightly, would bring future developments closer in line with Drupal's core functionality.
Comment #5
chriscalip commented+1 subscribe