[ZDP] Zbook drafts listing again (hopefully last one)

Maik Roeder roeder@berg.net
Tue, 07 Mar 2000 14:35:09 +0100


Hi Kamon !

kamon.ayeva@bureauveritas.com wrote:
> I updated the List_Flat method to:
> 
> <dtml-in "objectValues(['DraftSubmissionFolder'])">
> <dtml-in "objectValues(['Draft'])">
> </dtml-in>
> </dtml-in>
> <dtml-if NeedsReaders>
> Draft:<A HREF="<dtml-var absolute_url>"><dtml-var name></A>
> </dtml-if>
> <BR>
> 
> As a result, the drafts which are set with NeedsReaders=0 disappear, but
> there remains "the line" where the draft link was displayed.
> Why ? What is missing ?

The <BR> tag was printed even if there was no Draft to be displayed.

This is what I changed it to:

<dtml-if NeedsReaders>
Draft:<A HREF="<dtml-var absolute_url>"><dtml-var name></A>
<BR>
</dtml-if>
 
> Thanks for any light.

You're welcome !

Greetings,

Maik