Added portal pages for courses and topics.

This commit is contained in:
Anand Chitipothu
2021-03-02 07:00:14 +00:00
parent 972399d72f
commit 5ab4f86f90
7 changed files with 173 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import frappe
def get_context(context):
context.no_cache = 1
context.courses = get_courses()
def get_courses():
courses = frappe.get_all(
"Community Course",
fields=['name', 'title', 'description']
)
print(courses)
return courses