Closed (fixed)
Project:
Views Cloud
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2009 at 10:31 UTC
Updated:
17 Nov 2009 at 22:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
Drupalone commentedThe Answaer was simple:
alter views-cloud-summary-style.tpl.php like this:
old:
<a href="<?php print $row->url; ?>"><?php print $row->link; ?></a>new:
<a href="<?php print $row->id; ?>"><?php print $row->link; ?></a>But I still ask myself if there should'nt be a way to manage this thrue the interface... or is there one that I haven't found yet?
Comment #2
Drupalone commentedok, i just found out, I wrote complete nonsens. It doesn't help, its a mistake...
So my problem is still existing.. :-(
Comment #3
Drupalone commentedThis is it, at the end:
<a href="<?php print url('taxonomy/term/'.$row->term_node_tid); ?>"><?php print $row->link; ?></a>:-) have fun!
Comment #4
dleucata commentedmaybe i didn't understand what you were meaning, but using the attached view, every time i click on a tag on the cloud, i get to a page with a list of the nodes with that tag, sorted by date.
you can obviously change the sort order.
hope it helps.
Comment #5
hannesh commentedThis takes me to the mypage.com/taxonomy/term/ and not mypage.com/taxonomy/term/1
Comment #6
_sparrow_ commentedI have the same issue.
Whenever I click the term in a cloud, it gets me to /cloud/term%20name . By common logic, the term should be linked to its taxonomy/term/tid page or its alias such as /termalias .
#3 doesn't help at all -- all terms in a cloud get linked to tid of the first term in the list.
Comment #7
kasha_x commentedsame problem here
Comment #8
momper commentedsame problem
Comment #9
bellesmanieres commented@serge.chepurko : #3 does work, I confirm. What Drupalone meant was replacing line 17
<a href="<?php print $row->url; ?>"><?php print $row->link; ?></a>with<a href="<?php print url('taxonomy/term/'.$row->term_node_tid); ?>"><?php print $row->link; ?></a>, not adding it at the end of the file.You'd better use that line instead :
<?php print l($row->link, 'taxonomy/term/'.$row->term_node_tid, $options = array('attributes' => array('alt' => 'See all pages related to '.$row->link.''))) ?>That's basically the same, but let the urls go through Drupal's handling mechanism, meaning that aliases and links output will work correctly.
By the way, I guess the proper way to do that should be by using the bunch of options, in the "Field" options of Views, that state "Rewrite the output of this field", "Output this field as a link", "Trim this field to a maximum length", "Link this field to...", etc. Unfortunately, they seem to have no effect when the style is set "cloud", so I guess the module is bypassing these ???
[edit]I forgot to mention : of course don't touch the views-cloud-summary-style.tpl.php of the module directly. Copy it to your theme's folder and make the changes there. (Don't forget to empty the cache)[/edit]
Comment #10
momper commentedthanks a lot ...
... i'm in a hurry and had only short time to test - but is it possible, that $row->term_node_tid is empty?
Comment #11
momper commented@#9
it's not working - is something missing in my view? if i want to print it: $row->term_node_tid it's empty ...
Comment #12
momper commented@#9: did you test it? does it work for you?
Comment #13
momper commentedok - i now use taxonomy id as argument - it's working :)
but no node code anymore ...
thanks momper
Comment #14
quicksketch