Categories > TinyButStrong general >

Examples > Event Functions > HTML Template

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Bruce Decker
Date: 2009-06-18
Time: 22:16

Examples > Event Functions > HTML Template

Hi All:
Studying TBS and spend awhile squinting at the example for event functions, html template.  I am having a hard time grasping why there are two data lines in the template table both with identical instructions.  Can someone help me understand?

Thanks,

Bruce Decker
By: Skrol29
Date: 2009-06-18
Time: 23:11

Re: Examples > Event Functions > HTML Template

Hi Bruce,

This is the way to have alternated colors. When TBS met several sections for the same block name, then they are used alternatively.
By: Bruce Decker
Date: 2009-06-19
Time: 00:03

Re: Examples > Event Functions > HTML Template

Ah, I see it now.  The first line uses odd fetches and the next uses even.  Thanks.
-BD
By: RwD
Date: 2009-06-19
Time: 09:27

Re: Examples > Event Functions > HTML Template

I use a plugin for that, then you can add an operator called zebra. The big plus to using this plugin is that I was getting absolutely out of my mind having to do every block twice because I wanted to offer the option of alternating colors. So with three similar templates I had to do one changes that occurs in all three templates 6 times in total.

http://www.tinybutstrong.com/plugins/plus/doc/manual.html