Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Block Control for *all* modules in admin?
  • Posted: 08.03.2007, 11:24
     
    ngarland
    rank:
    Freshman Freshman
    registered:
     May 2003
    Status:
    offline
    last visit:
    13.03.07
    Posts:
    33
    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
  • Posted: 13.03.2007, 17:30
     
    kaffeeringe.de
    rank:
    Professional Professional
    registered:
     September 2002
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    879
    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
  • Posted: 13.03.2007, 21:35
     
    ngarland
    rank:
    Freshman Freshman
    registered:
     May 2003
    Status:
    offline
    last visit:
    13.03.07
    Posts:
    33
    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
  • Posted: 13.03.2007, 22:11
     
    kaffeeringe.de
    rank:
    Professional Professional
    registered:
     September 2002
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    879
    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
  • Posted: 13.03.2007, 23:03
     
    ngarland
    rank:
    Freshman Freshman
    registered:
     May 2003
    Status:
    offline
    last visit:
    13.03.07
    Posts:
    33
    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
  • Posted: 14.03.2007, 01:42
     
    ngarland
    rank:
    Freshman Freshman
    registered:
     May 2003
    Status:
    offline
    last visit:
    13.03.07
    Posts:
    33
    Works like a charm. Thanks a lot for your help, Steffen!

    -Nick
  • Posted: 14.03.2007, 17:32
     
    vworld
    rank:
    Software Foundation Software Foundation
    registered:
     December 1969
    Status:
    offline
    last visit:
    07.11.08
    Posts:
    968

    ngarland

    What does AFAIK mean?


    Hi Nick,

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

    V


    --

    iThinkMedia.com

    Follow me on Twitter
  • Posted: 27.03.2007, 15:05
     
    sunhawk
    rank:
    Freshman Freshman
    registered:
     December 1969
    Status:
    offline
    last visit:
    20.06.08
    Posts:
    14
    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
  • Posted: 31.03.2007, 01:16
     
    sunhawk
    rank:
    Freshman Freshman
    registered:
     December 1969
    Status:
    offline
    last visit:
    20.06.08
    Posts:
    14
    Fixed it myself - remember til add this

    Code

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

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula