AnsweredAssumed Answered

Versoon Change Problem

Question asked by anil on Oct 21, 2007
hi ALL

I have written a template in the alfresco version 2.1 for getting list of all users who have visited and at what time a particular folder (using auditing template provided in the data dictionary) .


<table cellpadding=2 border=1>
   <tr>
     
      <td><b>Document Name</b></td>
      <td><b>Accessed By</b></td>
   </tr>

<#list space.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child>

   <tr>
        
            <td><a href="/ecm${child.url}" target="new">${child.properties.name}</a></td>
            <td><table  border=0>
                  <#list child.auditTrail ?sort_by(['date']) as t>

                                <#if (dateCompare(t.date, date, 1000*60*60*24*7) == 1)>
                               
                                <tr>
                    <td>${t.userIdentifier}</td>
                   <td>${t.date}</td>
                                </tr>
                               </#if>
                  </#list>
                  </table>
     </td>   
    </tr>
</#list>

</table>


IT is working fine here as:-

localizable.ftl 
admin    Oct 17, 2007 5:13:35 PM
admin    Oct 17, 2007 5:13:35 PM
admin    Oct 17, 2007 5:13:35 PM
anil    Oct 17, 2007 6:25:57 PM
anil    Oct 17, 2007 6:25:57 PM
admin    Oct 18, 2007 12:21:39 PM
admin    Oct 18, 2007 12:21:49 PM
admin    Oct 18, 2007 12:21:55 PM
admin    Oct 18, 2007 2:14:19 PM
admin    Oct 18, 2007 2:14:19 PM
admin    Oct 18, 2007 2:15:32 PM
admin    Oct 18, 2007 2:15:32 PM
proertiesname.ftl    
admin    Oct 17, 2007 5:43:44 PM
admin    Oct 17, 2007 5:43:44 PM
admin    Oct 17, 2007 5:43:44 PM
admin    Oct 17, 2007 5:43:44 PM
admin    Oct 17, 2007 5:43:44 PM
admin    Oct 17, 2007 5:45:02 PM
admin    Oct 17, 2007 5:45:02 PM
admin    Oct 17, 2007 5:45:59 PM
admin    Oct 17, 2007 5:45:59 PM
admin    Oct 17, 2007 5:48:06 PM
admin    Oct 17, 2007 5:48:06 PM
admin    Oct 17, 2007 6:01:05 PM
admin    Oct 17, 2007 6:01:05 PM
admin    Oct 17, 2007 6:16:39 PM
admin    Oct 17, 2007 6:16:39 PM
admin    Oct 17, 2007 6:17:15 PM
admin    Oct 17, 2007 6:17:15 PM
anil    Oct 17, 2007 6:27:12 PM
anil    Oct 17, 2007 6:27:12 PM
admin    Oct 18, 2007 2:14:44 PM
admin    Oct 18, 2007 2:14:44 PM
recent_docs.ftl    
admin    Oct 17, 2007 5:48:06 PM
admin    Oct 17, 2007 6:01:05 PM
admin    Oct 17, 2007 6:01:09 PM
admin    Oct 17, 2007 6:17:54 PM
admin    Oct 17, 2007 6:17:54 PM
anil    Oct 17, 2007 6:20:33 PM
anil    Oct 17, 2007 6:20:33 PM
anil    Oct 17, 2007 6:27:23 PM
anil    Oct 17, 2007 6:27:23 PM
admin    Oct 17, 2007 6:55:55 PM
admin    Oct 17, 2007 6:55:55 PM
admin    Oct 17, 2007 6:59:11 PM
admin    Oct 17, 2007 6:59:11 PM
admin    Oct 17, 2007 6:59:32 PM
admin    Oct 17, 2007 6:59:32 PM
admin    Oct 17, 2007 7:08:05 PM
admin    Oct 17, 2007 7:08:19 PM
admin    Oct 17, 2007 7:08:19 PM
admin    Oct 17, 2007 7:15:01 PM
admin    Oct 17, 2007 7:15:07 PM
admin    Oct 17, 2007 7:15:07 PM
admin    Oct 17, 2007 7:17:27 PM
admin    Oct 17, 2007 7:17:27 PM
admin    Oct 17, 2007 7:29:49 PM
admin    Oct 17, 2007 7:29:49 PM
admin    Oct 19, 2007 12:15:27 PM



But the same code is not working fine version 2.0
Being more specific the user name and date is not getting enter in  the respective column.


Please help
I would be most thankful to you

Thanks in ADVANCE


With Regards
Anil

Outcomes