Hi
I have a repeater with a button to show a drop down menu in a repeater (vectorImage145).
There are 3 different menus depending on who is clicking. Logged In, Logged Out and Owner.
Logged In / Logged Out - (I have done this part, works fine)
However, I’m looking for an ‘owner / creator’ of the repeater post option.
Is there a simple answer option? (something like below)
export function vectorImage145_click(event, $w) {
$w("#box141").show(); // Primary container
if(wixUsers.currentUser.loggedIn) {
$w("#box143").collapse(); // is logged in option (owner)
$w("#box145").collapse(); // is not logged in option
$w("#box144").expand(); // is logged in option (not owner)
// if (wixUser.currentUser.Owner) {
// $w("#box144").collapse(); // is logged in option (not owner)
// $w("#box145").collapse(); // is not logged in option
// $w("#box143").expand(); // is logged in option (owner)
}
else {
$w("#box143").collapse(); // is logged in option (owner)
$w("#box144").collapse(); // is logged in option (not owner)
$w("#box145").expand(); // is not logged in option
}
}
Many thanks
Thomas