View Full Version : List of 10 popular pages
08-15-2008, 09:09 PM
Gah. I know I saw it somewhere on wiki.developer.mindtouch.com and I have tried finding it again.
All i want to do is to list the, say 10 most popular dekipages.
How can I do this with dekiscript?
I have to say that searching and finding things on wiki.developer.mindtouch.com is somewhat of a challenge.
08-16-2008, 01:05 PM
I don't know if this is available in all releases of MindTouch Deki but there is a special page called:
Special:Popular Pages (http://wiki.developer.mindtouch.com/Special:Popularpages)
You can access your Popular Pages via Tools Menu
08-16-2008, 05:49 PM
Currently, dekiscript does not support a built-in popular pages function. I've filed a feature suggestion for it here: http://bugs.developer.mindtouch.com/view.php?id=4794
For now, you'd need to try one of the suggestions in this thread (http://forums.developer.mindtouch.com/showthread.php?t=1978).
08-17-2008, 03:11 AM
For now, you'll need to call the API feature directly from DekiScript and iterate over the XML document.
I put together a sample for you here:
04-07-2009, 10:12 PM
This page, http://wiki.developer.mindtouch.com/DekiScript/FAQ/How_do_I..._List_the_most_popular_pages%3f, appears to display only the most popular pages in a wiki.
How can I leverage the hierarchical nature of Deki and show popular (most visited) pages per node?
I tried to supply a path instead of index.php but got an error like this:
/div/block/ul/foreach/li/span, function 'uri.build' failed with response:
invalid char in segment: Portals/Tech_Pubs_Workspace
04-08-2009, 12:46 AM
The popular pages API doesn't have any filter options at this point. You'd have to get all popular pages and then filter it manually. Needless to say, this can be a bit slow. So I would recommend taking advantage of the web.xml caching capabilities.
Powered by vBulletin™ Version 4.1.3 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.