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

Schmidt, Allen J. aschmidt@nv.cc.va.us
Tue, 13 Feb 2001 08:08:40 -0500


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