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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
learnexa_content_update [2019/01/31 09:55]
182.72.26.6 [Database Changes]
learnexa_content_update [2019/02/06 09:50] (current)
182.72.26.6 [Database Changes]
Line 4: Line 4:
  
 1) Admin/​Instructor should be able to update the contents created by them. 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. 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. 3) Users enrolled to these updated contents should be notified and provided an option to refresh the content.
  
Line 23: Line 25:
 ==== Database Changes ==== ==== Database Changes ====
  
-Add a new table to add multiple items for content+1) Add a new table to add multiple items for content
  
-Table name - content_items+Table name - content_versions
  
-content_items ​belongs_to content+content_versions ​belongs_to content 
 + 
 +content has_many content_versions 
 + 
 +Also remove contentable_id,​ contentable_type columns from content table.
  
 ^ Column_name ​      ​^Type ​      ^ Description ​  ^ ^ Column_name ​      ​^Type ​      ^ Description ​  ^
Line 38: Line 44:
 | created_at| date_time |created date |  | created_at| date_time |created date | 
 | updated_at| date_time|updated date |  | updated_at| date_time|updated date | 
 +
 +2) Add a new table to save content version details to be viewed by enrolled users
 +
 +Table name - enrolled_contents
 +
 +enrolled_contents belongs_to enrollments
 +
 +content has_many enrolled_contents
 +
 +^ Column_name ​      ​^Type ​      ^ Description ​  ^
 +| id | integer ​          | primary key   ​| ​
 +| enrollment_id | integer | enrollment id to which it belongs to |
 +| content_id | integer ​          | content id  | 
 +| content_version_id | integer ​          | conten_version id |
 +| created_at| date_time |created date | 
 +| updated_at| date_time|updated date |  ​
 +
 +==== UI Template ====
 +
 +Following are the UI templates for updating video contents, the same will be applicable for documents, scorm and tincan contents. Web page and Quiz type contents UI stays the same no changes required.
 +
 +1) On Clicking "​Edit"​ link
 +
 +{{screen1.png}}
 +
 +2) On clicking the slider icon, options to add new content versions will be shown
 +
 +{{screen2.png}}
 +
 +3) Player lightbox UI, to notify user that the content has been updated
 +
 +{{screen3.png}}
learnexa_content_update.1548928516.txt.gz · Last modified: 2019/01/31 09:55 by 182.72.26.6