Re: turning every 5th line red
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 22118
interpreted = N
texte = This could work, but the problem is that I am displaying the contents of the Details [Details] field, on a details page, so I am not using a cart, thus no lineitems. How do I sort, or count the lines from a field on a non shopping cart related page?>>Here is a line we use to highlite every second line of data within a >lineitem display:>>[showif [math][lineindex]+1[/math]\2] bgcolor=#CECE9C[/showif]>>I wanted the odd lines to be colored so added 1 to the lineindex before >doing the mod function. By applying this to every cell in the row, it >has a greenbar effect and makes it easier to read long lines of data. If >you are doing this within [founditems] just use the index counter instead >of lineindex. Hope this is helpful.>>______________________________________________________Get Your Private, Free Email at http://www.hotmail.com
Associated Messages, from the most recent to the oldest:
This could work, but the problem is that I am displaying the contents of the Details [Details] field, on a details page, so I am not using a cart, thus no lineitems. How do I sort, or count the lines from a field on a non shopping cart related page?>>Here is a line we use to highlite every second line of data within a >lineitem display:>>[showif
[math][lineindex]+1[/math]\2] bgcolor=#CECE9C[/showif]>>I wanted the odd lines to be colored so added 1 to the lineindex before >doing the mod function. By applying this to every cell in the row, it >has a greenbar effect and makes it easier to read long lines of data. If >you are doing this within
[founditems] just use the index counter instead >of lineindex. Hope this is helpful.>>______________________________________________________Get Your Private, Free Email at http://www.hotmail.com
Mike Jones
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
ssl and invoic.tpl and back bttn (2002)
Practice runs ? (1997)
Databases.tpl (2000)
[WebDNA] Access to WDNA_OFS.db (2013)
[WebDNA] Character conversion on storage to database (2012)
Random Sort Problem (2003)
WebCatalog for guestbook ? (1997)
Price question (1998)
Help name our technology! (1997)
New Line In grep (2003)
WebCat2: Formulas.db question (1997)
Summary search -- speed (1997)
Help!!!! Purchases not going through! FIXED! (1997)
WebMerchant Error (1998)
can we get string variables? (1998)
Searching multiple fields (1997)
WebCatalog for guestbook ? (1997)
Customer - again (1998)
Security Tip (1996)
WebCatalog for guestbook ? (1997)