[wp-hackers] Tag cloud semantics
ryanmccue at cubegames.net
Wed Jan 23 06:55:07 GMT 2008
Christine Davis wrote:
> Had anyone given any thought to how the content of the classes should work?
> I ask, because if the intention is for people to add more classes to
> style.css in their theme, they're not going to add an infinite number of
> classes <: and at some point, you could end up in a situation where you have
> a tag using the class tag-cloud-item-n+1 which wouldn't be styled properly
> (and you'd probably have to go back and adjust the other n styles, too.
> Generating the CSS based on the number of times the most popular tag is used
> would be a little more practical; but has trade-offs in that it would be an
> additional CSS file that would need to be included (so themes would need
> tweaking), and you also lose a bunch of control over how it looks (unless
> you add eleventy billion parameters to control everything).
> (In UTW, I did it with styles against individual items to avoid the "not
> enough classes" issue, while also skipping the linking-to-generated-CSS
> issue (The alternative being, I guess, a wodge of CSS in the page; but then
> there's the issue of making sure it shows up just the once. So many little
> ways it could go wrong!). That said, it was pretty easy to ask UTW to
> generate a tag cloud with classes)
> And isn't this the kind of interface thing that widgets and plugins can deal
> with, anyway? (jus' sayin')
> On 1/23/08, Otto <otto at ottodestruct.com> wrote:
>> Agreed, we need to use classes and remove the explicit font styles
>> See these:
I was thinking something like tag-high-pop, tag-norm-pop, etc. Although,
the names need not really matter. Anything would be an improvement.
More information about the wp-hackers