Page 1 of 1

<xsl:when test="$pages[parent_id = $current_page/id]

Posted: Thu Jul 26, 2007 1:20 pm
by khwab
Hello All,

Can anyone explain me the meaning of the following line,

<xsl:when test="$pages[parent_id = $current_page/id]">

Thank you ,

Khwab Sheth

Posted: Fri Jul 27, 2007 6:55 pm
by jkmyoung
<xsl:when test="$pages[parent_id = $current_page/id]">

Test if the value of the parent_id node in the variable $pages is equal to the id variable in the page node.

In English, you are testing if the current page ($pages) is a child of the current page.