Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#421 2008-05-28 11:31:01

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tru_tags: A tagging plugin for textpattern

OpaLCat: tru_tags is using a specified article form
Use rss_auto_excerpt in the specified form and everything should be fine.
rss_auto_excerpt allows you to define if it should use an existing excerpt or not.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#422 2008-05-28 12:51:11

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

Re: tru_tags: A tagging plugin for textpattern

By default, tru_tags will use the default “search_form” form for rendering its output. But you can override that by using the “searchform” attribute to “tru_tags_handler”. I tried a normal search on your site and it seems to be doing the right thing (only showing excerpts), so the problem is probably that you have a mismatch between the form used by tru_tags and the one used by the TXP built-in search.

Offline

#423 2008-05-28 13:44:03

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tru_tags: A tagging plugin for textpattern

> tru_tags will use the default “search_form” form

Oops, forgotten, thanks for reminding me of that :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#424 2008-05-28 14:03:17

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: tru_tags: A tagging plugin for textpattern

Yay! That fixed it. Thanks!



WebKat

Offline

#425 2008-06-02 03:15:49

ywickham
Member
Registered: 2005-06-11
Posts: 38
Website

Re: tru_tags: A tagging plugin for textpattern

I was having issues with <txp:tru_tags_handler /> not displaying my list of articles and contacted Nathan on his blog. I’m replying to his response here at his suggestion and in case someone else can shed insight into my issue:

Nathan wrote:

Yazmin – A few guesses: You might just have a problem with a mis-closed tag somewhere. I’ve had a similar problem before, and it turned out to be a missing close tag.

I’ve validated my code, so it doesn’t seem that it’s a mis-closed tag.

What happens when you generate a tag cloud – are the tags there? That may give a clue.

Yes, I do see a tag cloud. I added it to the top right hand corner of the page and that generates just fine.

tru_tags_handler doesn’t show articles that are hidden or future-dated, so are all your articles visible on the normal site?

Yes, they are visible on the site.

Are all your article sections marked “searchable” in the admin?

Yes, they are searchable

What happens if you search for words that are in the tagged articles?

I get a listing of articles with the words in them.

Are you using clean URLs or messy?

I’m using clean URLs.

What happens if you manually construct a messy URL? (Like http://www.truist.com/?s=tag&t=life)

My searches are messy and they seem to work as intended, returning a list of matching articles.

Have you changed any settings on the tru_tags admin page (on the Extensions tab)?

No, I have not.

Any chance there’s a publicly visible example I could see?

Absolutely! My blog is at: http://www.aprettyrock.com/blog. The tag cloud (although probably small when you get to it) will be at the top of the right hand column.

Anyone else who would care to chime in, please do so. :)

Thank you for all the help!

Offline

#426 2008-06-02 03:29:13

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

Re: tru_tags: A tagging plugin for textpattern

Well, crap, it wasn’t any of the easy stuff.

What parameters are you using for your tru_tags_handler call?

Which version of TXP are you using?

What happens if you just put something like “Hello mom!” right after your tru_tags_handler call – does it show up on a tag-search page? (and not anywhere else)

This URL would normally show a complete tag cloud (like mine) unless you’ve done something specific to make it behave differently. It shows nothing, though, which suggests that the problem is site-wide – i.e. in the page/form code.

I also noticed something strange about your site – that same page (with “tag” as the section) actually links to a different page (with “tags” as the section), and that second page looks the same as the first. But a fake URL returns a normal 404 page, which implies that you’ve actually created both a “tag” and a “tags” section. Is something getting crossed between the two of them?

Offline

#427 2008-06-02 03:53:21

ywickham
Member
Registered: 2005-06-11
Posts: 38
Website

Re: tru_tags: A tagging plugin for textpattern

truist wrote:

Well, crap, it wasn’t any of the easy stuff. What parameters are you using for your tru_tags_handler call?

LOL, no, I guess it wasn’t. :)

I’m using the defaults, so I haven’t specified any custom parameters.

Which version of TXP are you using?

Version 4.0.6

What happens if you just put something like “Hello mom!” right after your tru_tags_handler call – does it show up on a tag-search page? (and not anywhere else)

It shows up on both the tag section and other sections that use that particular page, which it shouldn’t be doing, so I guess something must be wrong with my code right there. Here is what I have:

<txp:if_section name=“tag”> <txp:tru_tags_handler /><br />
hello mom!
<txp:else /> <txp:article form=“sticky” status=“sticky” limit=1 /> <txp:article form=“default” limit=“3” listform=“default” /><br />
</txp:if_section>

This URL would normally show a complete tag cloud (like mine) unless you’ve done something specific to make it behave differently. It shows nothing, though, which suggests that the problem is site-wide – i.e. in the page/form code.
I also noticed something strange about your site – that same page (with “tag” as the section) actually links to a different page (with “tags” as the section), and that second page looks the same as the first. But a fake URL returns a normal 404 page, which implies that you’ve actually created both a “tag” and a “tags” section. Is something getting crossed between the two of them?

I wish I could say I had both a “tag” and “tags” section, which would explain a lot, but I don’t. I only have a “tag” section. Which led me to do a quick search of my articles and I found that I had left a “tags” page from trying Ran’s solution. Once I deleted that, the /tag page returned only “hello mom!” and the /tags page gave me the error page.

Maybe there is an error in my code above that would be the quick fix? Something I’m noobish about?

Offline

#428 2008-06-02 08:36:08

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tru_tags: A tagging plugin for textpattern

Something is very wrong with the URL handling. The following return all the same page:

http://www.aprettyrock.com/blog/t
http://www.aprettyrock.com/blog/a
http://www.aprettyrock.com/blog/tags-mlibero

Tested before (also the same output)
http://www.aprettyrock.com/blog/tags/
http://www.aprettyrock.com/blog/tags/jewelry
http://www.aprettyrock.com/blog/tags/markus%20merz
http://www.aprettyrock.com/blog/tag/markus%20merz
http://www.aprettyrock.com/blog/tag/

This is the 1st 404 I get :)
http://www.aprettyrock.com/blog-tags-mlibero

I can’t believe the reason for the wrong URL handling is tru_tags or Textpattern. Pls. check the basic server setup.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#429 2008-06-02 10:57:44

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tru_tags: A tagging plugin for textpattern

truist Nathan, I have an interesting problem regarding single keywords :)

A client wants to pay for an ad coming up only on a single tag search result page. AFAIK tru_tags doesn’t support such an if/else trigger at the moment.

Everybody a.k.a. wisdom of the crowd How do i use standard core TXP article or article custom features to only generate an output in the tru_tags keyword search result article list if a specific keyword is called?

The ‘tru_tags keyword search result article list’ is a page template so it shouldn’t be too difficult but right now I am blocked a little bit.

I will dive into the problem later but right now I wanted to share my ‘problem’ :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#430 2008-06-02 13:13:50

ywickham
Member
Registered: 2005-06-11
Posts: 38
Website

Re: tru_tags: A tagging plugin for textpattern

merz1 wrote:

I can’t believe the reason for the wrong URL handling is tru_tags or Textpattern. Pls. check the basic server setup.

Thank you, but I need further information. I’m not sure what I should be checking for in my server setup.

Offline

#431 2008-06-02 13:21:51

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: tru_tags: A tagging plugin for textpattern

> wrong URL handling

Check the .htaccess file for ‘funny’ filters.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#432 2008-06-02 14:17:12

ywickham
Member
Registered: 2005-06-11
Posts: 38
Website

Re: tru_tags: A tagging plugin for textpattern

I believe what I have is needed:

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php
</IfModule>

Offline

Board footer

Powered by FluxBB