Jump to content

Nested if/else in skin templates


Guest ellawella

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...