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
FEU and Custom Content - restrict to individuals?
-
staartmees
- Power Poster

- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: FEU and Custom Content - restrict to individuals?
create a groupe Joe Bloggs and make Joe Bloggs member of that groupe and problem solved.
Re: FEU and Custom Content - restrict to individuals?
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?
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?
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...
{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?
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.
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.

