EDIT - Add Actually the Ternary operation is working fine. I’m just too tired to realise that I was checking against false instead of true. All should work fine hopefully for everyone?
Okay a nice easy one this one in relation to this thread over here.
Please bear in mind that this was written in under 1 minute so hopefully it should do as it says on the tin
I’m still a little confused as I swear that my ternary operator condition in the plugin is working back to front but it seems to be working on my system so hopefully it will elsewhere too. ![]()
Usage V1.0.2
{exp:if_homepage}
{if is_homepage}
<p>This is the home-page</p>
{if:else}
<p>This isn't the home-page</p>
{/if}
{/exp:if_homepage}
Usage V1.0.1
{exp:if_homepage}
{if true}
This is the home-page
{if:else}
This isn't the home-page
{/if}
{/exp:if_homepage}
Usage V1.0
{exp:if_homepage}
{if fail}
This isn't the home-page
{if:else}
This is the home-page
{/if}
{/exp:if_homepage}
That’s it basically. Hope it works for everyone and hope it’s of some use.
Best wishes,
Mark
