Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locking in menuBox #4

Closed
StuartNicholls opened this issue May 2, 2023 · 1 comment
Closed

Locking in menuBox #4

StuartNicholls opened this issue May 2, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@StuartNicholls
Copy link

How would be handle locking if there are multiple instances of menuBox component?

Requires:

adaptlearning/adapt-contrib-core#366

@oliverfoster
Copy link
Member

oliverfoster commented May 4, 2023

I don't think there would be multiple instances of this particular plugin. This is effectively just the boxMenu behaviour, but as a component, including the grouping behaviour as standard.

Multiple instances are much harder to configure as one would need to refer to sub-pages or sub-menus (groups) by id, or some other filter category. The standard menuBox should be easy to configure in the AAT, by just dropping it onto a page.

More generally speaking, locking is inherited from the course structure and the AdaptModel locking functions along with the other locking attributes, to set _isLocked for each page/menu item, it's much less to do with how the content objects are rendered. i.e. If a content object has _isLocked = true render it as locked.

@oliverfoster oliverfoster self-assigned this May 4, 2023
@oliverfoster oliverfoster added the question Further information is requested label May 4, 2023
This was referenced May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants