How to : Add Module Class Suffix to a Joomla! 1.5 module

April 16, 2008 · Filed Under joomla 
One particular request for an update to the SlideShow seemed quite simple, “add the Module Class Suffix parameter” but for the life of me I could not figure out how to do it  or indeed what use it was.
After a bit of digging this is what I learnt:
This parameter you’ll see on quite a number of modules, what it does is allows the site administrator/designer the ability to place custom CSS styling on the module or more specifically according to the Joomla! Help site:


This field can contain a suffix that will be applied to the CSS classes for the Module styles of this page. This allows individual Modules styling with relative ease. For example, if the suffix .foo is entered here, all CSS code elements in the CSS file within the Template for Modules will have .foo added to them. Separate entries would then need to be added in the CSS file of the Template, for each corresponding difference.


Sounds good! So how do I add it to my module? Really easy as it turns out, well after you  and your best friend “google” spend some quality time searching the web together…

What you need to do is add the following to the module XML file and thats it!

<param name=”moduleclass_sfx” type=”text” default=”" label=”Module Class Suffix” description=”PARAMMODULECLASSSUFFIX” />

Expect to see this in the next update so you’ll be able to add all the CSS styling you could ever want to the SlideShow.

 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • kick.ie
  • Pownce
  • Slashdot
  • StumbleUpon
  • Technorati
  • Blogosphere News
  • Bumpzee
  • NewsVine
  • Reddit

Comments

Leave a Reply