This DTML script simple list all(!) changes. Depending on a user name (in the example thew4
) all
edits of another user than thew4
are highlighted.
The use was to find if anybody other than the author edited "my" wiki.
Code:
<table border="1" cellpadding="3"> <th>When edited ?</th><th>Who ?</th><th>From where?</th><th>What ?</th> <dtml-in expr="objectValues('ZWiki Page')" sort="last_edit_time" reverse> <dtml-if expr="last_editor == 'thew4'"> <tr> <dtml-else> <tr bgcolor="#eeee00"> </dtml-if> <td> <dtml-var last_edit_time> </td> <td> <dtml-var last_editor> </td> <td> <dtml-var last_editor_ip> </td> <td><a href="&dtml-absolute_url;"><dtml-var title_or_id></a> </td> </td> </tr> </dtml-in> </table>