Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#451 2008-06-30 16:14:28
Re: tru_tags: A tagging plugin for textpattern
kyber – it’s probably a problem with the formatting of the Keywords field. Check out that field (over on the left side of the Write page, under “Advanced”) after submitting a post through livewriter, and again after manually saving the article.
OpalCat – the section, page, and form names are completely up to you, and depend on your current installation and how you want to manage things. The best advice I have (until I get the documentation written) is to first build a regular page using the FAQ (linked in my original post) and then convert that over to a tag-based archive.
All – I’m way behind on my tru_tags work again, especially the documentation. It’s going to stay that way for a while, sorry. One of the reasons is that I’m selling the truist.com domain and will be moving all the tru_tags stuff to the new domain. I have about a week to get that done. I’ll update all the links here once I do it. I’ll try to make sure all the links are updated, but you may need to update any bookmarks you have after the move.
Offline
#452 2008-06-30 16:39:07
- kyber
- New Member
- Registered: 2007-07-29
- Posts: 7
Re: tru_tags: A tagging plugin for textpattern
truist, thanks for quick response – looked carefully at the difference but could not see anything obvious so I tried formatting the keyword submission in livewriter in several ways and finally found that everything works IF I use just commas but NO spaces to delimit the keywords. Thus: zfoxtrot, zgolf, zhotel means that the latter two keywords do not link correctly until the article is resaved in textpattern’s admin interface but if I enter foxtrot,zgolf,zhotel in livewriter all is well.
What is curious though is that the distinct keywords shown up in the cloud and indeed in the advanced view even when I include spaces, it is just that only the first works. Perhaps the admin interface removes redundent spaces but livewriter does not and your backend code …. nope, can’t figure it out which is why I don’t try to write these things. I just have to remember not to type spaces (a pain in the neck).
In case I forgot to mention it: great plugin, thanks for your efforts.
Offline
#453 2008-06-30 17:28:55
Re: tru_tags: A tagging plugin for textpattern
(Edit: Oops, sorry didn’t see the latest posts)
kyber In which form does livewriter post the keywords?
With spaces? tag1, tag2, tag3
Can you try to post tags without spaces?
Can you try http://mysite/tag/%20zbeta/? (%20=space)
That the 1st tag works seems to indicate such a ‘space’ problem.
Related: See above
Note: The whole problem has nothing to do with the tru_tags plug-in but with the XML-RPC implementation available for TXP.
Last edited by merz1 (2008-06-30 17:31:47)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#454 2008-06-30 17:36:33
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: tru_tags: A tagging plugin for textpattern
truist wrote:
OpalCat – the section, page, and form names are completely up to you, and depend on your current installation and how you want to manage things. The best advice I have (until I get the documentation written) is to first build a regular page using the FAQ (linked in my original post) and then convert that over to a tag-based archive.
Yes, I understand that. I tried that and could not get it to work. That’s why I said that I knew the names can be whatever but I would like to see an example of something that works. If you give me an example that would work, then I could customize it later. For now I just want to get it to work. That’s why I asked for examples in a very clear and simple way. The FAQ did not give me the information I needed. I was able to make a regular archive but I can’t get the tag archive to work. Can you pretty pretty pretty please just give me an actual example that doesn’t require me to make up my own variables and so on? I understand that the actual names depend on my settings and such, but I need an example that is internally consistent to use as a reference. Hell, use terms like “foo” or whatever, I just would like to see a an example of a working model’s code, not just an explanation of how to come up with the code myself. I need something I can cut and paste and then edit, rather than instructions for how to start from scratch. I need to know things like “this form is called X and is an article/misc/whatever form” and “this code goes in an article/in a page/in a form” that kind of stuff. I need to see how the parts interrelate. As I said, I tried to do it myself already and was not able to figure it out. I hope that I’ve explained what I need a little better?
Last edited by OpalCat (2008-06-30 17:40:13)
—
WebKat
Offline
#455 2008-06-30 18:51:38
- kyber
- New Member
- Registered: 2007-07-29
- Posts: 7
Re: tru_tags: A tagging plugin for textpattern
merz – thanks for taking the time to offer some suggestions, as you saw I did crack it when I left spaces out – during my experiments, I tried with a space in he uri and this also failed. I am happy to accept that the problem is with xml-rpc but it is strange that the tags are shown in the cloud and come up on admin page where a resave (no edits) solves the problem. I did wonder if it was a perfectly reasonable parsing limitation in the backend code for tru_tags (problem in common with any other backend processing of tags). When I have time, I shall have a look at what gets entered into the database from a livewriter push (that much I can do).
Offline
#456 2008-06-30 18:52:09
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: tru_tags: A tagging plugin for textpattern
OpalCat, here’s a quick example I’m using. (I don’t use separate pages for sections so I’m using if_section.)
On the page:
<txp:if_section name="tag">
<div id="tag">
<txp:tru_tags_if_tag_search>
<h2>Tag: <txp:tru_tags_tag_parameter striphyphens="1" /></h2>
<txp:tru_tags_handler section="artikelen" form="tag_results" noarticles="/tag/" />
<txp:else />
<h2>Alle tags</h2>
<txp:tru_tags_cloud wraptag="ul" break="li" breakclass="tag" />
</txp:tru_tags_if_tag_search>
</div>
</txp:if_section>
Form ‘tag_results’:
<div class="taglist">
<h3 class="tag"><a href="<txp:permlink />" title="link naar <txp:title />"><txp:title /></a></h3>
<p><txp:rss_auto_excerpt words="25" overrideexcerpt="1" ending=" " linktext=" ...lees verder" linkwraptag="" wrapreadmore="1" showlinkwithbody="1" striptags="1" /></p>
</div>
I hope you can work it out from here.
Offline
#457 2008-06-30 20:35:16
Re: tru_tags: A tagging plugin for textpattern
kyber – tru_tags uses its own code (and query) to generate the tag cloud, but relies on the Textpattern code to do the tag search. The Textpattern code changed not-too-long-ago to save all keywords without spaces, but to re-insert the spaces when displaying things on the Admin pages. (And take them out again when saving.) I’m guessing that tru_tags is using a more permissive query than TXP is… although I thought I updated the tru_tags query to match. The root problem is in the XML-RPC implementation behaving differently than the direct user-interface, although I probably could also make tru_tags match TXP a little better.
OpalCat – if you still need a working example, please send me your email address (truist-20080630@truist.com) and I’ll send you login credentials for my test site, and you can poke around and see how I did it.
Offline
#458 2008-06-30 21:40:09
Re: tru_tags: A tagging plugin for textpattern
truist wrote:
The root problem is in the XML-RPC implementation behaving differently than the direct user-interface
Maybe Wet can help?
Offline
#459 2008-07-01 16:25:54
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: tru_tags: A tagging plugin for textpattern
Cool, thanks Els and truist. I will try that in the next few days and see if I can get it working. :D
—
WebKat
Offline
#460 2008-07-03 12:27:19
Re: tru_tags: A tagging plugin for textpattern
All – I still haven’t documented it, but I just released tru_tags v3.3. There are no new features in the release; it just fixes all the internal URLs to point to “rainskit.com” instead of “truist.com”. Oh, and by the way, my site has moved from “truist.com” to rainskit.com :) I tried to update all the links here in the forum, but I’m sure I missed a few (and probably a few references to my email address). If you come across an old link, please just replace “truist.com” with “rainskit.com” and everything should work.
Offline
#461 2008-07-03 13:27:45
Re: tru_tags: A tagging plugin for textpattern
Bug: The 1st link on the help page is relative and leads to a 404!
/blog/493/trutags-a-tagging-plugin-for-textpattern
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#462 2008-07-03 13:30:38
Re: tru_tags: A tagging plugin for textpattern
Whups! Fixed and republished as 3.3. Thanks, as always, for your attention to detail :)
Offline
#463 2008-07-03 14:15:14
Re: tru_tags: A tagging plugin for textpattern
The download page has 3.1 as the current download. Are 3.2 and 3.3 linked somewhere else?
Thanks
Mike
Offline
#464 2008-07-03 14:18:19
Re: tru_tags: A tagging plugin for textpattern
I don’t really want to post 3.2 (and 3.3) on the download page until I’ve documented their features. I released them here on the forum just to get them out to people who needed them (and know how to use them). It will be a while before I have time to document them.
You can get 3.3 here
Offline
#465 2008-07-03 14:42:58
Re: tru_tags: A tagging plugin for textpattern
(Edit: Oh I see, the basic feature is already in group 5 of your tru_tags roadmap)
Feature Request: Group tags, tag groups like on del.icio.us
Esp. useful for the new feature ‘archive page’!
What comes to my mind is creating relations to existing TXP categories as categories are a natural TXP content structure above tags.
(And don’t forget the A-Z index pages requested earlier :)
Last edited by merz1 (2008-07-03 14:48:37)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline