| Joomla! is a powerful Content Management system, and knowing how to manipulate the code gives you excellent control over not only the front end, but the back end as well and how it performs. For my website, I added a "Twitter" component. That is, a component that pulls my latest "tweet" (or 2 or 3) and displays it on my website on the right, in the column that also contains some other modules.
My goal was to display the Twitter logo alongside the title "TwitterFeed" in the title of that module, but Joomla! is somewhat restrictive here. It allows you to add any title to a module but not a corresponding image. You can't add HTML to the title (which would probably solve the problem, but instead of tracking down the filter that strips html from the title field, I went another direction).
What I did instead was to pull the modules template (templates>mytemplate>html>modules.php) and turned this:
title; ?>>
to this:
title == "TwitterFeed") echo " "; ?>title; ?>
What this does is to recognize the name of the title, "TwitterFeed" and if that title exists, it then places the images called into the tag. Those modules that do not show that title ignore the image call and show normally, without an image.
I also changed the to a normal since Joomla! defaults to that header level anyway. It reads a little easier.
I hope this helps if you're looking for a way to customize your module titles a bit more.
|