Content last modified Monday 5 September 2016
hop to #bottom
Categories:
Author:
Current version:
0.6.4
About It:
Get it:
Rate it:
  • Helpful?
  • 7 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

glx_if

This plugin comes with 11 different conditional tags.

glx_if_frontpage
If we are on the websites frontpage

glx_if_not_frontpage
If we are not on the websites frontpage, searchpage or category list. hmmm this could be the same as if_individual_article, well i cant remember why i did this one. But it is there for you to play with.

glx_if_section_frontpage
If we are on a sections frontpage

glx_if_not_section_frontpage
If we are not on the sections frontpage but in a section

glx_if_search
If the user are doing a search

glx_if_not_search
If a search not have been attempted

glx_if_category_list
If we are on a category list

glx_if_comments_open
If comments are open for this article

glx_if_comments_closed
If comments are closed for this article

glx_if_comments_closed_comments
If comments are closed for this article, but there are comments left before

glx_if_comments_count
Oputput text if comments are equal to something

You can see some examples and more info at the Information URL below.

Article Request Count:
Initially released:
2004-10-26
Posted here:
21 Feb 2005
Article modified:
09 Apr 2005

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (6)

This is a great plugin that has helped me greatly with my front page being completely different than the rest of my site. Thank you!
this is a GREAT!!! plugin. Thanks for releasing it.
Worth:
Forum link didn’t work for me—should be forum.textpattern.com/viewtopic.php?id=4526
Phil:

The download site for 0.7 is down but I have found this to be a very useful plugin so I have made it available for download here.

glx_if_0.7.txt

glx_if_help_instructions.rtf

Russell:

Great plugin. However, the ‘frontpage’ conditionals don’t test for the ‘month’ parameter.

glx_if_frontpage only tests for section, category, search query and pages
glx_if_section_frontpage only tests for category and article listing.

If you append ‘?month=2009-02’ onto the URL you’ll get a list of articles just from Feb 2009. But this plugin will incorrectly think that you are on the frontpage of the site (or section).

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

Would you care to write a comment or visit the forum discussion?

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.