Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2006-03-10 17:35:38

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

Re: tru_tags: A tagging plugin for textpattern

Fixed, and posted as v1.1 (no version bump). Thanks so much for all your help!

Offline

#22 2006-03-10 20:19:22

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

Re: tru_tags: A tagging plugin for textpattern

I’ve published a new version…

Excellent! Thanks for this great plugin.

Now if I only knew htaccess well enough to make clean urls…

Offline

#23 2006-03-10 22:01:06

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

Re: tru_tags: A tagging plugin for textpattern

Awesome plugin! Do you have plans to put the rel=“tag” in the urls for Technorati?


“If you build it, they will come.”

Offline

#24 2006-03-11 00:23:20

OIZee
Member
From: Denmark
Registered: 2006-03-10
Posts: 11
Website

Re: tru_tags: A tagging plugin for textpattern

Hi! Just started using the tru_tags plugin – nice one. But I can’t get the “prev.” “next” links to work when I browse the tags (like http://mysite.com/?s=tag&t=blog)

My default page look like this (just the content part):

<code>
<div id=“content”>

<txp:if_section name=“tag”> <txp:tru_tags_handler />
<txp:else /> <txp:article />
</txp:if_section>

<txp:if_individual_article>
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>

</txp:if_article_list>

</div>
</code>

What should I do to show the “prev.” “next” links when I browse articles by tags?

Regards
Brian

Offline

#25 2006-03-11 02:06:31

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

Re: tru_tags: A tagging plugin for textpattern

gdtroiano, you and I are proving why pair programming is such a great thing. I hadn’t even though of using rewrite rules to make clean urls work. It’s hacky, but I got it working :)

I’ve posted a new version (v1.2), with support for clean urls (if you modify .htaccess), <code>rel=“tag”</code>, and showing tag counts in the <code>title</code> attribute. All of it is backwards compatible, and will behave like it used to if you don’t change anything.

I’ve also added a tiny bit of documentation to indicate that <code>tru_tags_handler</code> will take all the <code>tru_tags_cloud</code> attributes.

Please read the documentation about clean urls before using them. You have to modify your .htaccess file and the plugin (in one easy place) to make it work.

Download here and read the instructions here.

OIZee, the issue with the pagination is another side-effect of the <code>doArticles()</code> reuse, and there’s nothing I can do about it. It will show all the tagged articles (no matter how many!) on one page.

Offline

#26 2006-03-11 08:25:36

OIZee
Member
From: Denmark
Registered: 2006-03-10
Posts: 11
Website

Re: tru_tags: A tagging plugin for textpattern

Well, that’s the problem. It doesen’t show more that the first 10. It would be fine if it just showed all of them, but it doesn’t.

I have checked again and i have 12 articles in one of my tag-categories, but only 10 are shown with “?s=tag&t=thetagname”.

Thanks for the quick reply :-)

Regards
Brian

Offline

#27 2006-03-11 11:33:38

himynameisjonas
Plugin Author
From: Sweden
Registered: 2004-10-15
Posts: 21
Website

Re: tru_tags: A tagging plugin for textpattern

is there any way to make swedish character to work in tags?

Offline

#28 2006-03-12 03:37:09

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

Re: tru_tags: A tagging plugin for textpattern

You’re a lifesaver. I was getting 404 errors so I had to fiddle with the .htaccess to get it working on my sever, but I finally did it.

Another question: Is it somehow possible to use an < txp:else /> statement with the tru_tags_if_tag_search tag? I ask because I would like to customize the title, but I’m already using the ob1_title plugin and I would like to continue to do so.

Thanks for all the help!

Offline

#29 2006-03-12 20:46:57

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

Re: tru_tags: A tagging plugin for textpattern

It doesen’t show more that the first 10

I figured out the problem. doArticles() uses a default <code>limit</code> of “10”. You can override that yourself by passing <code>limit=“1000”</code> to <code>tru_tags_handler</code>, or you can upgrade to 1.3 (see below).

Is it somehow possible to use an < txp:else /> statement with the tru_tags_if_tag_search tag?

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.

And in other news, I released a new version (v1.3) that bumps the default <code>limit</code> to 1000 when doing a tag search, fixes txp:else support with tru_tags_if_has_tags, and fixed/documented a minor bug with the section keyword and tru_tags_handler.

Download here

Offline

#30 2006-03-12 21:44:41

OIZee
Member
From: Denmark
Registered: 2006-03-10
Posts: 11
Website

Re: tru_tags: A tagging plugin for textpattern

Thank you! Works fine now. Great plugin, keep up the good work :-)

Regards
Brian

Offline

Board footer

Powered by FluxBB