Topic: module template and styles overriding
MACscr
avatar
Professional
Professional
Posts: 1631

Posted:
4.Oct 2006 - 02:23

What is the correct procedure for overriding a modules templates and style sheets. I am using the xanthia theme engine with pn.762

I was thinking it was themes/THEMENAME/modules/MODULENAME/pntemplates/ and themes/THEMENAME/modules/MODULENAME/pnstyles/, but that didnt seem to work and finally discovered that setup was only for non xanthia themes (which i find to be weird). Anyway, i got the templates to finally work by just throught them in themes/THEMENAME/modules/MODULENAME/, but I still cant get the style sheets to override as well. I have tried putting them in the themes/THEMENAME/modules/MODULENAME/ directory as well, but with no luck.

I thought there was some documentation on this, but i havent been able to find it recently. Thanks.
gerkynet
avatar
Helper
Helper
Posts: 257

Posted:
4.Oct 2006 - 02:35

remove

Code

<!--[modulestylesheet]-->
tag from your xanthia templates, master.htm, home.htm,..

--
_00_

Hispa-PN.net - Desarrollos PostNuke
MACscr
avatar
Professional
Professional
Posts: 1631

Posted:
4.Oct 2006 - 10:05

gerkynet

remove

Code

<!--[modulestylesheet]-->
tag from your xanthia templates, master.htm, home.htm,..


Um, that has nothing to do with what im trying to do. That only looks to see if the module has a style sheet and then insert it into the header if needed. AFAIK, it has nothing to do with overriding module style sheets.

Anyone else have any ideas?
InvalidResponse
avatar
Professional
Professional
Posts: 2423

Posted:
4.Oct 2006 - 10:14

hey mark :)
..put the style.css into /themes/your_theme/style/module_name/style.css

you owe me a nickle :)

--
http://www.invalidresponse.com
MACscr
avatar
Professional
Professional
Posts: 1631

Posted:
4.Oct 2006 - 10:23

InvalidResponse

hey mark :)
..put the style.css into /themes/your_theme/style/module_name/style.css

you owe me a nickle :)


Ah, that makes sense I guess. I would donate that nickel, but i cant find a donate link for you. =P
pnDev
avatar
Helper
Helper
Posts: 448

Posted:
21.Aug 2007 - 22:41

Does anybody know if modulestylesheet picks up stylesheets for blocks? If not whats the recommended procedure?

--
pnDev.com ~ featuring the PostNuke paid services forum
pnDev
avatar
Helper
Helper
Posts: 448

Posted:
26.Aug 2007 - 08:37

Been on a mission to make my site css/xhtml complient. I've slugged through alot of older pre-0.750 style modules and with some hacks got them complient (ie bizpages, pnz_classifieds, weather). The one remaining problem I have is to get the blocks style sheets included inside the like the modulestylesheets. Has anybody encountered this issue? If so what did you do?

--
pnDev.com ~ featuring the PostNuke paid services forum