Download & Extend

Port Views Cloud to Drupal 7

Project:Views Cloud
Version:6.x-1.2
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Hi! do u have any plans for d7?

Comments

#1

subscribe

#2

Title:d7 version?» Port to Drupal 7
Category:feature request» task

subscribing to this.

#3

Dear maintainers, how is the timeframe/planning for a D7 port of views cloud?
Are you working on it, do you need help?

#4

Subscribe

#5

subscribe

#6

Subscribe

#7

subscribe

#8

subscribe

#9

subscribe

#10

subscribing

#11

Title:Port to Drupal 7» Port Views Cloud to Drupal 7

Renaming for better tracking ...

#12

Subscribing

#13

+1

#14

subscribe

#15

Subscribe!

#16

subscribing

#17

subscribe

#18

subcribe

#19

Subbing. D7 really need it.

#20

subscribe

#21

Status:active» needs review

Initial patch against 6.x-1.x branch.

AttachmentSize
d7-1042554-21.patch 843 bytes

#22

Subscribing

#23

Subscribing

#24

Subscribing

#25

For some reason the patch in #21 didn't attach properly. I'm reattaching the same patch.

@wapnik -- did you test this? are you saying that you only have to change the views api designation to completely upgrade to a d7 version?

AttachmentSize
views_cloud-d7-upgrade_1042554-25.patch 843 bytes

#26

Hi,

Against 6.x-1.2 I'm getting:
patch.exe --binary 0

#27

@WorldFallz: yes, it's working for me. I also used a patch from #893054: Problem with field rewrite and nid, which is not yet in.

#28

Subscribing

#29

Subscribing

#30

submarine

#31

I'm getting:

Checking patch views_cloud.info...
error: while searching for:
description = Allows views and summaries to be displayed as clouds of weighted items.
dependencies[] = views
package = Views
core = 6.x

error: patch failed: views_cloud.info:2
error: views_cloud.info: patch does not apply
Checking patch views_cloud.module...

#32

sub...

#33

subs.

#34

subscribe...

#35

or follow?

#36

FYI: in Drupal 7 you can do this with just views as well since it has support for aggregation, attached an exported view, the only thing you need is some css like

span.count-1 {font-size: 0.7em;}
span.count-2 {font-size: 0.9em;}
span.count-3 {font-size: 1.1em;}
span.count-4 {font-size: 1.3em;}
span.count-5 {font-size: 1.5em;}
span.count-6 {font-size: 1.7em;}
span.count-7 {font-size: 1.9em;}
AttachmentSize
nodes_cloud.view_.txt 7.01 KB

#37

@attiks
i've import your view and add the css to my theme.css but it doesn't work.
do i have to create a css class in views?

#38

i've added the css to the views.css and now it works.

thanks for that

regards

konsul

#39

@attiks @konsul - So you're suggesting we just close this issue (say won't fix), post a diff to the views.css file and point folks to doing it that way.

Perhaps it is something that should be contributed back to Views so it can come bundled with the next version.

If the maintainers are keen about putting out a D7 version, great. Not sure that Views Cloud does more than what this CSS does.

#40

@mgifford: i just posted my work around so other people might benefit, it's working for me, but i doubt if it's a general solution for all situations.

#41

@attiks

the only problem with this solution is that if a user tags 1000 contents with "whatever" i have to write 1000 times span.count-x...if i dont the default font-size is used each time a count isnt determined via css.

is it possible ...

1. to assign lets say count 1-10 to fontsize 1em, 11-30 to 1.2em and so on?

2. to determine 10 default fontsizes, count the number of all tags (on all nodes from logged in user) and convert them to %...like span.count-(1-10%), (11-20%) and so on?

#42

@konsul, that's true and there's no clean solution, you can always try to add a field of type Global: Math Expression and the calculation and use it in the rewrite. But it means you have to now the max number of tags, and divide the count by the total.

i1042554.png

A proper solution is to use a custom field handler that returns the total number of tags so you can use it to do the calculation, it means an extra query, but doing this type of calculation in one query will be difficult.

AttachmentSize
i1042554.png 46.91 KB

#43

I created a sandbox project (http://drupal.org/sandbox/attiks/1451746) containing a views field that returns that max count so you can use Math Expressions like: (([title] / [dummycount]) * 6) + 1 // Classes named as in #36

#44

@ all...i've got it to work with attiks sandbox project and the following view as an example.

many thanks to attiks...i've looked for a good solution for a long time

AttachmentSize
cloud (2).txt 12.63 KB

#45

I tried cloning the repo on http://drupal.org/sandbox/attiks/1451746, but it only contains a README.txt file. Or am I missing something?

#46

you did: git clone --branch 7.x-1.x attiks@git.drupal.org:sandbox/attiks/1451746.git views_dummy_count

#47

Great, thanks!

#48

Just wanted to confirm that this solution (attiks' sandbox + konsul's view) works great, thanks guys!

#49

I tried git clone --branch 7.x-1.x attiks@git.drupal.org:sandbox/attiks/1451746.git views_dummy_count. It asked me for the password...

Please ignore it :P I found what's wrong I have.
The command is: git clone --branch 7.x-1.x [username_in_Drupal]@git.drupal.org:sandbox/attiks/1451746.git views_dummy_count

#50

Or use git clone --branch 7.x-1.x http://git.drupal.org/sandbox/attiks/1451746.git views_dummy_count

nobody click here