Calling stylesheet tag in 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
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Calling stylesheet tag in a module

Post by andrewvideo »

Hi

I am try writing my first own module. Can any one help?

I want to call a stylesheet from  CMSMS

The the CMSMS template You can call {stylesheet name="maincss") etc.


I want to echo something like this

Code: Select all

<link rel="stylesheet" type="text/css" media="screen" href="http://mywebsite.net/stylesheet.php?cssid=72&mediatype=screen">
How I use it in my module. I tried using below but nothing happending.

Code: Select all

$params[name'] = 'mystylesheet';
$params[tag'] = 'stylesheet';
  return cms_module_plugin($params,$smarty);
s
Sorry I am new to this.

Andrew
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Re: Calling stylesheet tag in a module

Post by andrewvideo »

Anyone  ???
Post Reply

Return to “Developers Discussion”