Topic: Block Control for *all* modules in admin?
ngarland
avatar
Freshman
Freshman
Posts: 33

Posted:
8.Mar 2007 - 11:24

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
avatar
Professional
Professional
Posts: 900

Posted:
13.Mar 2007 - 17:30

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
avatar
Freshman
Freshman
Posts: 33

Posted:
13.Mar 2007 - 21:35

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
avatar
Professional
Professional
Posts: 900

Posted:
13.Mar 2007 - 22:11

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 icon_wink

--
best regards from Kiel, sailing city

Steffen Voss

Member of the PostNuke Steering Committee
Read The Zikulan's Blog
ngarland
avatar
Freshman
Freshman
Posts: 33

Posted:
13.Mar 2007 - 23:03

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
avatar
Freshman
Freshman
Posts: 33

Posted:
14.Mar 2007 - 01:42

Works like a charm. Thanks a lot for your help, Steffen!

-Nick
vworld
avatar
Software Foundation
Software Foundation
Posts: 968

Posted:
14.Mar 2007 - 17:32

ngarland

What does AFAIK mean?


Hi Nick,

AFAIK is the acronym for As Far As I Know. :)

V


--

iThinkMedia.com

Follow me on Twitter
sunhawk
avatar
Freshman
Freshman
Posts: 14

Posted:
27.Mar 2007 - 15:05

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
avatar
Freshman
Freshman
Posts: 14

Posted:
31.Mar 2007 - 01:16

Fixed it myself - remember til add this

Code

<!--[/if]-->
before the last bodytag