Tag cloud widget is only displaying 9 tags even though the limit is 30

alt=
LesRinchen
@lesrinchen
8 years ago
109 posts
My Tag Cloud widget created in Site Builder is only showing 9 tags, even though I set the limit to 30 and have used at least 24 tags on images. The Tag Cloud on the default NingJa main page is showing 24 tags. How do I get all my tags (within the limit) to show up in the Site Builder's widget?
updated by @lesrinchen: 12/22/16 11:55:59AM
michael
@michael
8 years ago
7,714 posts
Try setting it to 1 to see what happens. It should limit it to only show 1 tag. If it doesn't my suspicions go to the cache to start with.

Try
ACP -> MODULES -> CORE -> SYSTEM CORE -> TOOLS -> RESET CACHE

to see if that makes a difference.
alt=
LesRinchen
@lesrinchen
8 years ago
109 posts
Setting it to 1 works to limit it to one. Setting it to any other number has wacky, unpredictable results. I've solved the problem by leaving the Tag Limit field blank. Now it shows all my tags.
alt=
LesRinchen
@lesrinchen
8 years ago
109 posts
I thought this was solved but apparently it's not. Though the specific numbers change, the Tag Limit function in the Tag Cloud widget continues to be buggy.

I have tagged hundreds of images and forum topics. I don't know how many different tags I've used... let's say 30 or 40. Only 14 are currently showing on the home page tag cloud, even when a higher limit is set or no limit is set.

I'm in developer mode so there should be no caching issue, and I've reset the caches anyway. As noted in my last comment, if I set the tag limit to 1, only one tag appears, but as I increase that number, it has unpredictable results. A few days ago, I seemed to be able to solve the problem by leaving the limit field blank, but that no longer works. Only 14 tags appear.

When I click on a tag and go to the list of tagged items, and then click the Tag Cloud button there, a much fuller cloud appears, with 24 or 25 tags. Much better! That's what I want on the home page.

In addition, I just noticed that the Tag Cloud doesn't appear at all when viewing the site on an iPad. Is that just the way it is or something that can be fixed?
brian
@brian
8 years ago
10,148 posts
Are you only seeing the tag count issue when adding a tag cloud via Site Builder?

As for not showing on mobile - the Javascript for the tag cloud is a "heavy hitter" and I think it is disabled on tablets/mobile by default, but we can check that out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
LesRinchen
@lesrinchen
8 years ago
109 posts
Yes, only added via Site Builder. And I'm not prepared to create that home page in another way yet.

The mobile issue is not critical. I don't expect perfection! ;-)
michael
@michael
8 years ago
7,714 posts
Suspect the issue is a space one. If you give the tag cloud on your Site Builder page the full width of the page to breathe in I reckon its going to look the same as the one at site.com/tags

Could you try that please.
alt=
LesRinchen
@lesrinchen
8 years ago
109 posts
Ah, yes, giving it full page width DOES work. I didn't realize the cloud was designed to fill horizontal space, not vertical! I have it in a 3-column layout and imagined it expanding vertically, not horizontally. Will have to consider whether I'm willing to change my whole page-layout to show more tags.

Thanks for solving the mystery, even if it's not exactly the answer I wanted.
updated by @lesrinchen: 09/16/16 10:08:05PM
michael
@michael
8 years ago
7,714 posts
The construction script that builds the cloud is this one:
https://github.com/lucaong/jQCloud

If it doesn't have enough space to fit all the words in the space provided its solution is to only fit in what will fit, so if you have "an exceptionally long tag that would extend passed the borders of the box" it won't show up in the cloud.

Tags