[FIXED] How to make a special page for selected member?

I have a list of member. Can i make different different private member page for selected member? Is like given different permissions for selected member.
(I know how to make a dynamic page for private member page, the wix-help page really helpful~)

example :
User A can view & edit part 1 only.
User B can view & edit part 1&2.
User C can view & edit part 1,2 & 3.

Thank you.

Hi Jery,
In Wix Users module there are three types of roles to a user. I don’t think it suits your needs.
My suggestion is to add a text field to the members database collection that classify the type of user A/B/C.
In the dynamic page handle the UI according to the type of user.
Here is an example:

$w.onReady( () => { 
    $w("#myDataset").onReady( () => { 
        let itemObj = $w("#myDataset").getCurrentItem(); 
        if (itemObj.type === 'A') {
            $w('#element2').hide();
            $w('#element3').hide();
        }
    }); 
});

Good luck!
Roi

Morning Roi,
Thanks for helping, i try to add in the code, but got an alert at the first line, am i missing some thing?
You said " add a text field to the members database collection that classify the type of user A/B/C "
How can the system know we put the type at which column in database?
I try using #PavilionStaff/title , is it right?
(the code looks happy now…looks like its work)


ps: my dataset name is PavilionStaff

Hi Jery,

How can the system know we put the type at which column in database?

The Field Key is the name of the key in the object of getcurrentitem.

I try using #PavilionStaff/title, is it right? 

No,
I guess that PavilionStaff is the name of the database collection. You need the ID of the dataset element.


So,
ItemObj.title = “A” according to my example.
Roi

Thank you very much! Its work!

Thanks Roi!