Re: OK, here's a new one

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45494
interpreted = N
texte = Great idea!I'll fiddle with it and report back...-Will On Tuesday, November 19, 2002, at 04:07 PM, Dan Strong wrote:> I'm preparing to do this same sort of thing and was thinking of > settling on exactly how many *characters*, (including spaces, etc.) I > needed to fill my boxes, and then cut off the descriptions there and > add a ...more >> link to go to the full description/prod. detail. > > If the final cutoff occurred in the middle of a word, I figured I > would replace the final cutoff word characters with spaces, leaving > the ...more >> link in the same place. > > Makes sense in my head... :) > > -Dan > ------------------------------------------------------------ > http://www.StrongGraphicDesign.com > (208) 319-0137 | Toll-free p/f 877-561-1656 > ------------------------------------------------------------ > NEW! Do-It-Yourself Printing: http://sgd.cceasy.com > > > On Tue, 19 Nov 2002 15:46:20 -0600 > WJ Starck wrote: >> Our site lists 6 products on the home page that are specials. >> >> A table is generated by search. Each cell in this table is another >> table that looks like so: >> >> >> ____________________ >> | | | >> | | T | >> | P |___________| >> | | | >> | | D | >> |_______|____________| >> >> Where P is the product image, T is the Title of the Product and D is >> a text description of varying length. Right now this mostly works >> fine, and what I've done with the text description is to use >> [listwords] to reel of the first 15 words of the description, like >> so: >> >> [listwords words=[description]&delimiters= ][showif >> [index]<16][word][/showif] [/listwords]... >> >> This is OK, except for one thing. Since words are of differing >> lengths, some descriptions end up longer than others, and it ends up >> looking crappy visually. What I'd like to do is to parse enough text >> of each description that each D box is essentially filled. >> >> I suppose I could fix the height of the box and fiddle with the >> number of words parsed, but I was wondering of there was a spiffier >> way. I'm wracking my brain here. Anyone with some ideas? >> >> TAM, >> >> -Will >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://search.smithmicro.com/ > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: OK, here's a new one (Rob Marquardt 2002)
  2. Re: OK, here's a new one (Robert Wade 2002)
  3. Re: OK, here's a new one (Chris List Recipient 2002)
  4. Re: OK, here's a new one (Gary Krockover 2002)
  5. Re: OK, here's a new one (WJ Starck 2002)
  6. Re: OK, here's a new one (Dan Strong 2002)
  7. Re: OK, here's a new one (Tim Robinson 2002)
  8. Re: OK, here's a new one (WJ Starck 2002)
  9. Re: OK, here's a new one (Gary Krockover 2002)
  10. Re: OK, here's a new one (Alain Russell 2002)
  11. OK, here's a new one (WJ Starck 2002)
Great idea!I'll fiddle with it and report back...-Will On Tuesday, November 19, 2002, at 04:07 PM, Dan Strong wrote:> I'm preparing to do this same sort of thing and was thinking of > settling on exactly how many *characters*, (including spaces, etc.) I > needed to fill my boxes, and then cut off the descriptions there and > add a ...more >> link to go to the full description/prod. detail. > > If the final cutoff occurred in the middle of a word, I figured I > would replace the final cutoff word characters with spaces, leaving > the ...more >> link in the same place. > > Makes sense in my head... :) > > -Dan > ------------------------------------------------------------ > http://www.StrongGraphicDesign.com > (208) 319-0137 | Toll-free p/f 877-561-1656 > ------------------------------------------------------------ > NEW! Do-It-Yourself Printing: http://sgd.cceasy.com > > > On Tue, 19 Nov 2002 15:46:20 -0600 > WJ Starck wrote: >> Our site lists 6 products on the home page that are specials. >> >> A table is generated by search. Each cell in this table is another >> table that looks like so: >> >> >> ____________________ >> | | | >> | | T | >> | P |___________| >> | | | >> | | D | >> |_______|____________| >> >> Where P is the product image, T is the Title of the Product and D is >> a text description of varying length. Right now this mostly works >> fine, and what I've done with the text description is to use >> [listwords] to reel of the first 15 words of the description, like >> so: >> >> [listwords words=[description]&delimiters= ][showif >> [index]<16][word][/showif] [/listwords]... >> >> This is OK, except for one thing. Since words are of differing >> lengths, some descriptions end up longer than others, and it ends up >> looking crappy visually. What I'd like to do is to parse enough text >> of each description that each D box is essentially filled. >> >> I suppose I could fix the height of the box and fiddle with the >> number of words parsed, but I was wondering of there was a spiffier >> way. I'm wracking my brain here. Anyone with some ideas? >> >> TAM, >> >> -Will >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://search.smithmicro.com/ > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ WJ Starck

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:

Re:2nd WebCatalog2 Feature Request (1996) available times? (2003) [WebDNA] Calendar Examples (2019) Problem with updating to 2.1.1 (1998) html in a database (1998) unable to launch acgi in WebCat (1997) Text variables do not show (1999) Some Questions (1997) syntax question, not in online refernce (1997) Pithy questions on webcommerce & siteedit (1997) How is it done? (1998) WebCat2 as a chat server? (1997) More on the email templates (1997) in conversions.db crashes unix webcat (1999) emailer truncates last letter! (1997) Re: (1997) Filemaker Pro Template for Orders (1999) [WebDNA] Virtual server (2011) [WebDNA] PDF creation (2013) WebCat2 - [include] tags (1997)