Daily format

Course formats ::: format_days
Maintained by Nathan Robbins
Modified version of Weekly format that displays sections by day rather than week.
Latest release:
11 sites
10 downloads
11 fans
Current versions available: 2

Works exactly the same as the weekly format except sections are by day rather than week. Useful for short classes and workshops.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3

Contributors

Nathan Robbins (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Prikaži komentare
  • Nyree Williams
    сре, 7. нов 2012, 13:15
    Hello Nathan
    I like the calendar view - would it be possible to style other formats eg weeks/topics format to use the calendar view?
  • Nathan Robbins
    чет, 8. нов 2012, 21:23
    Hi Nyree,
    The styling for the calendar view is done with CSS. Each section in the summary view is given a 13% width and floated left. This should (probably) work with other formats.
  • Indira Koneru
    уто, 27. нов 2012, 13:14
    Hi Nathan,
    We have 33 sessions in a semester. Can we upload the time-table as an .xl or .csv file to populate the sessions in this format, in stead of changing date and time for each day/session?
  • Nathan Robbins
    уто, 27. нов 2012, 21:20
    Hi Indra,
    Unfortunately, adding sections through those types of files is not possible in the current version. I am certain that it can be added, though I do not know how to do so myself. I am still learning the PHP language and the Moodle API.

    If this is a feature that you need, there are a number of Moodle Partners that could add this feature for you.

    Thanks,
    Nathan
  • Gareth J Barnard
    сре, 8. мај 2013, 03:25
    Dear Nathan,

    With version 2012123000 (3.0.2) on Moodle 2.4.3+ (Build: 20130502) version 2012120303.11 if you create a course and immediately set the 'Daily' format as the format to use then the sections beyond 0 are not displayed. The add a section icon is shown, but clicking on that does nothing - bar incrementing the number of sections when you go to the course settings. What you have to do is change the format to 'Weeks' save the settings, get the course displayed and then change to 'Daily'. Please fix.

    Kind regards,

    Gareth
  • Gareth J Barnard
    чет, 16. мај 2013, 02:15
    Dear Nathan,

    Will there be a Moodle 2.5 version of the format please? Just needs 'print_multiple_section_page' changing to:

    public function print_multiple_section_page($course, $sections, $mods, $modnames, $modnamesused) {
    global $PAGE;

    $modinfo = get_fast_modinfo($course);
    $course = course_get_format($course)->get_course();

    $context = context_course::instance($course->id);
    // Title with completion help icon.
    $completioninfo = new completion_info($course);
    echo $completioninfo->display_help_icon();
    echo $this->output->heading($this->page_title(), 2, 'accesshide');

    // Copy activity clipboard..
    echo $this->course_activity_clipboard($course, 0);

    // Now the list of sections..
    echo $this->start_section_list();

    foreach ($modinfo->get_section_info_all() as $section => $thissection) {
    if ($section == 0) {
    // 0-section is displayed a little different then the others
    if ($thissection->summary or !empty($modinfo->sections[0]) or $PAGE->user_is_editing()) {
    echo $this->section_header($thissection, $course, false, 0);
    /*print_section($course, $thissection, null, null, true, "100%", false, 0);
    if ($PAGE->user_is_editing()) {
    print_section_add_menus($course, 0, null, false, false, 0);
    }*/
    echo $this->courserenderer->course_section_cm_list($course, $thissection, 0);
    echo $this->courserenderer->course_section_add_cm_control($course, 0, 0);
    echo $this->section_footer();
    }
    continue;
    }
    if ($section > $course->numsections) {
    // activities inside this section are 'orphaned', this section will be printed as 'stealth' below
    continue;
    }
    // Show the section if the user is permitted to access it, OR if it's not available
    // but showavailability is turned on
    $showsection = $thissection->uservisible ||
    ($thissection->visible && !$thissection->available && $thissection->showavailability);
    if (!$showsection) {
    // Hidden section message is overridden by 'unavailable' control
    // (showavailability option).
    if (!$course->hiddensections && $thissection->available) {
    if($course->coursedisplay == COURSE_DISPLAY_MULTIPAGE){
    echo $this->section_summary($thissection, $course, $mods);
    } else {
    echo $this->section_hidden($section);
    }
    }

    continue;
    }

    if (!$PAGE->user_is_editing() && $course->coursedisplay == COURSE_DISPLAY_MULTIPAGE) {
    // Display section summary only.
    echo $this->section_summary($thissection, $course, null);
    } else {
    echo $this->section_header($thissection, $course, false, 0);
    if ($thissection->uservisible) {
    /*print_section($course, $thissection, null, null, true, "100%", false, 0);
    if ($PAGE->user_is_editing()) {
    print_section_add_menus($course, $section, null, false, false, 0);
    }*/
    echo $this->courserenderer->course_section_cm_list($course, $thissection, 0);
    echo $this->courserenderer->course_section_add_cm_control($course, 0, 0);
    }
    echo $this->section_footer();
    }
    }

    if ($PAGE->user_is_editing() and has_capability('moodle/course:update', $context)) {
    // Print stealth sections if present.
    foreach ($modinfo->get_section_info_all() as $section => $thissection) {
    if ($section <= $course->numsections or empty($modinfo->sections[$section])) {
    // this is not stealth section or it is empty
    continue;
    }
    echo $this->stealth_section_header($section);
    //print_section($course, $thissection, null, null, true, "100%", false, 0);
    echo $this->courserenderer->course_section_cm_list($course, $thissection, 0);
    echo $this->stealth_section_footer();
    }

    echo $this->end_section_list();

    echo html_writer::start_tag('div', array('id' => 'changenumsections', 'class' => 'mdl-right'));

    // Increase number of sections.
    $straddsection = get_string('increasesections', 'moodle');
    $url = new moodle_url('/course/changenumsections.php',
    array('courseid' => $course->id,
    'increase' => true,
    'sesskey' => sesskey()));
    $icon = $this->output->pix_icon('t/switch_plus', $straddsection);
    echo html_writer::link($url, $icon.get_accesshide($straddsection), array('class' => 'increase-sections'));

    if ($course->numsections > 0) {
    // Reduce number of sections sections.
    $strremovesection = get_string('reducesections', 'moodle');
    $url = new moodle_url('/course/changenumsections.php',
    array('courseid' => $course->id,
    'increase' => false,
    'sesskey' => sesskey()));
    $icon = $this->output->pix_icon('t/switch_minus', $strremovesection);
    echo html_writer::link($url, $icon.get_accesshide($strremovesection), array('class' => 'reduce-sections'));
    }

    echo html_writer::end_tag('div');
    } else {
    echo $this->end_section_list();
    }
    }

    Old code in comments.

    Cheers,

    Gareth
  • Gareth J Barnard
    чет, 16. мај 2013, 17:53
    Dear Nathan,

    I could push the changes to a new branch for 2.5 on GitHub, but I see there is this issue outstanding - https://github.com/nrobbins/moodle_format_days/issues/3 - so would not be pushing to the latest code and should there be a 2.4 and 2.5 branch?

    Cheers,

    Gareth
  • Dave Feasey
    пет, 7. јун 2013, 03:38
    Just installed on 2.5, got error message:

    Function print_section() is deprecated. Please use course renderer function course_section_cm_list() instead.

    line 3160 of /lib/deprecatedlib.php: call to debugging()
    line 94 of /course/format/days/renderer.php: call to print_section()
    line 44 of /course/format/days/format.php: call to format_days_renderer->print_multiple_section_page()
    line 276 of /course/view.php: call to require()
  • Theresa Kelly
    уто, 6. авг 2013, 00:23
    How would one go about changing the format of the section dates from (e.g. Thursday, 17 July, Friday, 18 July, Saturday, 19 July), to (e.g. Day 1, Day 2, Day 3, etc.) ?
  • Lisa Ann Robertson
    уто, 6. авг 2013, 03:25
    Is it possible to set the daily format to skip days? Basically, my class runs 3 days a week. I'd like to have the dates just for the 3 days each week that the class meets (eg. 9 Sept/11 Sept/13 Sept) without all the other days in there. Is there a way to make this happen? Thanks.
  • vince lune
    сре, 7. авг 2013, 20:24
    Is it possible to set the daily format once a week? I'd like to have the dates listed as "section header" such as class meets 9 Sept, Sept 16, Sept23, etc.. without all the other days in there. Is there a way to make this happen? Thanks.
  • Johan de Bruin
    сре, 27. јул 2016, 02:20
    How do you add extra settings to the edit section form ?
  • saeed sedaghat
    сре, 18. јул 2018, 12:19
    Coding error detected, it must be fixed by a programmer: Function print_section() is removed. Please use course renderer function course_section_cm_list() instead.
  • Elliot Bannister
    суб, 30. мај 2020, 18:36
    I also got this error when trying to use with Moodle 3.8:

    Coding error detected, it must be fixed by a programmer: Function print_section() is removed. Please use course renderer function course_section_cm_list() instead.
  • Reza Alidoosti
    уто, 23. јан 2024, 06:38
    Hello
    Please tell me if in 2024 we can find a compatible version of daily firmat plug in.

    Thanks
1 2
Please login to post comments