HI
I am trying to show the controls of editing and deleting only to the user's associated to the contact list.. I tried this but it's not working. The error seems to be that "{alias}" but I don't know another way to do this..
I am trying to show the controls of editing and deleting only to the user's associated to the contact list.. I tried this but it's not working. The error seems to be that "{alias}" but I don't know another way to do this..
<?php $user = &JFactory::getUser();
if ($user->username == {alias})
echo '<td style="width: 5%;">{edit_record} {delete_record}</td>'; ?>
I managed to do what I wanted like this:
Hope this helps someone as noob as I am 😀
<?php $user = &JFactory::getUser();
if($row->alias == $user->username){ ?>
<td style="width: 5%;">{edit_record} {delete_record}</td>
<?php } ?>
Hope this helps someone as noob as I am 😀
Thanks for sharing this!🙂
Cheers
Max
Cheers
Max
This topic is locked and no more replies can be posted.