What I'd like to do is be able to maybe select a user from a list of users in the database (from FEU). So when I create content maybe there i an option to select a user or users that can view it.
Right now I can do this UDT to grab the logged in name and set it as a variable for my use:
Code: Select all
global $gCms;
$module =& $gCms->modules['FrontEndUsers']['object'];
$username = $module->LoggedInName();
Code: Select all
{if $username == 'jeff'}
Custom content for Jeff
{/if}
My problem with this is that I'm afraid it will be too difficult for my client to remember. Plus, they might have 20 users (which are employees in this case) that will have a custom message or some private information displayed for their eyes only.
So does anyone have any good ideas on how tis would best be implemented?
Jeff