R
ragtek
Guest
How das hascontent work?
This is my template:
Can i use the hascontent check, to show the table IF $invitedUsers has entries, and if it's empty to show something different?
I've tried:
but the code is very strange and i don't know how to make the else part^^
Is it possible to make this check in the template, or do i have to make this with a viewparam ($haveInvites = true
This is my template:
Code:
<table>
<xen:foreach loop="$invitedUsers" value="$user">
<!-- todo maka a own template for this -->
<tr>
<td>{$user.invited_mail}</td>
</tr>
</xen:foreach>
</table>
Can i use the hascontent check, to show the table IF $invitedUsers has entries, and if it's empty to show something different?
I've tried:
Code:
<xen:if hascontent="true">
<xen:contentcheck>
<table>
<xen:foreach loop="$invitedUsers" value="$user">
<!-- todo maka a own template for this -->
<tr>
<td>{$user.invited_mail}</td>
</tr>
</xen:foreach>
</table>
</xen:contentcheck>
</xen:if>
Is it possible to make this check in the template, or do i have to make this with a viewparam ($haveInvites = true