Jump to content

Activate/Deactivate by checkboxes


Manaus
 Share

Recommended Posts

Hello,

I have a series of parent pages which have $users, and a series of children pages which inherit such $users.

Now I'm making a template with a list of pages where I can toggle the users from the children pages. 

I think I should get the users from the parent, and match against the values sent by the form (the form sends only checked buttons).

Remove all users then add the confirmed ones?...

Thanks for any suggestion...

Link to comment
Share on other sites

  • 3 weeks later...

I don't understand the question, and I'm guessing others didn't since this one hasn't had a reply yet. For instance, what do you mean by children pages inheriting $users... are you talking about template access control, or something you are doing at the API level? But one thing I did want to mention is that $users is a ProcessWire API variable, so that may be a point of confusion (and probably a field/variable name you want to avoid using if referring to something else). 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...