ListFiles then delete by ModDate
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44432
interpreted = N
texte = Hi there,This seems simple enough, but I seem to be going round and round in circles. Is there an 'approved' method for this? I simply want to set up a triggered file to delete obsolete shopping carts.I want to do a [showif], but the [moddate] is causing problems... I've tried a [getchars] to break it up into the right format for a [math]{[date]}[/math] type thingy, but [moddate] displays no leading zeros. That is, it doesn't display 02/02/02, it displays 2/2/02 which throws out the [getchars].I've tried doing a listwords (below)[ListFiles path=../docs/ShoppingCarts/][ListWords Words=[ModDate]&Delimiters=/][showif [index]=2][word][/showif]/[showif [index]=1][word][/showif]/20[showif [index]=3][word][/showif]
[/ListWords] [/Listfiles]but the [index] here seems to get mixed up with the [index] of the [listfiles] loop.Does anyone have some sage words?Regards,Tim-------------------------------------------------------------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:
Hi there,This seems simple enough, but I seem to be going round and round in circles. Is there an 'approved' method for this? I simply want to set up a triggered file to delete obsolete shopping carts.I want to do a [showif], but the [moddate] is causing problems... I've tried a [getchars] to break it up into the right format for a [math]{[date]}[/math] type thingy, but [moddate] displays no leading zeros. That is, it doesn't display 02/02/02, it displays 2/2/02 which throws out the [getchars].I've tried doing a listwords (below)[ListFiles path=../docs/ShoppingCarts/][ListWords Words=[ModDate]&Delimiters=/][showif [index]=2][word][/showif]/[showif [index]=1][word][/showif]/20[showif [index]=3][word][/showif]
[/ListWords] [/Listfiles]but the [index] here seems to get mixed up with the [index] of the [listfiles] loop.Does anyone have some sage words?Regards,Tim-------------------------------------------------------------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/
Tim Robinson
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:
exclusive db lock with webcat-3 ? (2000)
WML (2000)
creator code (1997)
Webcat 3.0.5b9, b8 trigger failures ON WEBSTAR (1999)
Setting up the server (1997)
UN-WANTED character conversion (1999)
Large sites (2003)
Word wrapping (1997)
This list needs a digest: rant, rave... (1997)
serial number dishing (1997)
Forbidden CGI Error (1997)
Closing Databases (1998)
Document Contains No Data! (1997)
Template Not Found (1998)
[WebDNA] 2 cookies, same name different value (2016)
[WebDNA] Strange [url] character conversions (2010)
$adminput doesn't allow [include] files (1997)
One Hour Email (2002)
Stopping bad HTML propagation ? (1997)
Configuring E-mail (1997)