Integrate a performance intensive list as a static HTML codeAuthor: 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
))">
...
|
Home |
Sitemap |
Printversion |
Top |
Imprint |
pressinfo
© 2001-2008 Hoffmann+Liebenberg GmbH, SNTL Publishing GmbH & Co KG
|
ZMS is a partner project of medvalue.net