Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower threshold for inclusion in cloud #8

Open
shacker opened this issue Apr 15, 2011 · 1 comment
Open

Lower threshold for inclusion in cloud #8

shacker opened this issue Apr 15, 2011 · 1 comment

Comments

@shacker
Copy link

shacker commented Apr 15, 2011

There doesn't seem to be a setting for the minimum number of occurrences required before a tag can appear in a cloud. For very large clouds this is essential. Right now I'm just using e.g.:

if tag.num_times > 25 ...

in the tag cloud template loop, but this seems very inefficient since it has to select the entire tag set then count occurrences for each to decide whether to display it. Is there a better way? Thanks.

@seocam
Copy link

seocam commented Aug 17, 2013

👍

I'm ending up with a huge cloud as well. I can see two possibilities here:

1- Configure a minimum number of occurrences to show a tag in the cloud (as @shacker suggested).
2- Configure a maximum size for the cloud (N) and only return the N most relevant tags.

@feuervogel if you tell me which one you would prefer I can work in the implementation.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants