By drupalninja99 on
Alot of my themes only give you like 500px space for the content or node. In the administration pattern alot of the pages there like settings page, for example are way too wide.
Is there an easy way to cram it into a fixed width?
Are those styles in misc/drupal.css I'm guessing?
Thanks
Jay
Comments
Consider an admin theme
Are you using a PHPTemplate theme, or XTemplate? PHPTemplate makes it easy to have a different set of templates or stylesheets for your admin theme (see the Civicspace theme), or you can use the Sections module to do the same. This is easier than trying to make your admin section conform to your site's design.
- Robert Douglass
-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress
I solved it this way
I had the same concern (I suspect most folks do; some of those admin setting tables are simply too wide for any columnar layout). Not having seen the section.module, I solved it a la phptemplate; perhaps not entirely elegant (improvements welcome from real coders) but works like a charm:
Put this in the top of your page.tpl.php (in your chosen theme):
and then create yourself an admin.tpl.php that styles the node however you'd like. Put it in the themes folder along with the page.tpl.php.
For instance, I have a custom three-column layout, and for the admin.tpl.php I simply changed one thing in its css: added {display: none;} to the right column < div > (because my menu is in the left column & I still want to see that in the admin pages). So now the admin node blithely hogs up the rest of the page after the left-hand column and everyone is happy.
Depending on what you want to display in your admin pages, the admin.tpl.php is almost infinitely fiddle-able.
Another way of creating room
Another way of creating room on the right side, is to move the sidebar on the right to the left, below the left sidebar...
That way, the method is applicable to all 3-column themes, regardless of what type of blocks are on the right side.