Best way to add CSS into a module

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
spngg
New Member
New Member
Posts: 7
Joined: Sat Dec 12, 2009 6:21 pm

Best way to add CSS into a module

Post by spngg »

Hi All,


1) Is it possible to add a link to a module stylesheet into the html "head" tag?

2) Failing that, What is the best way to add a css file into a module?

Thanks

John
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Best way to add CSS into a module

Post by Jos »

Yes it is possible. Look at the module CompanyDirectory for example
spngg
New Member
New Member
Posts: 7
Joined: Sat Dec 12, 2009 6:21 pm

Re: Best way to add CSS into a module

Post by spngg »

hi Jos,

thanks for the info, i'll take a look.

ta

john
vilkis

Re: Best way to add CSS into a module

Post by vilkis »

Hi,
I think you should look for function GetHeaderHTML

vilkis
Post Reply

Return to “Developers Discussion”