Textpattern Forum

You are not logged in. Register | Login | Help

#31 2006-03-13 02:30:09

gdtroiano
Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

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

#32 2006-03-13 11:57:02

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

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

#33 2006-03-13 14:22:25

pospel
Member
From: Ukraine
Registered: 2004-02-23
Posts: 40
Website

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

#34 2006-03-13 14:30:22

gdtroiano
Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

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

#35 2006-03-13 15:13:39

pospel
Member
From: Ukraine
Registered: 2004-02-23
Posts: 40
Website

Re: tru_tags: A tagging plugin for textpattern

gdtroiano wrote:

RewriteRule ^tag/(.+)/$ ?s=tag&t=$1

Seems like it works for me! Thanks! :)

Offline

#36 2006-03-13 15:31:10

pospel
Member
From: Ukraine
Registered: 2004-02-23
Posts: 40
Website

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

#37 2006-03-13 15:39:16

gdtroiano
Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

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

#38 2006-03-13 17:15:47

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

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

#39 2006-03-14 21:46:51

pospel
Member
From: Ukraine
Registered: 2004-02-23
Posts: 40
Website

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

#40 2006-03-15 02:56:13

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

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

Board footer

Powered by FluxBB