Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: tru_tags: A tagging plugin for textpattern
txp:else should have been working with tru_tags_if_tag_search, all along. I did notice that txp:else support wasn’t enabled for tru_tags_if_has_tags, and fixed that (but didn’t test it). You may be running into a textpattern bug where it won’t let you use nested txp:else’s in certain circumstances (I can’t remember what they are). I ran into that problem, and it seems that the general solution is to use multiple forms to hold the if’s. That’s how I got around it on my site.
Now it’s working. Thanks! Now I can die happy.
Offline
Re: tru_tags: A tagging plugin for textpattern
is there any way to make swedish character to work in tags?
I don’t know. I don’t think I’ve done anything to prevent it, so if you’re having problems it may be a Textpattern problem. Have you tried it? Can you tell me what is going wrong?
Offline
Re: tru_tags: A tagging plugin for textpattern
Nathan, the plugin is splending :)
But i have some problems using it, perhaps you can tell me what i do wrong.
I’ve lattest 1.3 version and setup clean URLs accroding your instructions, created tag section.
But when i open on my blog URL something like /tag/internet/ – i receive TXP 404 error – Unknown Section. When i disable cleanURLs – all seem work ok.
Last edited by pospel (2006-03-13 14:23:01)
Offline
Re: tru_tags: A tagging plugin for textpattern
I’m not sure if it helps anyone else, but I had to alter Nathan’s .htaccess code to get it working on my site. I had to replace this line:
I had to replace the x % x % with an actual ampersand(&) like so:
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1
Don’t know if it will help anyone else but…
Offline
Re: tru_tags: A tagging plugin for textpattern
gdtroiano wrote:
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1
Seems like it works for me! Thanks! :)
Offline
Re: tru_tags: A tagging plugin for textpattern
Another issue. How i can customize the output of /tag/tagname pages (i.e. tag search)? It output articles using some weird form. I want it do my way, customizing /tag/tag_name output. Any hints?
update:
Ah, it uses default form. Well, I think it should be possible to override output form for tag search.
Last edited by pospel (2006-03-13 15:39:50)
Offline
Re: tru_tags: A tagging plugin for textpattern
Do you mean how tags with more than one word are shown as tag%20name in the url?
Offline
Re: tru_tags: A tagging plugin for textpattern
I had to replace the x % x % with an actual ampersand(&) like so
Grrrr…. I spent 40 minutes trying to get those rules to render correctly, because of Textpattern / Textile finding new and creative ways to interpret it. I missed that bit. You’re right – it is supposed to be an ampersand. I fixed it on my site.
How i can customize the output of /tag/tagname pages (i.e. tag search)?
I’ve never tested it, but you should just be able to set the default “page” for your “tag” section to whatever you want it to be. You don’t have to leave it set to “default”. (Note that I solved that problem by using my normal form, but putting a <code>txp:if_section name=“tag”</code> in my default form.) See the instructions, in steps 1 and 2.
Offline
Re: tru_tags: A tagging plugin for textpattern
I meant not a page, but a form which outputs article list in tag search. It uses form named “default”, but I want to specify which form to use.
Offline
Re: tru_tags: A tagging plugin for textpattern
I meant not a page, but a form which outputs article list in tag search. It uses form named “default”, but I want to specify which form to use.
Change your tru_tags_handler call to add a <code>form=“yourform”</code> attribute. It works just like txp:article.
Offline
Re: tru_tags: A tagging plugin for textpattern
gdtroiano wrote:
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1
…and if you are using lighttpd server, you’ll need the following two lines (notice the starting ‘/’):
url.rewrite-once = ( “^/tag/(.+)/$” => “/index.php?s=tag&t=$1” )
server.error-handler-404 = “/index.php”
That is if you have named your tag section “tag” and textpattern is at the root of your website.
Regards
Brian
Offline
Re: tru_tags: A tagging plugin for textpattern
truist wrote:
Change your tru_tags_handler call to add a <code>form=“yourform”</code> attribute. It works just like txp:article.
Thanks, you should add this to plugin documentation :)
Also, it will be great if tru_tags_from_article can return a just plain tags list, not only list of tag search links.
And it will be really nice if it was possible to specify not only font sizes for tru_tags_cloud but also styling css classes, for flexible cloud output – for example, i prefer tags in tag cloud to differ not only by size, but also by color – this improves usability.
Anyway thanks for great thing, you plugin totally rocks.
Offline
Re: tru_tags: A tagging plugin for textpattern
gdtroiano wrote:
Do you mean how tags with more than one word are shown as tag%20name in the url?
this would be important for me too. would it be possible to change
<code>/tag/foo%20bar/</code> to <code>/tag/foobar/</code> or <code>/tag/foo-bar/</code>
?
Last edited by sthmtc (2006-03-15 12:05:14)
Offline
Re: tru_tags: A tagging plugin for textpattern
Thanks, you should add this to plugin documentation :)
It is, sort of. It mentions that tru_tags_handler supports all the txp:article attributes.
Also, it will be great if tru_tags_from_article can return a just plain tags list, not only list of tag search links.
Do you mean where they were literally not links? You could get that appearance with a wraptag and a class and some stylesheet work. But it could also be done in code – can you just confirm that that’s what you want?
for example, i prefer tags in tag cloud to differ not only by size, but also by color
I like that idea, but I’m not sure I’ve ever seen such a cloud – can you show me an example? I’m not sure how to implement it.
this would be important for me too. would it be possible to change /tag/foo%20bar/ to /tag/foobar/ or /tag/foo-bar/
Ahhh, now I understand. I’ll start working on this :)
Offline
Re: tru_tags: A tagging plugin for textpattern
Do you mean where they were literally not links? You could get that appearance with a wraptag and a class and some stylesheet work. But it could also be done in code – can you just confirm that that’s what you want?
Yes, I meant just plain list like without any html tags. Something like switching tag output adding attribute generatelinks=“off/on”.
As for advanced styling the tag cloud, instead of font-size: 100%-200% you can add to every tag class definitions like: class=“tagStyle01”, class=“tagStyle02”, class=“tagStyle03” and so on – as much as you have steps for differing the tags in a cloud.
Offline