Search
Other Articles Anywhere questions
Forum

{if date<now()} produces an error with nested if loops in {article-nested}

Hitsch's Avatar Hitsch
We have the following structure
{article}
{if date<now()}
output 1
{else}
ouput 2
{/if}
{/article}
This correctly results in output1 or output2, depending on date/time.
If we put another if-query inside ouput 1, the first/parent if-query will no longer work correctly:
{article}
{if date<now()}
{article-nested id="[id]" }
{if somethingA}outputA{/if}
{if somethingB}outputB{/if}
{/article-nested}
{else}
ouput2
{/if}
{/article}
{article-nested} makes the first if-loop {if date<now()} have no effect.

In the meantime, we suspect that this is a bug. But we are grateful for any help!
Peter van Westen's Avatar Peter van Westen ADMIN
You cannot nest if statements.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Ah yes, sorry. My mistake.
It should work. Make sure the syntax is completely correct. For instance, in your example, you have {/f} instead of {/if}.

If you can't get it to work, can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
Confidential information:
(hidden)
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription