-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨(frontend) add faqs to a category and get them from a course #2517
Conversation
56aa7eb
to
d8391d3
Compare
2a72b3e
to
04bc4e1
Compare
src/richie/apps/courses/templates/courses/cms/course_detail.html
Outdated
Show resolved
Hide resolved
4a2e0c6
to
c0459fc
Compare
I think we should use the same expressions on both Category page and the Course page. Just run a find and replace of Remove the title "Category FAQ's" on the category page: http://localhost:8070/en/categories/level/expert/ On the course page, remove the visible title "Additional information": http://localhost:8070/en/courses/cloned-local-array/ |
src/richie/apps/courses/templates/courses/cms/course_detail.html
Outdated
Show resolved
Hide resolved
src/richie/apps/courses/templates/courses/cms/course_detail.html
Outdated
Show resolved
Hide resolved
src/richie/apps/courses/templates/courses/cms/category_detail.html
Outdated
Show resolved
Hide resolved
src/richie/apps/courses/templates/courses/cms/course_detail.html
Outdated
Show resolved
Hide resolved
src/richie/apps/courses/templates/courses/cms/course_detail.html
Outdated
Show resolved
Hide resolved
c0459fc
to
23254da
Compare
2493394
to
d071f37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✔️
@jbpenrath can you or another FUN team member review this PR?
d071f37
to
31d3920
Compare
@Tiago-Salles you have to move your CHANGELOG.md line up on the file, it must be on the Unrealeased section. |
d4ca40f
to
cbcf78e
Compare
cd1e241
to
addaef5
Compare
addaef5
to
2258e82
Compare
Head branch was pushed to by a user without write access
310ecbe
to
b04d2bd
Compare
- add course_faq placeholder to category detail page - get the course_faq content from the category detail page
b04d2bd
to
c9a690c
Compare
We at NAU identified the need to provide more information according to the characteriscts of a course.
In quick words this PR includes:
additional_information
placeholder to category detail pageadditional_information
is aSection
withNestedItemPlugin
as childrenadditional_information
placeholder from the course detail page using the category id pageThis PR is related to Contextual Course FAQ by Category #2506.
Purpose
Dynamically provide information according to a category business logic.
Through additional information content the organizations using the
Richie
can provide more specific information according to a category. For exemple, using the category Available on edX.org we can describe how the learner will access this course on the next platform, for exemple edX.org. It would be an advantage as well in terms of payment methods, or promotional periods, as all the courses assigned to certain category will have their additional information.An additional information can be FAQ's or any complementary information that seems important clarify for a course. The mechanism used to make these information available is a
placeholder
called byAddiotional Information
on the category page.Proposal
Provide a placeholder to be filled with varied information and at the same time be easy to maintain. The way of using is simple, described below.
Create the content
In a category page, use the placeholder
Additional Information
to create a section with nested items. According to the category needs insert the information that sounds relevant to be shown in a course that has the corresponding category. For exemple, if the course is distribuied by another platform, theAdditional Information
in this case could describre how this process of learning works.Additional Information
is aSection
, which has a title field where can be filled according to the importance of their content, that is, for additional information about frequently asked questions, theSection
plugin can be named as Course FAQ's, but in other cases where this section needs to signal high importance to these information, theSection
plugin can be name as Extremely Important Information, and then reduce the possibilty of learners skipping this section. It is a open field to be used according to the needs.On the category page it will be shown as
Set the page id
To dinamically create or edit a category
Additional Information
content and impact all the courses that have it, the tagshow_placeholder is used. This tag receives as parameter, the placeholder name and the page lookup, which is interpreted as
reverse_id
. For this logic to work, inAdvanced Settings
of the category page, if it not exists, use the field id to register the page unique information, so the page can be found by theshow_placeholder
tag.Result
With added information, and id defined for this category page, all the courses that have this category, have also their information, as shown following in a course page.
As all the information come from category page, the maintenence of these contents is excellent, by changing the category page it changes all the courses that have it.