Revert "feat: add meta image field in LMS course"
This reverts commit 37e8c3ab84.
This commit is contained in:
@@ -44,9 +44,7 @@
|
|||||||
"pricing_section",
|
"pricing_section",
|
||||||
"paid_certificate",
|
"paid_certificate",
|
||||||
"currency",
|
"currency",
|
||||||
"price_certificate",
|
"price_certificate"
|
||||||
"website_meta_section",
|
|
||||||
"meta_image"
|
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
@@ -237,16 +235,6 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "column_break_26",
|
"fieldname": "column_break_26",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break"
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "website_meta_section",
|
|
||||||
"fieldtype": "Section Break",
|
|
||||||
"label": "Website Meta"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "meta_image",
|
|
||||||
"fieldtype": "Attach Image",
|
|
||||||
"label": "Meta Image"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_published_field": "published",
|
"is_published_field": "published",
|
||||||
@@ -273,7 +261,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"make_attachments_public": 1,
|
"make_attachments_public": 1,
|
||||||
"modified": "2023-01-03 16:38:35.237691",
|
"modified": "2022-09-14 13:26:53.153822",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "LMS Course",
|
"name": "LMS Course",
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ def set_course_context(context, course_name):
|
|||||||
"currency",
|
"currency",
|
||||||
"max_attempts",
|
"max_attempts",
|
||||||
"duration",
|
"duration",
|
||||||
"meta_image",
|
|
||||||
],
|
],
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
@@ -99,8 +98,8 @@ def set_course_context(context, course_name):
|
|||||||
context.is_user_interested = get_user_interest(context.course.name)
|
context.is_user_interested = get_user_interest(context.course.name)
|
||||||
|
|
||||||
context.metatags = {
|
context.metatags = {
|
||||||
"name": course.title,
|
"title": course.title,
|
||||||
"image": course.meta_image or course.image,
|
"image": course.image,
|
||||||
"description": course.short_introduction,
|
"description": course.short_introduction,
|
||||||
"keywords": course.title,
|
"keywords": course.title,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user