Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-02 16:17:24
- dukny
- Member
- Registered: 2006-02-20
- Posts: 14
Displays a weighted list of all tag as a tag cloud
I want to display a weighted list of all tag as a tag cloud
um…when using the <a href=“http://www.cokesque.com/code/137/chhkeywords”>chh_keywords</a> plug-in
This tag,
<txp:chh_keywords_list_all weightclass="class name" />
<br>
weightclass="class name"
<br>
I don’t know way to do weightclass (css class attribute)
help me thanks
Offline
#2 2006-03-02 17:05:29
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: Displays a weighted list of all tag as a tag cloud
Could you restate your question a little more clearly, please? I’m not sure that I understand the problem.
The weightclass
parameter to chh_keywords_list_all
, as far as I can tell, takes the name of a CSS class, which you’ll need to define in your site’s CSS in order to style the tag cloud.
-Kurt
kurt@kurtraschke.com
Offline
#3 2006-03-02 18:02:47
- dukny
- Member
- Registered: 2006-02-20
- Posts: 14
Re: Displays a weighted list of all tag as a tag cloud
Thanks KurtRaschke
How it does to set in the CSS
for example,
.weighted {font-size:12px;}
??
<br />
I don’t really know how :( …
Last edited by dukny (2006-03-02 18:46:05)
Offline
Re: Displays a weighted list of all tag as a tag cloud
For weightclass="myclass"
, links will be assigned a class of myclass1
or myclass2
or myclass3
…all the way up to myclass10
.
So you will need to define those classes — all ten of them — in your CSS.
<pre>
/* Most common */
.myclass10 {
font-size: 16px;
font-weight: bold;
}
/* Least common */
.myclass1 {
font-size: 10px;
}
/*
If you want 10 different weight styles,
you’ll need 10 different class entries.
Or, you can lump a bunch of them together:
*/
.myclass2, .myclass3, .myclass4, .myclass5,
.myclass6, .myclass7, .myclass8, .myclass9 {
font-size: 12px;
}
</pre>
In the future, you should really ask questions about a plugin in the plugin’s main thread (or at least in a thread in the plugins forum). In this case, that is the chh_keywords thread.
Of course, if you’re having problems with CSS, you’ll probably be better off asking the the Layout & CSS Discussion forum, because I, for one, tend to be too impatient to help people fine-tune their styling issues. I’m just grumpy that way.
Offline
#5 2006-03-03 12:50:00
- dukny
- Member
- Registered: 2006-02-20
- Posts: 14
Re: Displays a weighted list of all tag as a tag cloud
Thanks.
This one works perfectly.
Offline