Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2006-08-28 18:12:28

alfette
Member
From: Cologne, Germany
Registered: 2006-08-22
Posts: 20

Re: tru_tags: A tagging plugin for textpattern

Hello Nathan,
yes! Now it is perfect.
I hope I will learn fast!
Thanks for your quick answer!
Bye, Alfette

Last edited by alfette (2006-08-28 18:12:51)

Offline

#122 2006-08-28 18:56:31

alfette
Member
From: Cologne, Germany
Registered: 2006-08-22
Posts: 20

Re: tru_tags: A tagging plugin for textpattern

… and sorry, here I am again with one more question. I did not understand the right way to capitalize the displayed tags. In my stylesheet I created a class
<code>.capitalize{
text-transform: capitalize;
}</code>

In the article form I try to call the class:
<code>
<txp:tru_tags_if_has_tags>
<txp:tru_tags_from_article class=“capitalize” />
</txp:tru_tags_if_has_tags></code>

But it’s still not.
And: Is ist so, that with this capitalization the whole word is shown in big letters? Or is it possible to have just the first letter capitalized?

Thanks again. I hope I don’t trample too much on your nerves. I’m very new with textpattern… But with this great forum I will soon be a better webdesigner.

Alfette

Offline

#123 2006-08-29 00:40:55

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 256
Website

Re: tru_tags: A tagging plugin for textpattern

alfette –

Textpattern tags that take a “class” attribute generally apply that class to whatever element is specified by the “wraptag” attribute, so you probably want something like:

<code>
<txp:tru_tags_from_article wraptag=“p” class=“capitalize” />
</code>
<br>

Just a small “best practices” note, though: it’s generally not a good idea to create CSS classes that are simply the name of the style you are trying to apply. Instead, you should create a class that represents the type of information being displayed (in this case, “tags”) and then style that class however you like (in this case, “capiltalize”). That way if you change the styling later (“bold” instead of “capitalize”) your class name is still meaningful and isn’t confusing.

I think that “text-transform: capitalize” just makes the first letter capitalized. “text-transform: uppercase” makes it be all-caps. Check out this page for details.

And no worries – you’re not trampling my nerves :)

Offline

#124 2006-08-29 14:06:11

alfette
Member
From: Cologne, Germany
Registered: 2006-08-22
Posts: 20

Re: tru_tags: A tagging plugin for textpattern

Thanks, Nathan, for your support. Everything is fine now. And I know a little bit more!
A lot of greetings from Cologne, Alfette

Offline

#125 2006-08-30 09:41:41

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tru_tags: A tagging plugin for textpattern

Some RFE and conceptual thoughts about tru_tags future:

@Nathan, I have been reading through an old but very interesting thread regarding tag clouds at performancing.com. There are some pretty good conceptual ideas of how to develop the idea of the tag cloud further on.

Richard Harlos i.e. has the idea in this comment to color tags by age and to have a possibility to combine tags. That’s a very useful conceptual approach although I am criticizing it because of usability concerns.

But as the main concern is to give the readers a better possibility to dig in your archive it might be a good idea to think in advance before the archive or the amount of tags becomes too big.

And some more RFE from me:

I want a grouped index of tags – like the index in a book. Beside the ‘normal’ alphabetical grouping I think that grouping by categories or sections would make great indexes also.

When grouping alphabetically a listing of article titles or even excerpts at/below every tag might be (?) useful.

A tag list ordered by article date (!) and with a limit would also make sense to show only the tags from recent articles.

As I said above these thoughts are only conceptional and for discussion. Maybe others can throw in their comments to show up priorities.

Last edited by merz1 (2006-08-30 09:43:21)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#126 2006-09-20 15:47:27

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: tru_tags: A tagging plugin for textpattern

Wonderful plugin, and good effort.

It works for me, in messy, but in clean url mode it gives me a 404 error. Like here:

http://www.olivernielsen.com/tag/lightroom

My .htaccess looks like this:
<code>#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
#This path should match the relative url of your Textpattern install
RewriteBase /
#If you’re using a section other than “tag”, change the following two rules accordingly
RewriteRule ^tag/([^/]+)$ tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1 RewriteRule ^(.*) index.php
</IfModule></code>

Last edited by raveoli (2006-09-20 17:19:02)

Offline

#127 2006-09-20 16:03:07

bluearc21
Member
From: US.VA
Registered: 2004-02-24
Posts: 62
Website

Re: tru_tags: A tagging plugin for textpattern

Sounds like a .htaccess issue.


“If you build it, they will come.”

Offline

#128 2006-09-20 16:06:29

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: tru_tags: A tagging plugin for textpattern

Yeah, I just posted the .htaccess in above post, sorry I forgot it;-)

(ADD)

Offline

#129 2006-09-20 17:03:15

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 256
Website

Re: tru_tags: A tagging plugin for textpattern

raveoli – I assume you’re using apache?

In your post above, there are two places where it says “< sup >” (without the spaces) – is that what it says in the actual .htaccess file? Those should be carat (^) signs.

Offline

#130 2006-09-20 17:13:15

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: tru_tags: A tagging plugin for textpattern

If I turn on debugging in the admin, I get these errors, which I don’t really know what to do about…

<code>
tag_error <txp:tru_tags_from_article/> -> Notice: Undefined variable: tag_class on line 276
textpattern/lib/txplib_misc.php(512) : eval()’d code:66 tru_tags_render_cloud()
textpattern/publish.php:956 tru_tags_from_article()
processTags()
textpattern/publish.php:915 preg_replace_callback()
textpattern/lib/txplib_misc.php(512) : eval()’d code:77 parse()
textpattern/publish.php:956 tru_tags_if_has_tags()
processTags()
textpattern/publish.php:915 preg_replace_callback()
textpattern/publish.php:702 parse()
textpattern/publish.php:802 doArticles()
tag_error <txp:tru_tags_from_article/> -> Notice: Undefined variable: style on line 276
textpattern/lib/txplib_misc.php(512) : eval()’d code:66 tru_tags_render_cloud()
</code>

etc

Last edited by raveoli (2006-09-20 17:14:57)

Offline

#131 2006-09-20 17:21:17

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: tru_tags: A tagging plugin for textpattern

Hey Truist, no it does not look like that. It’s the forum fucking it up. I tried putting the code in code-tags and == etc, but to no avail.

I can’t remember how to post code here, it’s been a while since I did it, so I’ve totally forgotten it

Last edited by raveoli (2006-09-20 17:47:56)

Offline

#132 2006-09-20 21:39:28

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 256
Website

Re: tru_tags: A tagging plugin for textpattern

I get those same errors if I turn on debugging – thanks for catching that! But they’re not the source of your problem, given that my site is working.

I checked over your .htaccess code – it matches mine exactly.

What version of tru_tags, Textpattern, apache, and php are you using? A mismatch with one of those seems like the next-best thing to investigate.

Offline

Board footer

Powered by FluxBB