I've just uploaded a new version which should make this easier for you as it now automatically registers the library as an XSLT extension. Go download it and then try the following sample XSLT:
Note that the ordering may not be quite what you expect if you try for the entire tree; if you filter for all products under a common parent for example, you may have better results.
I'll be posting a blog entry about the functions available in the library in the next day or so when I have more time. But for now, try these:
Perhaps you could tell us a bit about what you have done so far and what you would like to achieve... Have you tried the XSLT script above? Have you configured the Data Type and added it to your content pages?
List of most visited pages
Hi!
Im using your package.
How can i retreive a list of most visited pages by XLST macro?
Also, can i retreive list of most visited pages by type? f.e. i want to list most popular products
Thank you
Hi Alexadar,
I've just uploaded a new version which should make this easier for you as it now automatically registers the library as an XSLT extension. Go download it and then try the following sample XSLT:
Note that the ordering may not be quite what you expect if you try for the entire tree; if you filter for all products under a common parent for example, you may have better results.
I'll be posting a blog entry about the functions available in the library in the next day or so when I have more time. But for now, try these:
ViewCount:GetViews(int nodeId, string category)
ViewCount:GetViews(int nodeId, string category, bool increment)
ViewCount:Increment(int nodeId, string category)
(int) ViewCount:GetViewCount(int nodeId, string category, bool increment)
Increment increments the view count for a node only without returning any results; Reset resets the viewcount back to 0.
GetViewCount just returns the actual count by itself.
- Rob
It's working great!
thanks!
How to use ViewCount. I am not able to getting properly. I am not using Razor.
Can you please give me steps to work with this?
Thanks alot..
Hi Jignesh,
Perhaps you could tell us a bit about what you have done so far and what you would like to achieve... Have you tried the XSLT script above? Have you configured the Data Type and added it to your content pages?
is working on a reply...