Re: [WebDNA] GETCHARS ... words?
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102264
interpreted = N
texte = HiI have used this for a while now and it works fine for me.[if [countchars][myMAINSTORY][/countchars]>1000] [then] [listwords delimiters= &words=[url][getchars start=1&end=1000] [myMAINSTORY][/getchars][/url]][text]word[math][index]+1[/math]=[word] [/text][text]word[index][/text] [/listwords]... [/then] [else] [myMAINSTORY] [/else][/if]The listwords line should be all in one if this email wraps. Hope this helps.Cheers========================================Steve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig========================================On 26 Mar 2009, at 19:54, Ki Song wrote:> Is there a function within WebDNA that allows you to limit the number> of characters, but on get complete words?> For example, we would like to first 1000 characters from a field.> However, if character 1000 is in the middle of a word, it would only> return the last full word before the 1000th character.>> Does that make sense?> Is this possible?>> -----------> Ki Song> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
HiI have used this for a while now and it works fine for me.[if [countchars][myMAINSTORY][/countchars]>1000] [then] [listwords delimiters= &words=[url][getchars start=1&end=1000] [myMAINSTORY][/getchars][/url]][text]word[math][index]+1[/math]=[word] [/text][text]word[index][/text] [/listwords]... [/then] [else] [myMAINSTORY] [/else][/if]The listwords line should be all in one if this email wraps. Hope this helps.Cheers========================================Steve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig========================================On 26 Mar 2009, at 19:54, Ki Song wrote:> Is there a function within WebDNA that allows you to limit the number> of characters, but on get complete words?> For example, we would like to first 1000 characters from a field.> However, if character 1000 is in the middle of a word, it would only> return the last full word before the 1000th character.>> Does that make sense?> Is this possible?>> -----------> Ki Song> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Steve Craig
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:
AOL (1999)
gateway application timeouts (1998)
showif and cart (1998)
problems with 2 tags shakur (1997)
[WebDNA] Looking for Govinda (2011)
Searching (1998)
Ads.db (1997)
label?! (2005)
Re:2nd WebCatalog2 Feature Request (1996)
supressing math results (1997)
what include am I using! (2005)
Unique SKU Numbers (2000)
WebStar WebCat Crashing a lot (2004)
Sorting Numbers (1997)
listfiles-looking for slick solution (1997)
too many nested tags ... (1997)
The evolved Server Configuration Queston (2000)
searching by date range help needed (1997)
[newcart] (1998)
Version f1 status (1997)