Textpattern plugin: glx_image_count
Posted 14. januari 2005, 09:44 [Edited 27. augusti 2007, 13:36]
- Version: 0.2
- Download: glx_image_count.txt
- Textpattern forum thread: View discussion
- Active on this site:
This plugin comes with 2 different tags.
glx_count_image
Counts images in an article or category
glx_count_image_total
Counts all images uploaded to Textpattern
Example
Below are some example of how the above tags could be used. A live example is also available at my girlfriends site.
glx_image_count
Counts and outputs how many images there is in an article or category.
Parameter
category
Set this to the category you want to count the images in.
<txp:glx_image_count category="foo" />
To count images in an article put this tag in a form
<txp:glx_image_count />
glx_image_count_total
Counts and return the number of images uploaded to Textpattern.
<txp:glx_image_count_total />
Changelog
0.2
- Renamed the plugin from glx_num_images to glx_image_count.
- Rewrote the whole plugin code.
- The plugin now works with image plugins too like the glx_image plugin.
0.1
- First release