<% Site.listMostRead %> |
renders a list of most read pages, ie. a link
to a story together with the read counter et al. |
Sourcecode in Site/macros.js:
1: function listMostRead_macro() { 2: var param = new Object(); 3: var size = this.mostread.size(); 4: for (var i=0; i<size; i++) { 5: var s = this.mostread.get(i); 6: param.reads = s.reads; 7: param.rank = i+1; 8: s.renderSkin("mostread", param); 9: } 10: return; 11: } |