Look at UsersController#index, or ClippingController#index. Basically, you
want to use the tag_counts on whatever model you're interested in, for
example:
Post.tag_counts :conditions => { :user_id => @user.id }
will give you an array of tag names and count for that users' posts. You can
then display the cloud with something like this:
- tag_cloud @tags, %w(nube1 nube2 nube3 nube4 nube5) do |name,
css_class|
- css_class = css_class + (name.eql?(params[:tag_name]) ? "
selected": "")
= link_to name, user_clippings_path(:user_id => @user, :tag_name =>
name), :class => css_class
On Mon, Oct 13, 2008 at 8:47 PM, hampsterx <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> Can someone provide some pointers on how I would go about hacking in
> support for user tag clouds and rss feeds. Eg each user has a tag
> cloud and each tag has its own rss feed.
>
> Kindly,
>
> TiM
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---