Admittedly I'm new to moodle development. Primarily, I'm a moodle user and site admin but I am a programmer and do know PHP.
Our site is looking to create an archive of blog posts where certain contributors can use the moodle blog system to write a series of site-wide accessible white papers on their experimentation regarding their education from our online academy. However, certain cohorts shouldn't be allowed to see certain blog entries until they're of a higher grade and thus in the appropriate cohort.
Right now we're achieving part of this plan by using the tags system. Anything tagged as "white paper" is placed into the general archive. What I want to do is make sure if I have a different tag, say "grade 1", that is also tagged on the page, then any person not in grade 1 would click on the link to the tagged page and instead of viewing the blog content, be redirected to a page where they're informed that they don't yet possess the correct user rights to view the page. I imagine that this functionality would have to be added via some form of a plugin.
I'm interested in both the code to achieve my goals as well as any tutorials or resources that you can point me to that'll show me where and how to place the code to ensure that it's processed by moodle appropriately. Thanks in advance for any help.