Mark-H/FirstChildRedirect — Issue #3: Not working within an if statement
Author: MichaelvanLaar
Created: 2011-12-02 13:43:01+00:00
State: open

FirstChildRedirect seems to takeover the action even if it shouldn’t. I have the following line in a template:

[[!getNumber:is=`1`:then=`[[FirstChildRedirect]]`:else=`[[$video-gallery]]`? &parentId=`[[*id]]`]]

getNumber returne the number of children of the specified resource. I want to show a list page (= [[$video-gallery]] ) if there are more then one children. And I want to redirect to the only child if there is only one.

Unfortunately FirstChildRedirect is always executed. By the way, the same happens if I use the If-snippet instead of output filters.