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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
digital

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

Post 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.
Last edited by digital on Mon Sep 03, 2007 3:28 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

Make new group give no all page editing, put them in this group, create page for them add them as owner...
Pierre M.

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

Post by Pierre M. »

I think "digital" is rather looking for the Front End Users and Custom Content modules ;)

Pierre M.
alby

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

Post 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
digital

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

Post by digital »

Pierre M. wrote: I think "digital" is rather looking for the Front End Users and Custom Content modules ;)
Yes, thanks!
digital

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

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”