XtGem Forum catalog


home»hits_lister   

xtcat counters and ratings in a xt:filelist

This requires a registration at the xtcat site
And xtcat widgets to be installed from the market page
xtcat
You cannot add xt:widgets directly in a xt:filelist template (wrong parsing order)
But due to a quirk of xtscript you can add them if the xt:filelist is in a xtscript variable
which is then printed by the xtscript.
The xtcat counter and ratings widgets use the file_name variable as their call value
xtcat's counter widget has a display only mode (type="display1") this mode is used in the xt:filelist template
The counter is incremented on the landing page by a normal xtcat counter which you could hide by giving it a type="none"
The rating widget for each file is on the landing page
This demo includes the landing page into the same page and xtscript as the xt:filelist

Photo 0018
Type image/jpeg
Size 110.09KB
Date 2013-08-31 10:52:35
Hits
Petunias
Type image/jpeg
Size 110.09KB
Date 2013-12-16 16:23:56
Hits
Its A Weirdo
Type audio/mpeg
Size 27.08KB
Date 2013-12-17 23:03:05
Hits
«123...9101112»

Xtscript

Xtgem Tutorial Contact
©2024 3BIAP
ALE tights reversed