Adding Category titles in categories view
Posted: 01 Apr 2011, 01:58
Hello,
I've been trying to modify the code in the default categories file /categories/tmpl/default.php to add a "title" to the thumbnail image tags. I'd like to have the category title appear on mouse over but I have limited knowledge of using JHTML expressions and variables. The titles appear on each of the category pages but not in Categories view.
http://www.benquilty.com/bqcms/
I was wondering if someone could help or point me in the right direction.
The original line 89
Here's my edit.
I've tried adding the categories title variable following the border style but it only parses the string, not the variable value. Probably something straightforward but I can't see it. 
cheers
Mitchell
I've been trying to modify the code in the default categories file /categories/tmpl/default.php to add a "title" to the thumbnail image tags. I'd like to have the category title appear on mouse over but I have limited knowledge of using JHTML expressions and variables. The titles appear on each of the category pages but not in Categories view.
http://www.benquilty.com/bqcms/
I was wondering if someone could help or point me in the right direction.
The original line 89
Code: Select all
echo JHTML::_( 'image.site', $this->categories[$i]->linkthumbnailpath, '', '', '', str_replace('»', '-',$this->categories[$i]->title), 'style="border:0"');Code: Select all
echo JHTML::_( 'image.site', $this->categories[$i]->linkthumbnailpath, '', '', '', str_replace('»', '-',$this->categories[$i]->title), 'style="border:0" title="{$this->categories[$i]->title}"' );cheers
Mitchell