Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-24 17:21:24

ali
New Member
From: Türkiye
Registered: 2006-08-24
Posts: 5
Website

About using download tags

I am trying to show download statistics of specific file on my template, but confused with the txp download tags. Isn’t it possible to use txp:file_download_downloads tag with file id? Like;

<notextile><code>&lt;txp:file_download_downloads id=“5” /&gt;<code></notextile>

If it’s not, is there an alternative way to make the number in red below dynamically change with every single download of the mentioned file?

<notextile><code>File id5.zip has been downloaded <span style=“color:red;”>5</span> times since 08/2006<code></notextile>

Oh, by the way, probably you have already figured out that I am a newbie :)

Offline

#2 2006-08-25 04:47:06

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: About using download tags

in your page:

<txp:file_download id="5" form="download_count" />

form “download_count”:

The file <txp:file_download_name /> has been downloaded <txp:file_download_downloads /> times since <txp:file_download_created format="%d/%Y" />.

Offline

#3 2006-08-25 18:33:12

ali
New Member
From: Türkiye
Registered: 2006-08-24
Posts: 5
Website

Re: About using download tags

Thats just what I need, thanks for your help. I would like to ask another two, if you don’t mind.

<ol><li>Is it possible to show download statistics of a single file category (statistics sum of all files in a specific category)? Although I know that it is possible with TextCastles’ <a href=“http://textcastle.com/article/53/downloads-statistics-plugin-update” title=“Downloads Statistics plugin”>download statistics plugin</a>, I prefer a built in solution if available.</li>
<li>Is there any chance for showing download statistics sum of selected two files?</li>
</ol>

Thanks in advance.

Last edited by ali (2006-08-25 18:33:42)

Offline

#4 2006-08-26 00:56:09

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: About using download tags

Both are not possible with Textpattern as-is, you’d need a plugin.

Offline

#5 2006-08-26 06:42:42

ali
New Member
From: Türkiye
Registered: 2006-08-24
Posts: 5
Website

Re: About using download tags

Sorry to hear that. Thanks again.

Offline

Board footer

Powered by FluxBB