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

Support Forum

Start ::  Developers Corner ::  Block Development ::  Block / Module Style Sheet in Admin mode

Moderated by: Support Team

Bottom
Block / Module Style Sheet in Admin mode

  • Link to this postingPosted: 12.12.2006, 03:15
    Profile Homepage
    thowden
    rank:
    Helper Helper
    registered:
     November 2002
    Status:
    offline
    last visit:
    30.07.08
    Posts:
    117
    Hi All

    I am fiddling with a module / block update (in .8 but I think this applies to earlier versions as well).

    In the admin page for the block I want to load the module style sheet (modules/MyModule/pnstyle/style.css or even modules/MyModule/pnstyle/MyModule.css).

    The block admin is being called correctly and the page is rendered including my modify page
    modules/MyModule/pntemplates/mymodule_block_mymodule_modify.htm

    But the loaded style sheet relates to the system/Blocks module which is logical as the Blocks Admin is the currently loaded module. I tested this by inserting
    Code
    <!--[modulestylesheet]-->
    in the top of this template and Smarty returns
    Code
    link rel="stylesheet" href="/system/Blocks/pnstyle/style.css" type="text/css"

    So my question is how do I reference the stylesheet for the module that the block belongs to rather than the stylesheet for the Blocks module.

    TIA


    -----
    cheers
    Tony

    Marble Bay : PostNuke Dev Work
    Wren/Maxwell : PostNuke Hosting

Start ::  Developers Corner ::  Block Development ::  Block / Module Style Sheet in Admin mode

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula