I’d like to include a file (ex: footer.php) when a user is logged in (in my case userIdentity.data.userid is present), and not show it if not logged in.
How can I achieve this pls?
Put a file include inside a conditional region.
1 Like
It worked. Thanks for the reco.
<div id="conditional1" is="dmx-if" dmx-bind:condition="(userIdentity.data.userid > 0)">
<?php include 'footer.php'; ?>
</div>
1 Like