soo_if_frontpage Page 1 of 2

soo_if_frontpage

Summary:

Check if current page is a section front page

Download

soo_if_frontpage version 0.1.3 (0.4 KB)

Preview soo_if_frontpage code

Overview

Similar to the glx_if_frontpage tag from the no-longer-supported glx_if plugin. Most of glx_if’s functionality is now available through core Txp tags, but not this (well, not without an absurd stack of conditional tags). To glx_if_frontpage it adds txp:else /> compatibility, and a couple of attributes for more control.

soo_if_frontpage evaluates to true if the current page context is:

Usage

<txp:soo_if_frontpage>
...
<txp:else />
...
</txp:soo_if_frontpage>

Attributes

None required.

Version History

0.1.3 (6/22/2010)

Fixed bug: section front pages now treated correctly (thanks, Victor)

0.1.2 (7/2009)

Added author and month search to the conditions to check against

0.1.1 (7/2009)

Added pg attribute; code and documentation cleaning; updated plugin template

0.1 (1/2008)

soo_if_frontpage tag with section attribute