[Zope] Nested dtml-with issue....

Phil Harris phil.harris@zope.co.uk
Tue, 13 Feb 2001 13:26:14 -0000


You'd probably be better off looking at ZCatalog before you go too far down
this road.

----- Original Message -----
From: "Schmidt, Allen J." <aschmidt@nv.cc.va.us>
To: <zope@zope.org>
Sent: Tuesday, February 13, 2001 1:08 PM
Subject: [Zope] Nested dtml-with issue....


> ROOT
>  /News
>    /Web
>      /2001   (will vary with year)
>        /022001   (will vary with monthyear)
>          /02132001   (will vary with daymonthyear)
>
>
> Inside the News folder is a DTML method which digs down the folder
structure
> to
> build a single web page with news summaries from the stories contained in
> the last folder.
>
> Using something like this works:
>
> <dtml-with News>
>  <dtml-with web>
>   <dtml-with 2001>
>    <dtml-with 022001>
>     <dtml-with 02132001>
>        <dtml-var summaries>     (which is a method in the News folder back
> at the top)
>     </dtml-with>
>    </dtml-with>
>   </dtml-with>
>  </dtml-with>
> </dtml-with>
>
> All this works..... but...
> Obviously, we don't want to have hard coded dates.
>
> What would be the exact syntax to get the string value of the year, then
the
> monthyear then daymonthyear so that referring to the year in the dtml-with
> would produce the same effect.
>
> Have tried MANY variations of date manipulation to get the string value
but
> always wind up with keyerrors
> when referencing the folder using the new date variable.
>
> Thanks very much
> Allen
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )