Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-03-07 21:33:42
- p_see
- Member
- Registered: 2006-02-24
- Posts: 17
Re: tru_tags: A tagging plugin for textpattern
Class attributes don’t work for me too.
??p_see – why do you want the different url? Just so it is “completely messy” rather than “partially messy”? Is one better than the other? (I’m not criticizing – I’m wondering if I should make the change.)??
I changed the url just because the native’s url don’t work with messy. Thus I have to “fix” the URL. It is just a troubleshooting report. It would be better, I can imagine, if url was “partally messy”, but working with messy.
I would like to make a suggestion: it would be practical to have a popup list in the advanced options with all the existing tags (like the popup categories). When selecting a tag in the popup it woulb be added in the keywords area. I don’t know if it is difficult to implement…
@+
Last edited by p_see (2006-03-07 21:38:43)
Offline
Re: tru_tags: A tagging plugin for textpattern
Hi truist,
how I can use a custom field like in ran_tags?
thanks!
Offline
Re: tru_tags: A tagging plugin for textpattern
Is it just me or do the class and breakclass attributes not work?
They do work, if you specify a wraptag and/or a break. For “class” to work, you have to specify a wraptag that is a html tag. For “breakclass” to work, you have to specify a break that is a html tag. The common case is:
<code>txp:tru_tags_from_article wraptag=“ul” break=“li” class=“ul_class” breakclass=“li_class”</code><br><br>
If you don’t specify a wraptag then there’s nowhere to put the class, and if you don’t specify the break the default break is a comma, which isn’t an html tag, and therefore can’t have an attribute.
changed the url just because the native’s url don’t work with messy
By “don’t work” you mean that the tag search isn’t working? If so, I’ll fix it right away :)
would be practical to have a popup list in the advanced options with all the existing tags
I’ll bet it’s quite possible. I’m going to keep it in mind for a “version 2,” as I don’t have time to dig into admin plugins just yet.
how I can use a custom field like in ran_tags
I’m sorry to say that you can’t. Part of the simplicity of the code is that it depends on the Textpattern code, which only uses the Keywords field.
If you weren’t using the Keywords field for anything else, but did still want to use a custom field for tru_tags, you could modify the Textpattern code to do so. But that seems like an unusual case.
Last edited by truist (2006-03-10 00:40:38)
Offline
#16 2006-03-08 02:14:39
- p_see
- Member
- Registered: 2006-02-24
- Posts: 17
Re: tru_tags: A tagging plugin for textpattern
Messy URL
As I say in my first post:
This is the type of url we got :<code>http://mysite/tag?t=nikon </code>
So the tag search don’t work because the “tag section” is not called. We must have instead: <code>http://mysite/?s=tag&t=nikon</code>
This is why I have changed the 2 lines of the path url like this:
<code>$url = ‘http://’ . $siteurl . $path_from_root .’?s=’. $tagsection . ‘&t=’;</code>
would be practical to have a popup list in the advanced options with all the existing tags
I’ll bet it’s quite possible. I’m going to keep it in mind for a “version 2,”
Good!
Offline
Re: tru_tags: A tagging plugin for textpattern
truist wrote:
They do work, if you specify a wraptag and/or a break. For “class” to work, you have to specify a wraptag that is a html tag. For “breakclass” to work, you have to specify a break that is a html tag.
If you don’t specify a wraptag then there’s nowhere to put the class, and if you don’t specify the break the default break is a comma, which isn’t an html tag, and therefore can’t have an attribute.
Brilliant. I should have figured that out. Thanks!
Not sure if this was being planned, but I had the need to output a list of the tags and how many articles are associated with each tag—like a category list. I just copied and modified the tru_tags_cloud function to create a tag called “tru_tags_catlist” Here’s the modified plugin (the new function is at the bottom): tru_tags.txt
Offline
Re: tru_tags: A tagging plugin for textpattern
i have a little problem, when i click a tag, for exampel sun, you get a list with all tag with sun in the name, like sunshine, sunne and so on…
Offline
Re: tru_tags: A tagging plugin for textpattern
I’ve published a new version, with a lot of (backwards compatible) changes. They are:
- p_see – I finally got what you were talking about, and incorporated your change. tru_tags will now work on sites that are configured to use messy urls.
- gdtroiano, your change was a great idea. I incorporated it, but not by adding a whole copy of tru_tags_cloud. Instead, I’ve made a new function (tru_tags_list) that can generate any sort of list – a cloud, a bulleted list, with/without tag counts, and with/without font-size changes. tru_tags_cloud now just calls tru_tags_list with appropriate defaults. If you want to upgrade, you should just be able to switch your “tru_tags_catlist” call over to say “tru_tags_list showcounts=“true”“. There are some other fancy customization options there, if you want them :)
- As part of the rework of tru_tags_cloud, I added two new attributes: minpercent and maxpercent. These let you control the generated font-size percentages. They default to 100 and 200 (which is what they were hard-coded to before).
himynameisjonas, your problem is another side-effect of reusing the Textpattern code. It does a “like” match on the tags, which will match substrings. Sorry :-(
Finally, I’ve updated the features list to include these new features, and a list of all the issues/bugs/missing features I’m aware of. (I’ve also updated the usage instructions.)
Last edited by truist (2008-07-03 12:07:37)
Offline
#20 2006-03-10 11:06:45
- p_see
- Member
- Registered: 2006-02-24
- Posts: 17
Re: tru_tags: A tagging plugin for textpattern
Hi, I had difficulties to explain because of my poor English.
The w3.validator ask to change the <code>’&t=’</code> (in the url) to <code>’& amp;t=’</code>. (Without the space beetwen “&” and “amp;”).
You can add this small modification for next the release.
As far as I can say Tru_tag is small, easy and beautiful.
Thanks again.
Offline
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
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
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
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