-
☆ A M B ☆
- 24,524 Posts
pdoResources handles TVs differently. The &includeTVs is a comma-separated list of TVs to include, not like getResource's boolean property.
While hits looks interesting, I need a solution to count hits for static resources (content type pdf and epub)
Thanks
Roy
Thanks nuan88, I have used filedownload R for other projects.
In this case I am looking for a way to track hits for static resources in the resource tree. Some of the items will be documents, weblinks, and static resources. There is a parent resource that has a getresource to generate the links to the underlying children meeting some conditions. The children will be a combination of weblinks, symlinks, documents, and static resources. I need to gather the hits to the static resources. I thought of using Google Analytics events, as I have done for other similar set ups. But to simplify the process for the content editor, that process is not acceptable with out adding too much complexity.
Roy
hmm this sounds like some 'onclick' javascript to me
It seems to me you could make a custom tv (possibly for each document) , and have a script run on click, which will add one to the tv value.
I think you would invoke the tv earlier on the page, and then the script can check the value and add one.
But I am not sure what event would trigger the script
[ed. note: nuan88 last edited this post 8 years ago.]