Loading...
 
Features / Usability

Features / Usability


download counter

posts: 47 Croatia

Hello,

I want to migrate our non-profit site from Textpattern to Tiki and looking how to fill the missing features...

We are offering free public download area with the mp3 recording of our public programs and soon plan to add video section as well.

The files are rendered within a table showing Filename, Size (MB), Date (of modification) as well as the 'download counter' showing how often each file was downloaded.

I wonder how to realize that feature in Tiki? The first thing which comes to my mind is to use the data recorded in the File Gallery, but wonder if it can be available in front-end or it is usable only in the back-end?

Another option I can think of is to use Trackers feature, but being quite noob, I'd appreciate any hint in regard?


Sincerely,
Gour

posts: 126886 United Kingdom
Saša Janiška wrote:

The files are rendered within a table showing Filename, Size (MB), Date (of modification) as well as the 'download counter' showing how often each file was downloaded.

I wonder how to realize that feature in Tiki? The first thing which comes to my mind is to use the data recorded in the File Gallery, but wonder if it can be available in front-end or it is usable only in the back-end?


Hi Gour

Tiki doesn't really have a front-end or back-end, it's up to you who you let see what, so you could give access to anonymous for file galleries (or just that one) and set up the fields displayed to suit - and if people can't upload or edit stuff then those buttons and options just don't show for them. It's the WYSIWYCA principle!

Alternatively, if you want more control over the presentation and want to do it in a wiki page you can use the unified search index of course, and display what you want using the list (or custom search) plugins. There's a similar example here: Carousel_Formatting

HTH

posts: 47 Croatia

Hello Jonny,

Jonny Bradley wrote:

Hi Gour

Tiki doesn't really have a front-end or back-end, it's up to you who you let see what, so you could give access to anonymous for file galleries (or just that one) and set up the fields displayed to suit...
HTH


Does it mean that I can freely use data stored in e.g. image's "Hits" field and show it in blog-posts/wiki-pages etc. by using e.g. List plugin?

posts: 126886 United Kingdom
Saša Janiška wrote:
Does it mean that I can freely use data stored in e.g. image's "Hits" field and show it in blog-posts/wiki-pages etc. by using e.g. List plugin?


Err, not quite yet by the look of it - but i can add it pretty easily (to \Search_ContentSource_FileSource::getDocument) - is this in 21.x?

posts: 47 Croatia
Jonny Bradley wrote:
Err, not quite yet by the look of it...


Is there any alternative way to do it?

In any case, Tiki continues to surprise me with its power. wink

posts: 126886 United Kingdom
Saša Janiška wrote:
Is there any alternative way to do it?


I can't think of any (other than using the usual file gallery interface) so i added it to 21.x in commit bd76a3b3, so hope you can get that (from a daily build or vcs).
To use it you could do something like this:

Copy to clipboard
{LIST()} {filter type="file"} {filter field="gallery_id" content="1"} {OUTPUT( template="table")} {column field="title"} {column field="filetype"} {column field="hits"} {OUTPUT} {LIST}


HTH!

posts: 47 Croatia
Jonny Bradley wrote:
I can't think of any (other than using the usual file gallery interface) so i added it to 21.x in commit bd76a3b3, so hope you can get that (from a daily build or vcs).


I have not been able to try it out, but thanks a lot!

To use it you could do something like this:

Copy to clipboard
{LIST()} {filter type="file"} {filter field="gallery_id" content="1"} {OUTPUT( template="table")} {column field="title"} {column field="filetype"} {column field="hits"} {OUTPUT} {LIST}


Wonderful! I really appreciate how the Tiki is working and what is possible to achieve with it. cool

HTH!


Yes, it does solve my problem to migrate to Tiki. biggrin