PostNuke

Flexible Content Management System

News

Did you know: Implement your own Admin-Theme

Contributed by on Mar 15, 2007 - 03:58 PM

I always a very simple theme for the backend. I don't need any blocks there at all. And I don't even need a header or and other of this fancy corporate design stuff. I want space for my work. Thus the admin.htm is very short:


[code]
<?xml version="1.0" encoding="iso-8859-15"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>



</head>
<body>
[ Home | Administration | Statistics ]

</body>
</html>
[/code]

That's it.




  1. Save this as admin.htm to /themes/yourTheme/templates/modules

  2. Add a new Theme Template: Administration/Xanthia/Edit Theme/Theme Template/New Module Template

    Name: admin.htm

    You have to enter something to the text area. Just one letter is suffcient. It only can't be empty.
    Save that.

  3. Add a new Theme Zone: Administration/Xanthia/Edit Theme/Theme Zone/Add New Zone

    Name: Admin

    Zone Label: *admin

    Save that.

  4. Now configure the new zone and choose admin.htm from the drop-down

  5. Activate the new zone.


Done - Your new lean backend layout will always appear when functions are called via admin.php (old-style) or with type=admin within the URL.



We will have a small problem with pagesetter. As it doesn't have a clearly defined backend there's no type=admin in the URL. I always use a small "Pagesetter fix" in my master.htm:


[code]


<body >

[ Frontpage | Administration |Statistics ]

</body>

normal body
[/code]

I hope this article helps you implement a better backend with much space.

1182