You are here:   » Home » Documentation » Details » How-To » TOC-Lists » Home

Integrate a performance intensive list as a static HTML code

Author: Dirk Nordmann, Dr. F. Hoffmann, 2003/10/24

By means of a ZMS action a list with intensive computing power that can be editorially up-dated shall be generated which would cause as dynamic code too long response time.

Solution: Exemplified with action "New objects in current period" (code download see below) as a variation of this solution the result code of the object iteration is now written in a list object 'html'. This object 'html' is written with the function manage_addZMSTextarea() resp. join() in a new text section. The construct 'text':''.join(html) goes into action.

...
   <dtml-call "REQUEST.set('html',[])">
   <dtml-call "html.append('<b>%i %s</b>\n'%(_.len(res),
    getLangStr('ATTR_RECORDS',manage_lang)))">
   <dtml-call "html.append('<br/><br/>\n')">
   <dtml-in res>
    <dtml-let ob=sequence-item>
     <dtml-call "html.append(f_breadcrumbs(_,_,objectPathElements
      =ob.breadcrumbs_obj_path(),no_icon=0,REQUEST=REQUEST))">
     <dtml-call "html.append('<br/>\n')">
    </dtml-let>
   </dtml-in>
   <dtml-call "REQUEST.set('textarea',
    manage_addZMSTextarea({
      'active':1,
      'format':'plain_html',
      'text':''.join(html)
      },REQUEST
    ))">
...

manage_findNew2_ger.xml (4KB)