Page 1 of 1

FEU and Custom Content - restrict to individuals?

Posted: Wed Oct 19, 2011 12:13 pm
by JM6891
Hi there,

I'd like to set up pages that can only be viewed by people specified.

I have installed Front End Users and Custom Content and have managed to restrict a page to a group that I have set up, but I was wondering if it is possible to restrict it to specific users?

I.e. I have a page that I have created specifically for Joe Bloggs. Joe Bloggs belongs to Group 1 in FEU. But, I ONLY want Joe Bloggs to see the page, not everyone who belongs to Group 1. Is this possible?

Thanks in advance

Re: FEU and Custom Content - restrict to individuals?

Posted: Wed Oct 19, 2011 1:34 pm
by staartmees
create a groupe Joe Bloggs and make Joe Bloggs member of that groupe and problem solved.

Re: FEU and Custom Content - restrict to individuals?

Posted: Wed Oct 19, 2011 1:44 pm
by JM6891
Hi thanks for your reply.

I thought about this but it means my client will need to create a new group and a new user for each person they want to create a restricted area for so just wondered if there was an easier way?

Re: FEU and Custom Content - restrict to individuals?

Posted: Wed Oct 19, 2011 9:38 pm
by Dr.CSS
Have you tried?...

{if $ccuser->username() == 'user@site.com'} users stuff {else} redirect or blank or "Go Away", whatever you want {/if}

user@site.com is the user name from FEU...

Re: FEU and Custom Content - restrict to individuals?

Posted: Fri Nov 04, 2011 5:29 am
by gstwebdev
Just wondering if you got this to work?
I tried using
{if $ccuser->username('demo@test.com.au')} Show Indivdual User Content
{else} Show Nothing
{/if}

but I got errors:
"Smarty error: [in content:content_en line 2]: syntax error: unidentified token ';username('demo@test.com.au')
and
Parse error: syntax error, unexpected '&' in *******/tmp/templates_c/68^%%70^707^707A8977%%content%3Acontent_en.php

sorry if any of this is an easy answer, I am still learning CMSMS & smartys, so any help would be very much appreciated. :)

Thanks.