Forum in sessions: make course's form category, forum and thread first message visible in session
- forum category
- forum itself
- forum thread (only the first message)
It goes in the same direction as what we have developed for the forum copies (backup tool).
Basically, this allows the main teacher to prepare a larger number of resources for use through the sessions.
In the background, the availability of these should be made through a copy of the base course's resources, the first time you enter the course forum through the session: if there is no content there, replicate the course contents (up to the first message of each thread) so we can then modify it locally (and possibly remove it if we don't like it).
Updated by Julio Montoya about 7 years ago
- Status changed from Assigned to Needs more info
- Assignee changed from Julio Montoya to Yannick Warnier
I reviewed the code, and is possible to do that (show forum category, forum itself, and 1 first thread) but is not possible to make a difference between the posts in a session and posts in a course, because there's any api_item_property_update() for the posts.
In fact there's a api_item_property_update() but it updates the forum, it doesn't create an entry for every posts.
Here's the api_item_property_update() when creating a new post:
So I think there'are 2 possible solutions:
1. Add a session_id in the c_forum_post and update the value.
2. For every add/edit post create a new entry in c_item_property using api_item_property_update()