ellawella Posted May 19, 2006 Posted May 19, 2006 Correct me if I'm wrong, but I do believe the skin templates do not yet support nested if/else statements. Eg:<if=something> <div class="something">Show something</div> <if=something else> <div class="somethingelse">Show something else</div> </if> </if> It would be nice to see this in IPB 2.2 or 3.0
ryder Posted May 19, 2006 Posted May 19, 2006 It'll be in 3.0 according to: http://blog.mattmecham.com/archives/2005/1...ved_html_l.html
Luke Posted May 19, 2006 Posted May 19, 2006 You know, honestly, if/else nesting is not a hard thing to do at all. I've done it in my template system easily. I personally dont see why it's not added, and how they prevent nesting... A simple preg_replace does wonders.... If im not mistaken the only reason why it isnt supported is because you get an error when you try to nest so it doesnt actually do it.... And I think it's because when there's a space behind EOF it causes a php error... But with a little determination, it's not hard to make work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.