| Topic: | Block Control for *all* modules in admin? |
|---|---|
|
ngarland
Freshman
Posts: 33 Posted: |
I've scoured the forum for help, but I've reached the end of the line on this. I am trying to make a block go away on *all* of my admin pages. I have been able to successfully get it to take a hike on my main admin page by using block control to remove it from the Admin module. But, I want it to be gone from the admin portion of Pagesetter, for instance, and the only way I can seem to accomplish that is by block controlling the Pagesetter module. But when I do that, it also takes the block away from the main Pagesetter pages where I display my publications. I have tried making an admin.htm template for the *admin "module" but that doesn't seem to work. Any suggestions? Thanks, Nick |
|
kaffeeringe.de
Professional
Posts: 900 Posted: |
I always use a special Xanthia template for the admin side of PostNuke. This template contains no blocks at all - only 2 links in the header: Frontpage and Administration The result is, that you can use the full width of the screen for the administration. -- best regards from Kiel, sailing city Steffen Voss Member of the PostNuke Steering Committee Read The Zikulan's Blog |
|
ngarland
Freshman
Posts: 33 Posted: |
Let me reiterate: I can define a special template without those blocks, but this only works for the Admin module. It *will not* work when I click to administer any module, because these modules go through index.php for admin. For instance, when I go to administer Pagesetter, this template will not work; only the template defined for Pagesetter will change the look of Pagesetter admin. It will also affect the frontend look of Pagesetter, which I *do not* want to happen. Thanks, Nick |
|
kaffeeringe.de
Professional
Posts: 900 Posted: |
1. AFAIK it also works when modules use &type=admin in the URL. 2. I always have a small "Pagesetter-fix" inside my master.htm: Code<!--[pnvarcleanfrominput name="func" assign="func"]--> <!--[pnmodgetname assign="module"]--> <!--[ if ($module=="pagesetter") && (($func=="publist")||($func=="pubedit"))]--> <body > [ <a href="index.php">Frontpage</a> | <a href="admin.php">Administration</a> |<a href="Stats.html">Statistics</a> ]<br /> <!--[$maincontent]--> </body> <!--[else]--> And that is also the body of my admin.htm template. Simple but it works -- best regards from Kiel, sailing city Steffen Voss Member of the PostNuke Steering Committee Read The Zikulan's Blog |
|
ngarland
Freshman
Posts: 33 Posted: |
Great, that conditional statement will work fine. Thanks a lot! What does AFAIK mean? The admin template does not seem to work even when the modules use &type=admin. Thanks, Nick |
|
ngarland
Freshman
Posts: 33 Posted: |
Works like a charm. Thanks a lot for your help, Steffen! -Nick |
|
vworld
Software Foundation
Posts: 968 Posted: |
ngarlandWhat does AFAIK mean? Hi Nick, AFAIK is the acronym for As Far As I Know. :) V -- iThinkMedia.com Follow me on Twitter |
|
sunhawk
Freshman
Posts: 14 Posted: |
Adding the Pagesetter fix to master.htm I get this error: Fatal error: Smarty error: [in master.htm line 54]: syntax error: unclosed tag \{else} (opened line 31). (Smarty_Compiler.class.php, line 320) in K:\server\xampp\htdocs\xxxx\includes\classes\Smarty\Smarty.class.php on line 1095 It's probably me that has pasted it in wrong. Could please help me out |
|
sunhawk
Freshman
Posts: 14 Posted: |
Fixed it myself - remember til add this Code<!--[/if]--> |