Solving glx_if problems with Textpattern

May 02, 2005 @ 11:05 pm

0 Comments

I came across a strange occurance when I was working with the @ tag from Johan Nilsson. However, after I upgraded to RC3, I noticed that the global variable $is_article_list suddenly started turning up as NULL. After some futzing with the plugin, I found an alternate way to determine if the URL you are at. This makes use of the Clean URL implementation in TXP, which is the default as of the latest subversion revision. Just edit the existing glx_if plugin and replace theglxifsectionfrontpageandglxifnotsection_frontpage@ with the two functions below.

And there you have it. Section page testing is working again-- it seemd to have thrown my journal for a loop. If anyone can think of another way of checking section front pages, I'd love to hear it!

In response to "Solving glx_if problems with Textpattern":

Leave a Reply:

Commenting is not available in this section entry.