Page 1 of 1
[SOLVED] FEU help for create a private zone for user
Posted: Sun Jul 13, 2014 12:21 pm
by giapippo
Hello everyone
Should I create a private area for the website
http://www.eticamentesnc.it/
each user must access a page dedicated to him as this
http://www.eticamentesnc.it/area-riserv ... a-Compagno
I was able to create users but I can not figure out how to manage access to pages and I can not find a clear guide I explain how to do
could you help me?
thank you
gianluca
Re: FEU help for create a private zone for user
Posted: Sun Jul 13, 2014 1:04 pm
by Jo Morg
I'm not entirely sure of what it is that you want/need to do, but...
If each user of a given group has to set a few settings that are unique to itself , it sounds like you need to set field definitions (
Properties) for that particular group corresponding to each possible choice. Then you may have to adapt the edit
FEU change settings template accordingly.
As
FEU doesn't allow for multiple
change settings templates I sometimes make a copy of the original template to a GCB, and create different GCB's for my needs, and then call them from
FEU change settings template conditionally... usually depending on
{$page_alias}.
This technique has been proven useful to me on more than one occasion when using
FEU. Maybe not the best way to do it, but that's what I use

. HTH
Re: FEU help for create a private zone for user
Posted: Sun Jul 13, 2014 1:35 pm
by giapippo
thanks for the reply
I have to create users and access to each of them to a different page
RRR user only accesses the page reserved RRR
MMM user only accesses the page reserved MMM
users, passwords, and the corresponding pages are created by me
what I have stated is the correct method?
thanks
Re: FEU help for create a private zone for user
Posted: Sun Jul 13, 2014 2:05 pm
by Jo Morg
giapippo wrote:users, passwords, and the corresponding pages are created by me
what I have stated is the correct method?
If you are managing a reduced number of users, yes. Even if you only add users only every now and then. The problem would be if you needed to let
FEU and
SelfRegistration on auto mode, which doesn't seems to be the case.
So:
- With FEU you have a new content type (Protected Content) and you can create pages of this type, however you can only assign groups of users to the allowed viewers of that page, an not particular users, so I don't recommend this, unless you are willing to create a group for each user with one user per group....
- What I recommend is to instal the CustomContent Module and check on each page if the user is logged and has a particular ID;
With
b) you create a page for each user and then use logic like the following on each page:
Code: Select all
{if ccUser::loggedin() == 12} {* number is the user id*}
content for user id 12
{/if}
or
Code: Select all
{if ccUser::username() == 'someusername'}
content for user {ccUser::username()}
{/if}
Also, in
b) case you should play a bit with different content blocks (see:
http://docs.cmsmadesimple.org/tags/core/content) to avoid mixing logic and contents on the same block.
HTH
PS Note: I still think that my 1st sugestion (my previous post) is more efficient, as you only need one page to do it all, but hey, it's your party...
Re: FEU help for create a private zone for user
Posted: Sun Jul 20, 2014 12:36 pm
by giapippo
thanks for help
i have created the global content one for each customer
and a page with this code
{if ccUser::username()} {assign var="uname" value=ccUser::username()} {global_content name=$uname} {else}
Non sei autorizzato ad accedere a questa pagina.
{cms_module module=FrontEndUsers} {/if}
and all work fine
