Re: strange [date] behavior
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 40265
interpreted = N
texte = One way around this is to set the date as a text variable before the [ORDERFILE] tags and then refer to the variable inside the [ORDERFILE]-- Stuart TremainIDFK Web Developmentsstuart@idfk.com.au101/12 Waters RdNeutral Bay 2089AustraliaPhone +612 9908 2134On Friday, 23 November 2001, Ken MacMurchy
wrote:>You can't use [date] on a page with [orderfile] it doesn't format properly.>I believe this is a webcat flaw. I don't remember the details, but this was>explained to me by John P. about a year ago. It should be in>the archives.>>--------------------->Cheers!>>Ken MacMurchy>web developer>email: ken.macmurchy@leaderpost.com>web: http://www.leaderpost.com>306-565-8299>1964 Park St.>Regina, SK, Canada>S4P 3G4>> From: Jeff Grady >> Reply-To: (WebCatalog Talk)>> Date: Thu, 22 Nov 2001 07:02:29 -0800 (PST)>> To: (WebCatalog Talk)>> Subject: Re: strange [date] behavior>> >> These tags are not nested inside of any other WebDNA.>> >> In fact, if I put them between the tags,>> before I even invoke any other WebDNA, I get the same>> results:>> >> Month Test: 11/21/2001format=%m]>> year Test: 11/21/2001format=%y]>> >> FYI, I am using WebCat 4 on a Mac if that helps any.>> >> Thanks!>> Jeff>> >> --- Brian Fries <brainscan@mac.com> wrote:>>> Most likely on the page with additional code, the>>> date functions are>>> inside of an [orderfile] context (or a database>>> search for a database>>> with a field named date)...>>> >>> Order files define a field called date and that>>> overrides the >>> WebDNA tag called date, and the field does not>>> accept the >>> formatting parameters.>>> >>> If you are trying to see today's date, you need to>>> set a variable to>>> the date prior to entering the [orderfile] context,>>> then use that >>> variable to display today's date:>>> >>> [text]today=[date][/text]>>> [orderfile...]>>> ...>>> [today]>>> ...>>> [/orderfile]>>> >>> - brian>>> >>> At 4:59 PM -0800 11/21/2001, Jeff Grady wrote:>>>> Anyone have any idea why when I write a .tpl file>>> that>>>> only contains the following code:>>>> <!HAS_WEBDNA_TAGS>>>>> <HTML>>>>> <HEAD>>>>> <TITLE>test>>>> >>>> Month Test: [date format=%m]
>>>> year Test: [date format=%y]
>>>> >>>> >>>> >>>> The resulting page that is served displays:>>>> Month Test: 11>>>> year Test: 01>>>> >>>> BUT when I use the same code>>>> >>>> Month Test: [date format=%m]
>>>> year Test: [date format=%y]>>>> >>>> on a page with a lot more webDNA in it, I get this:>>>> Month Test: 11/21/2001format=%m]>>>> year Test: 11/21/2001format=%y]>>>> ??>>>> >>>> Maybe I am overlooking something very simple here.>>>> >>>> Any ideas are greatly appreciated.>>>> >>>> Thanks!>>>> Jeff>>>> >>>> __________________________________________________>>>> Do You Yahoo!?>>>> Yahoo! GeoCities - quick and easy web site hosting,>>> just $8.95/month.>>>> http://geocities.yahoo.com/ps/info1>>>> >>> >>> ------------------------------------------------------------->>>> 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/>>> >>> -- >>> <= Brian C. Fries, BrainScan Software>>> http://www.brainscansoftware.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/>> >> >> __________________________________________________>> Do You Yahoo!?>> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.>> http://geocities.yahoo.com/ps/info1>> >> ------------------------------------------------------------->> 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:
One way around this is to set the date as a text variable before the [orderfile] tags and then refer to the variable inside the [orderfile]-- Stuart TremainIDFK Web Developmentsstuart@idfk.com.au101/12 Waters RdNeutral Bay 2089AustraliaPhone +612 9908 2134On Friday, 23 November 2001, Ken MacMurchy wrote:>You can't use [date] on a page with [orderfile] it doesn't format properly.>I believe this is a webcat flaw. I don't remember the details, but this was>explained to me by John P. about a year ago. It should be in>the archives.>>--------------------->Cheers!>>Ken MacMurchy>web developer>email: ken.macmurchy@leaderpost.com>web: http://www.leaderpost.com>306-565-8299>1964 Park St.>Regina, SK, Canada>S4P 3G4>> From: Jeff Grady >> Reply-To: (WebCatalog Talk)>> Date: Thu, 22 Nov 2001 07:02:29 -0800 (PST)>> To: (WebCatalog Talk)>> Subject: Re: strange [date] behavior>> >> These tags are not nested inside of any other WebDNA.>> >> In fact, if I put them between the tags,>> before I even invoke any other WebDNA, I get the same>> results:>> >> Month Test: 11/21/2001format=%m]>> year Test: 11/21/2001format=%y]>> >> FYI, I am using WebCat 4 on a Mac if that helps any.>> >> Thanks!>> Jeff>> >> --- Brian Fries <brainscan@mac.com> wrote:>>> Most likely on the page with additional code, the>>> date functions are>>> inside of an <a target="_parent" href="page.dna?numero=225">[orderfile]</a> context (or a database>>> search for a database>>> with a field named date)...>>> >>> <a target="_parent" href="page.dna?numero=272">order file</a>s define a field called date and that>>> overrides the >>> WebDNA tag called date, and the field does not>>> accept the >>> formatting parameters.>>> >>> If you are trying to see today's date, you need to>>> set a variable to>>> the date prior to entering the <a target="_parent" href="page.dna?numero=225">[orderfile]</a> context,>>> then use that >>> variable to display today's date:>>> >>> <a target="_parent" href="page.dna?numero=77">[text]</a>today=<a target="_parent" href="page.dna?numero=32">[date]</a>[/text]>>> [orderfile...]>>> ...>>> [today]>>> ...>>> [/orderfile]>>> >>> - brian>>> >>> At 4:59 PM -0800 11/21/2001, Jeff Grady wrote:>>>> Anyone have any idea why when I write a .tpl file>>> that>>>> only contains the following code:>>>> <!HAS_WEBDNA_TAGS>>>>> <HTML>>>>> <HEAD>>>>> <TITLE>test>>>> >>>> Month Test: [date format=%m]
>>>> year Test: [date format=%y]
>>>> >>>> >>>> >>>> The resulting page that is served displays:>>>> Month Test: 11>>>> year Test: 01>>>> >>>> BUT when I use the same code>>>> >>>> Month Test: [date format=%m]
>>>> year Test: [date format=%y]>>>> >>>> on a page with a lot more webDNA in it, I get this:>>>> Month Test: 11/21/2001format=%m]>>>> year Test: 11/21/2001format=%y]>>>> ??>>>> >>>> Maybe I am overlooking something very simple here.>>>> >>>> Any ideas are greatly appreciated.>>>> >>>> Thanks!>>>> Jeff>>>> >>>> __________________________________________________>>>> Do You Yahoo!?>>>> Yahoo! GeoCities - quick and easy web site hosting,>>> just $8.95/month.>>>> http://geocities.yahoo.com/ps/info1>>>> >>> >>> ------------------------------------------------------------->>>> 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/>>> >>> -- >>> <= Brian C. Fries, BrainScan Software>>> http://www.brainscansoftware.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/>> >> >> __________________________________________________>> Do You Yahoo!?>> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.>> http://geocities.yahoo.com/ps/info1>> >> ------------------------------------------------------------->> 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/
Stuart Tremain
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:
[writefile] (1997)
carriage returns in data (1997)
WC 4.0 (2000)
More on the email templates (1997)
Euca Links Manager (2003)
[WebDNA] WebDNA install on Redhat 4 64 bit? (2008)
PCS Frames (1997)
Trouble with formula.db (1997)
Bug Report, maybe (1997)
Browser (agent) stats... (2004)
WebCat2b15MacPlugin - showing [math] (1997)
POST Datamissing? (1998)
Re:no [search] with NT (1997)
OT: Textarea (2003)
WC hosting services required (1998)
Quit revisited (1997)
MacAuthorize order data fields WAS:How To question... (1997)
WebCat2final1 crashes (1997)
word count in HTML form textarea and linebreaks (2000)
Finding max value for a field (1997)