1

Resolved

DNN Blog Template Mechanism - Nested if

description

Hello!

Thank you for the custom templates you provided us!

I have one question, is it possible to use nested if in a template. I am trying but I cannot find a way to use them.

Also, is it possible to use multiple statements inside an if? for example
[if|1] [val] [=] True __{AND}__ [val2] [=] True [/if]

[endif|1]
If nothing of the above is possible, how can I make a template that have a different style for the first post and different style for even and odd posts?

If I use the term "isodd" and "isfirst", I 'll have the same post twice in the page. I would like to do something like this:
[if|1][Item:isodd][=]True[/if]
[if|2][Item:isfirst[=]False[/if]

[endif|2]
[endif|1]
Thank you in advance,
Kyriakos Lesgidis

comments

gigocabrera wrote Sep 23, 2014 at 11:36 PM

Hi kyriakos1311, I don't believe nested "IF" in a template are possible at this moment. This is a DNN Blog limitation but something worth looking into.