Quantcast
Channel: General help
Viewing all articles
Browse latest Browse all 39737

Re: Full list of courses

$
0
0
by Christian Niemczik.  

Here another hack if you want to use the combilist:

  • Do NOT comment out line 57.


Comment out line 61:

//echo $content;

 

Add code following line 61:

if ($categoryid>0) {

 echo $content;

} else {
        echo html_writer::tag('a', get_string('skipa', 'access', core_text::strtolower(get_string('courses'))), array('href'=>'#skipcourses', 'class'=>'skip-block'));

         //wrap frontpage category combo in div container
         echo html_writer::start_tag('div', array('id'=>'frontpage-category-combo'));

         //echo $OUTPUT->heading(get_string('courses'));
         //echo $OUTPUT->box($courserenderer->course_search_form('', 'long'), 'mdl-align');

        echo $courserenderer->frontpage_combo_list();

        //end frontpage category combo div container
        echo html_writer::end_tag('div');

        echo html_writer::tag('span', '', array('class'=>'skip-block-to', 'id'=>'skipcourses'));

}

 

 

 


Viewing all articles
Browse latest Browse all 39737

Latest Images

Trending Articles



Latest Images