Issue Details (XML | Word | Printable)

Key: TRACK-2
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: David Peterson
Reporter: Guy Fraser
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Tracking Plugin

View Count Tree

Created: 09/Oct/05 03:26 AM   Updated: 20/Dec/06 01:42 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.2.2a

Time Tracking:
Not Specified


 Description  « Hide
A {children} like macro that has same params as {children} but can be set to order pages by popularity

This could be really useful to use in Builder menus

For example, the {view-children} macro would have ALL the existing params as the {children} macro and all the defaults would be the same.

New params would be something like:

show-count=true = should hit count be shown after each page?

order-by=popularity = order siblings by number of views

NB: There is already some sort of "order by" functionality (so use the same param name) but I can't find the details of it anywhere - I know it's in there as I once saw someone from atlassian stating that you could order alphabetically, by creation date or by modified date. There was another param to reverse the order based on the current sort.

Now, imagine this being used in a builder menu - your menus would automatically change based on popularity - you could put most popular items at the top or reverse order so they are at the bottom (in order to make less popular items more visible).

As well as that, you could have a page somewhere used to show statistis and that would allow site owners to quickly see a nested list showing popularity.

Should parent nodes be ordered by not only their own number of hits but also the total number of hits of all children below them? If so, only when an additional param is given so you can toggle that feature on and off?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guy Fraser added a comment - 09/Oct/05 03:34 AM
FYI, the tracking stuff is now used at:

builder.adaptavist.com

and

bam.adaptavist.com

You can see the count for the home page in light grey text at the bottom of any page. Regardless which page, it's set to show home page (until the new version of the theme is uploaded in which case it should be able to automatically work out what page it's on and also be hidden from non-page views)


Guy Fraser added a comment - 03/Mar/06 03:08 AM
Alain has recently reworked a lot of Zohar's {pagetree} plugin - it's possible that this could be done by further extending pagetree:
  • sort=viewCount option
  • showViewCount=true option

David Peterson added a comment - 19/Dec/06 04:29 PM
Most of this can be done in coordination with the Reporting Plugin (specifically, the {report-list} macro).

David Peterson added a comment - 20/Dec/06 01:42 AM
For the record, displaying a more informative child list would look something like this: {report-list:depth=all}

{content-reporter:scope=@self > children|type=page}
{number-sort:track:view count|order=descending}{content-reporter}

{report-body}
{report-info:content:title|link=true} ({report-info:track:view count}) - {report-info:content:excerpt|render=wiki}{report-body}
{report-list}