Topic: Block / Module Style Sheet in Admin mode
thowden
avatar
Helper
Helper
Posts: 117

Posted:
12.Dec 2006 - 03:15

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