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:

    
  1. Re: turning every 5th line red (Mike Jones 1999)
  2. Re: turning every 5th line red (Kenneth Grome 1999)
  3. Re: turning every 5th line red (PCS Technical Support 1999)
  4. Re: turning every 5th line red (Mike Jones 1999)
  5. Re: turning every 5th line red (PCS Technical Support 1999)
  6. Re: turning every 5th line red (Mike Jones 1999)
  7. Re: turning every 5th line red (Kenneth Grome 1998)
  8. Re: turning every 5th line red (PCS Technical Support 1998)
  9. Re: turning every 5th line red (bobm 1998)
  10. Re: turning every 5th line red (Mike Jones 1998)
  11. Re: turning every 5th line red (John Winningham 1998)
  12. turning every 5th line red (Mike Jones 1998)
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)