Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
learnexa_content_update

This is an old revision of the document!


Learnexa Content Update Feature

Requirement

1) Admin/Instructor should be able to update the contents created by them. 2) There should also be an option to auto publish the content based on time periods. 3) Users enrolled to these updated contents should be notified and provided an option to refresh the content.

Implementation

1) In content edit lightbox “Update Content” button should be added, on clicking that it should provide a form to add new item to the content.

2) Once new item is added, all the items of that content should be listed. Beside each item “Publish” link should be shown, the currently active item will have “Published” text mentioned. Only one item can be published at a time, which means a content can have only one active item.

3) Beside each items listed in the content, there should be an optional date time field to set from when the item can be published automatically. The active item will have “Effective Now” text shown instead of date time field. This is to auto publish the items from certain time period.

4) If user is enrolled to a course, the contents of that course will show only the item that got published during course enrolled. Even if that item it set to unpublished state, the same be be seen by the user. The updated contents will reflect on future enrollments only.

5) Enrolled user can get a notification mentioning that the content has been updated and if he would like to refresh the content. This notification will only be should for active enrollments and the progress/score will be reset for the content post refresh.

Database Changes

Add a new table to add multiple items for content

Table name - content_items

content_items belongs_to content

Column_name Type Description
id integer primary key
content_id integer content id to which it belongs to
contentable_id integer contentable id to which it belongs to
contentable_type string contentable type to which it belongs to
published boolean true or false
published_from datetime date and time from which the item is active
created_at date_time created date
updated_at date_timeupdated date

Add a new table to save content details to be viewed by enrolled users

Table name - user_contents

user_contents belongs_to enrollments

Column_name Type Description
id integer primary key
content_id integer content id to which it belongs to
content_item_id integer conten_item id to which it belongs to
learnexa_content_update.1548929324.txt.gz · Last modified: 2019/01/31 10:08 by 182.72.26.6