Hi,

Cumulus is a really nice stuff - attractive for users, and still practical, as all tag clouds.
But Cumulus loses its potential by its present simplicity.

What I mean:

Cumulus is just another cloud type, right? So maybe it should become another Views'
display style? Then we could use it for hundreds of ways because of Views' filters,
sorting, arguments, and so on... Now I use all my tag clouds filtering them for the last
two weeks, presenting to users only present topics - I can't do it with Cumulus... :/

So, maybe Cumulus should go to the Views' bright side of Drupal life? :]

Szy.

--
Warszawa | Fjords of Norway

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

szy’s picture

Title: Cumulus as a Views' views style? » Cumulus as a Views' style?
Ivo.Radulovski’s picture

exactly! This would open a new dimension for cumulus ;=)

bcarlson33’s picture

Views support would be a huge improvement on an already excellent module.

SocialNicheGuru’s picture

subscribing. I like this idea

metabits’s picture

Subscribing...

It be really cool to have it as a views style so we could make cumulus clouds of any content displayed by a view, not just tags. Just the way Views Cloud works but with Cumulus 3D effect.

catorghans’s picture

Who would be able to build this? I might have budget for this.
Email me if you are interested.

stBorchert’s picture

Status: Active » Needs review
FileSize
27.87 KB

Here's a complete rewrite of cumulus to make this work as a Views style plugin.
I've created 2 example views to show how to build clouds based on nodes or tags. The tag cloud required the additional module term_node_count to add a views field that calculates the count of nodes per term (you can use views_customfield also).

Weight calculation of the cloud items is based on the sort order or on a special field you can select in the style options.

View "node_cloud": http://drupalbin.com/12993
View "tag_cloud": http://drupalbin.com/12994

SocialNicheGuru’s picture

This gives "Page not found" error: View "node_cloud": http://drupalbin.com/12993

stBorchert’s picture

Strange, the site is working for me but not for others.
Try http://drupalbin.com/12995 instead.

aschiwi’s picture

I successfully imported the view in #9 and get a cumulus as expected. This is great, thank you stBorchert :-)

I also managed to successfully change the settings and use views filters. I created a small block for a sidebar and it's looking pretty good!

stBorchert’s picture

Uhm, I forgot a single "s" in the template that caused transparency to fail.
Now with working transparency.

aschiwi’s picture

I confirm transparency works now.

catorghans’s picture

Great rewrite.

Is it now still possible to make a cumulus tag cloud with weighted tags?
Can't find a way to let views show such a weight.

stBorchert’s picture

Is it now still possible to make a cumulus tag cloud with weighted tags?

Yes, there is a way: look at my second example view. I've used the module term_node_count to add a views field the cloud weighting depends on.
Otherwise you can configure the plugin to use general sorting as calculation base for item weights or any other field (that returns reasonable numeric values).

catorghans’s picture

Thanks!

Yes, I found the plugin settings, but needed the actual "term_node_count".

nirad’s picture

Installed this and it worked great... only I can't get it to do what I want, and I'm not sure if it's possible. I'd like to have cloud blocks that show the top tags for each category on my site (i.e. "Top Tags in Arts," "Top Tags in Entertainment" blocks on their respective pages). But as far as I can tell, there is no way to relate the free tagging vocabulary to the separate category vocabulary. Perhaps this is a bit out of scope for this issue queue, but anyone know a way to accomplish this?

metabits’s picture

Thanks to all of you for working on a solution for Views...

I know this might sound very silly but, how can I use this patch? I have no idea how to install this to test the module for Views...

psc

stBorchert’s picture

aschiwi’s picture

Is this ready to be RTBC'd?

metabits’s picture

@stBorchert: Thank you. I think this is still to much for my little knwoledge, so I will wait this becomes in the module to test it. Thanks again!

LeDucDuBleuet’s picture

This patch works like a real charm!
Thanks stBorchert!

karengrey’s picture

Hi,
Ive applied the patch, but when trying to import your tag cloud view, i keep getting the error that the cumulus style plugin is missing.
I checked the cumulus module file and the patch worked fine. In views itself it shows the style 'cloud' but not 'cumulus'
Am i forgetting to do something that isnt explained in this thread?
Any help will be much appreciated! :)

stBorchert’s picture

@Karen: did you clear your caches after applying the patch?

I've tested it right now and it works for me.

karengrey’s picture

Ok i started from scratch and reapplied the patch (it turned out i only patched the module file originally)
I am using tortoise SVN to patch and it didnt create the three extra files itself so i had to do it manually.
Can i confirm the filenames:
cumulus.views.inc
views_cumulus_style_plugin.inc
views-view-cumulus.tpl.php
Do these new files stay in this module directory?

Your view imported fine now, but there is no 3D cloud showing, just plain text of terms.
Is there anything else i have missed to do?

stBorchert’s picture

Did you install the javascript? http://pratul.in/files/cumulus.js is needed (and swftools as far as I remember).

karengrey’s picture

yep done all that. the module worked perfectly before i changed it to a views style. thats why im a bit baffled!

chansion.vc’s picture

Good Patch ~I like it.

But I can't edit The swf file.When I change the swf file ..

http://www.roytanck.com/2008/08/04/how-to-add-more-characters-to-wp-cumu...

no dispaly.

Some people, like me,need change the swf file ,becouse the language like chinese Korean and ...

