Commit 5f227025 by Calen Pennington

Merge pull request #436 from MITx/kimth/sjsu

Hide chapters in addition to sections
parents 108ab51f e7dc2eb9
......@@ -75,6 +75,10 @@ def toc_for_course(user, request, course, active_chapter, active_section, course
chapters = list()
for chapter in course.get_display_items():
hide_from_toc = chapter.metadata.get('hide_from_toc','false').lower() == 'true'
if hide_from_toc:
continue
sections = list()
for section in chapter.get_display_items():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment