My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Older

  • Sep 10, 2009
    issue 10 (Return tag count array) commented on by john.d.mann   -   Well, I suppose you can ignore the second paragraph in my entry here, I decided to clean up the code in the attachment so only the issue itself was highlighted :)
    Well, I suppose you can ignore the second paragraph in my entry here, I decided to clean up the code in the attachment so only the issue itself was highlighted :)
  • Sep 10, 2009
    issue 10 (Return tag count array) reported by john.d.mann   -   I was able to achieve this by writing my own little code, but it would be nice if it were a part of the class itself. I believe it should be a part of it, as it can be quite useful. A similar implementation is used for the tag_cloud generator, I think. While this code has a bit of extra detail which I use in other parts of my page, it is the second half which does the tag counting. I included the first half to simply show the contents of $current_tag_images[]. What you get in return is an alphabetically sorted array, $tag_list which contains each unique tag, and how many times that tag has been used. Pseudo-array: $tag_list = { ["some tag"] = 123, ["another tag"] = 456, ... } Ideally, this class method should accept an array as a parameter on which it would obtain the resource ids on which it would return the count for. This would allow the enduser to only get the count of a subset of resources. I've attached a sample of how my application is getting this data, in case it reveals what I am referring to in a better way.
    I was able to achieve this by writing my own little code, but it would be nice if it were a part of the class itself. I believe it should be a part of it, as it can be quite useful. A similar implementation is used for the tag_cloud generator, I think. While this code has a bit of extra detail which I use in other parts of my page, it is the second half which does the tag counting. I included the first half to simply show the contents of $current_tag_images[]. What you get in return is an alphabetically sorted array, $tag_list which contains each unique tag, and how many times that tag has been used. Pseudo-array: $tag_list = { ["some tag"] = 123, ["another tag"] = 456, ... } Ideally, this class method should accept an array as a parameter on which it would obtain the resource ids on which it would return the count for. This would allow the enduser to only get the count of a subset of resources. I've attached a sample of how my application is getting this data, in case it reveals what I am referring to in a better way.
  • Dec 23, 2008
    issue 9 (Enhancement: Allow multiple objects in one instance of freet...) reported by cnsdaniel   -   I added a sql_table field to tagged_objects so I could use the same instance on multiple objects (i.e. media albums, photos, audio files, calendar events, news articles, member accounts, web page content, etc.) Maybe something for the future?
    I added a sql_table field to tagged_objects so I could use the same instance on multiple objects (i.e. media albums, photos, audio files, calendar events, news articles, member accounts, web page content, etc.) Maybe something for the future?
 
Hosted by Google Code