Sackgesicht VIP
Total posts: 1,636
16 Jun 2012 01:13

Implement an optional row indicator for advanced table template like:

<tr onMouseover="this.style.backgroundColor='#ddd'" onMouseout="this.style.backgroundColor='white'" class="cat-list-row<?php echo $k = 1 - $k; ?><?php if($item->featured) echo ' article-featured' ?>">

with template options for both background colors to make it easy for template adjustment.

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
16 Jun 2012 06:43

I got an idea. This code will not work because some rows may be of other color than white. So first you need to get he color and save it and then return to original color.

ready for next release.


Sackgesicht VIP
Total posts: 1,636
16 Jun 2012 08:48

thats the reason why i suggested the colors as XML parameter ...


Sergey
Total posts: 13,748
16 Jun 2012 09:35

Yes the color will be parameter in XML. But cat-list-row1 and cat-list-row0 are core joomla classes and possible formated buy currently installed joomla template. ANd format may by very different. For example the even may use image for background. So after you highlighted the row you have to set styles back.

But all this is done and will be available next release. Including template parameter to set color.


Sackgesicht VIP
Total posts: 1,636
16 Jun 2012 09:44

:D

Powered by Cobalt