If the cumulus module and this views&cumulus patch , support the unicode version cumulus -----well done!

http://www.roytanck.com/2009/11/27/help-me-test-wp-cumulus-unicode-support/

The new unicode version swf file very small only 4.6kb. and do not need add more characters.

Now, the unicode version can't lik the url. But WP OK.......Roy test it so long time. Do not know how many time need..

Sorry for my english.

Good day~

AntiNSA’s picture

subscribe... need unicode support

leigen’s picture

I'd like to suggest that the module be rewritten to avoid Flash technology. The integration of Flash with other video technologoes is particularly difficult as a result of Adobe policies. The wonderful new Apple iPads will not even display this module dynamically at all. The support posts herein show many people having trouble configuraing the module to work because of the Flash dependency.

CinemaSaville’s picture

I completely agree with #29. Hesitant to put any Flash on my site at all these days. However would love to have this module and functionality

aschiwi’s picture

well cumulus IS flash, it's not specific to drupal either. you guys could put your feature requests into the other tag cloud modules for drupal.

AntiNSA’s picture

You guys are crazy. IPAD is a niche market. Flash owns som much world market share. You would only be hurting yourself by trying to cripple flash. Google tablet will rock ipads anyways. Tablets are old news anyways...

leigen’s picture

I personally hope that you are right, but I am amazed at how many iPads have been sold already and I see many people using them for web browsing. But Apple has a way of setting a trend (standard) like Microsoft. For all I know, Adobe may want too high a license fee for Apple and they didn't support Flash for that reason. But there are many things weak about Flash--especially the length of the file and the creation process which is very inefficient. But there is a high percentage installed base, but Apple could change that -- especially if Microsoft follows apple, And what will Google do?

stBorchert’s picture

@all: this issue is not about generalizing the module cumulus (and removing flash dependency), its about making cumulus a views style plugin.

thanks,

Stefan

Kars-T’s picture

Status: Needs review » Fixed

#347883 by stBorchert | aschiwi, catorghans, psc: Added Cumulus as a Views' style?.

Hi

from today I am happy to announce that I am co-maintainer of this project. I started a 6.x--2 Branch for the Views version of this module. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bsarchive’s picture

Great patch/module but I'm having problems with links in the swf. I'm using the views style plugin on a term view but the links on the term names (there are about 25 terms in the view) always go to one particular term, the one with the highest term ID as it happens.

Anyone got any ideas?

zydu’s picture

Having exactly the same problem as in #37.
Great patch anyways!

EDIT:

I didn't look at the examples in the first place. That helped.
Link has to be built manually so:
1. Add term id as a field
2. Add term as second field and click "Output this field as a link" with the "Link path" set to taxonomy/term/[tid]

Cheers

aschiwi’s picture

Kars-T: you mentioned you started a 6.x--2 Branch for this. Where are you keeping it? Would like to help test this.

mariomc’s picture

I'd like to test it as well.
I think I could help around with some ideas!

Kars-T’s picture

Sad that I didn't see this before. Sorry!

The current status from the sprint camp hannover is that I still have to increase the views integration so it's easier to really implement any link you can build. But thats not easy as it sound due to the structure of data cumulus needs. I have to try different things and look for a AS3 programmer to fix all this.

Please stay tuned :)

kenorb’s picture

Status: Closed (fixed) » Active

Kars-T:
- more than half an year passed, where is this feature?
- where is 2.x branch available?
- can you publish at least dev version on the project page?
Thanks.

Similar issue:
#338038: How do I create multiple instances of this block?
#368290: Tagadelic views integration

Kars-T’s picture

Status: Active » Closed (fixed)

- more than half an year passed, where is this feature?

Feel free to add it any time :P

- where is 2.x branch available?
- can you publish at least dev version on the project page?

Nope it is not stable and shouldn't be released!

The main problem with this is that the swf should be rewritten and this keeps at least currently away from the project.

I spoke to stefan a lot about this and the main problem is that if you want a realy wide views support you can't use his solution. It will work in some cases but sadly not always. Thats why I did not directly could use his patch and the issue was solved.

I believe there where newer issues and at least my "RFC" Issue so I am closing this again.

fredo_m’s picture

FileSize
42.27 KB

Great patch, I love to see cumulus in views!

I'm trying to modify the code in a way it takes duplicate terms of a field as weight ( and doesn't show the duplicate terms in the cloud) but I'm really stuck since the code cumulus uses is rather complex.

Has anyone tried that before and may share his/her experience here?

(see screenshot, that should only be 3 terms.. :)

mrsbean’s picture

Version: 6.x-1.x-dev » 6.x-1.5

The Patch doesn't work for the new Version 6.x-1.5 of cumulus.

When I try to patch, this error occurs:

patch -p1 < cumulus_views-integration_11.patch
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: cumulus.info
|===================================================================
|RCS file: /cvs/drupal-contrib/contributions/modules/cumulus/cumulus.info,v
|retrieving revision 1.1.2.2
|diff -u -p -r1.1.2.2 cumulus.info
|--- cumulus.info       27 Jan 2009 09:01:16 -0000      1.1.2.2
|+++ cumulus.info       7 Jan 2010 18:16:13 -0000
--------------------------
File to patch:

Can you please update it?

szy’s picture

Issue summary: View changes

Signature added.