Home › Forums › Legacy Support › Support queries › Setup issues › Add "and" condition between batch and level
Tagged: Batch, pmpro level
- This topic has 5 replies, 3 voices, and was last updated 6 years, 2 months ago by Anshuman Sahu.
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
September 29, 2018 at 9:53 am #178240abanghendriSpectatorHi, I use wplms batches and pmpro to restrict course and i’ve check the option “Students in Batch can only view courses connected to this batch” but the course still visible to other users. my case is Lets say I have 8 users, 2 batches, 6 courses, and 3 levels each batche has 4 users and 3 courses each courses has 1 level. so how do I separate my courses based on condition “batch & level” because in user’s course page I can see courses as sum of batches+level. so in my case, it should show 1 course because it seperated by batch & level but it show 4 courses (1 on his batches, and other is on other batches but same level) so how the good configuration for this case?September 29, 2018 at 10:35 am #178245MrVibeKeymasterThank you for sharing the details. I have a question : How do we identify the "level" of the user ? Also, what is the criteria which level course is shown first ? Does your use case guarantee that each batch has 3 courses of different level and there is no overlap there. If so then we can add a restriction. this is solvable if we hard code some values like the order of levels.September 29, 2018 at 11:09 am #178249abanghendriSpectator<p style="text-align: left;">Well, this is the example</p> Levels : staff, officer, Manager, Director ( I don't really sure about change in the future of my client's organization policies) Batches/departments
- IT division
- HR Division
- L&D
- Tax and Accounting
- And so on
- Course A (could be accessed by employee no matter what their levels and department), so it should globally visible
- Course B could be Accessed By Department No. 1 & 2 with level Manager, so only manager in batch 1 & 2 could see and access this course
- Course C could be accessed by Department No. 1 for all levels,
- Course D could just be accessed by department no. 4 and level officer
September 29, 2018 at 7:50 pm #178285MrVibeKeymasterok, is this a limited set ? the actual code for restricting is small but the combinations of level and batch and then building the settings can become confusion. Did you try creating multiple batches ? Like a different batch for "level" and a different batch for "Departments" ? It should work as hiding courses are merging course visibility.September 29, 2018 at 9:16 pm #178287abanghendriSpectatorThe case does litle bit confuse me Should I make 3 differen batch for manager? For instance:- Batch for Manajer's course in all departments
- Batch for Manajer's in IT departments or each departments
- Batch for departments wich include manager in there.
October 1, 2018 at 1:43 pm #178392Anshuman SahuKeymasterWell I think the logic to create your batches should be one batch per level access with courses in them that are meant for the users with levels . You have to group the courses by access and levels to the respective departments . -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- The topic ‘Add "and" condition between batch and level’ is closed to new replies.