Page 1 of 1

[solved] how to make page viewable by some users only?

Posted: Wed Aug 22, 2007 1:19 pm
by digital
Hello,

In Edit Content->Options I can select Additional Editors of the page, but how can I make a page viewable by some users only?
I.e. every customer has its own login and he should see his pages/files only.

Re: how to make page viewable by some users only?

Posted: Wed Aug 22, 2007 1:24 pm
by Dr.CSS
Make new group give no all page editing, put them in this group, create page for them add them as owner...

Re: how to make page viewable by some users only?

Posted: Wed Aug 22, 2007 3:59 pm
by Pierre M.
I think "digital" is rather looking for the Front End Users and Custom Content modules ;)

Pierre M.

Re: how to make page viewable by some users only?

Posted: Wed Aug 22, 2007 8:45 pm
by alby
Pierre M. wrote: I think "digital" is rather looking for the Front End Users and Custom Content modules ;)
I think that he asks for backend

Alby

Re: how to make page viewable by some users only?

Posted: Wed Aug 22, 2007 11:47 pm
by digital
Pierre M. wrote: I think "digital" is rather looking for the Front End Users and Custom Content modules ;)
Yes, thanks!

Re: how to make page viewable by some users only?

Posted: Thu Aug 23, 2007 12:04 am
by digital
digital wrote:
Pierre M. wrote: I think "digital" is rather looking for the Front End Users and Custom Content modules ;)
Yes, thanks!
Hmm, but when reading CustomContent docs, I see:
How Do I Use It
To use it you place the tag {cms_module module=CustomContent} into your page or template, and then below that you place the content you want isolated to specific users

But what I want, is to have different pages for different FrontEndUsers, not the one page customized for different users.
I.e. there are lots of pages, which admins can edit, but customers (FrontEndUsers) can see only their pages. Is it possible?

Re: how to make page viewable by some users only?

Posted: Thu Aug 23, 2007 1:59 am
by calguy1000
Yes, it's possible.

I've answered this numerous times.  You need CustomContent and FrontEndUsers.
Then, you need to mark all of your private pages in two ways:

a) create a variable in the page's metadata that marks it as private:
    i.e:  {assign var='private_page' value='1'}

b) modify the private pages so that they have a private_ prefix (or whatever you choose really, just a common one).

c) Modify your template such that you do something like:
    {if isset($private_page)}
        {redirect to='some_other_page'}  {* gotta get this plugin from somebody, I know it exists *}
    {/if}

d) Modify your template, again to change the menus:
    {if isset($private_page}
        {menu excludeprefix='private_'}
    {else}
        {menu}
    {/if}