Topics activity cards format

Course formats ::: format_topicsactivitycards
Maintained by Andrew Hancox
Course format which overrides the topics format to display activities as cards with various opportunities for customisation.
Latest release:
489 sites
333 downloads
31 fans
Current versions available: 3

Course format which overrides the topics format to display sections and or activities as cards with various opportunities for customisation such as:

  • Set width for each card
  • Override the activity description
  • Include an image in the card header
  • Put text in a footer section
  • Apply additional CSS classes to the cards
  • Specify a duration for the activity

If you like our work we maintain various non-public plugins available on a commercial basis, you can see the details here:

Screenshots

Screenshot #0

Contributors

Andrew Hancox (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Leny Man
    Wed, 24 Nov 2021, 12:31 AM
    Hello Andrew and thanks for this plugin! I have a question: how can I individualize the section titles to give them a unique style? Because they use names and classes that are shared with other course formats. Thanks!
  • portrait
    Mon, 19 Feb 2024, 6:43 PM
    Hi Andrew, great plugin. Would it be possible to have the image in the card header also link to the activity?

    The Linked Card already does this, so hopefully it's easy to do, possibly have a toggle for it either at activity, course or site level?

    A possible issue with the Linked Card formatted topic:
    It didn't have a link on the Topic title text, but did have a link on the card image - I'm guessing this is to allow the Topic title text to toggle the collapsible functionality when it's enabled, however this meant that when there was no image in the Topic card, there was no link to click through to the topic's contents.

    Not sure if you'd looked at that use case, but wanted to flag it for you just in case
  • Ezzeddin Hamed
    Sat, 4 May 2024, 5:28 PM
    Hello Andrew,

    I never have seen this plugin before, this is very promising and a wonderful one. I like it so much, specially that it has setting on course level, section level and activity level; which may make it a one of a kind tool.

    It probably need some more instructions or help about it, in this regard, I have 2 questions.

    I am trying to set the width of the card so I can have 2 cards on one full line (2 columns only), it does show the 2, but they are 2/3 of the full width, and it does not seem to work for me. Is there something specific to do this?
    UPDATE: After writing this post, I knew that it is not possible to set it in the section area, but when set at the activity settings, it works very well.

    The other question is that in the activity settings under "Topics activity cards format" a setting for "Duration":
    What does this do?
    Does it enforce finishing at the duration end? Or
    A minimum required time? Or
    Just a suggested duration?
    Would it be possible to link it in the future with the "activity completion" rules? Or
    Possibly in a course that has least time limit of time spent?

    Thanks a lot,
  • Ezzeddin Hamed
    Sat, 4 May 2024, 5:35 PM
    Hello,

    Is it possible to add the same features to to the course category to add some features to the category settings?

    Thanks,
  • Andrew Hancox
    Tue, 7 May 2024, 4:16 PM
    Unfortunately, from what I've seen so far, only a theme can override the layout of the course category page.

    The minimum duration is just a visual note to the user, it has no functionality beyond that.
  • Ezzeddin Hamed
    Tue, 7 May 2024, 5:50 PM
    It would be great to have the duration functionality, but even though, it is a wonderful plugin.
  • Jon Bolton
    Sat, 25 May 2024, 11:13 PM
    @Ezzedin - the card widths use Bootstrap’s grid system of 12 columns. So a card width of 3 will be 25% width, or 4 across. 6 will be 50% - so if you set each of the two cards to a width of 6, you will achieve what you want of 2 cards taking up 100% of the row width. It works the same for both the section and activity cards.
  • Roel van Eijk
    Wed, 24 July 2024, 5:40 PM
    I love the plugin. It's really something we have been looking for. Maybe one suggestion: when you have a multiple activity next to eachother (3 to 4 in a row), including a 15 character activity-title, the completion box will glitches out of the card. My suggestion would be to but the completion box beneath at the bottom of the card (underneath description). Great Work! Looking forward to the next update.
  • Christophe NOGUES
    Sun, 22 Sept 2024, 10:58 PM
    Bonjour, exellentissime plugin. The best of course format ! Une petite suggestion pour améliorer la navigation, en ayant la possibilité de pouvoir garder le menu "Cours" sur n'importe quelle page du cours (y compris les pages d'affichage de certaines activités comme les forum par exemple) car il est parfois difficile de revenir sur la page d'accueil du cours. Le format de cours "Designer" le fait donc cela doit être possible. Une autre suggestion aussi au niveau de l'achèvement manuelle des activité : A la place de marquer "Terminé" à côté de l'activité lorsque l'on marque manuellement une activité comme étant terminée, est-il possible d'indiquer la date et l'heure à laquelle l'activité a été marquée comme terminée ? Cela peut être très utile aux enseignants pour suivre avec précision ce qui a été fait et quad cela a été fait. Un grand merci pour ce développement.
  • Daph Hiebert
    Tue, 8 Oct 2024, 3:29 AM
    Hi Andrew, I noticed that in your latest release, 2023071105, version.php lists that it is supported back to Moodle 4.1 (2022112800). However, the plugins version page has 2023071104 listed as the most recent version for 4.1 and 4.2. Assuming that the version.php is correct, could you update the moodle.org version page to indicate that 2023071105 is the most recent supported version for Moodle 4.1 and 4.2? Thanks!
  • Vladimir Miranovic
    Wed, 4 Dec 2024, 8:21 PM
    Great idea, promising. When are you planning a version for 4.5, and are you planning to keep this plugin up to date with future Moodle versions 5+?
  • Andrew Hancox
    Fri, 6 Dec 2024, 6:50 PM
    I will definitely be supporting 4.5 at some point and almost certainly Moodle 5+
  • Christophe NOGUES
    Sat, 7 Dec 2024, 9:44 PM
    Bonjour, je viens de faire la mise à jour du plugin 2024120603 sur un Moodle 4.4 et il m'est depuis impossible d'ouvrir mes cours ayant ce format de cours. En revanche, si je crée un nouveau cours dans ce format, cela fonctionne. J'ai vidé les caches mais le problème persiste. L'erreur qui s'affiche est "Erreur de programmation détectée. Ceci doit être corrigé par un programmeur : Cannot call moodle_page::add_body_class after output has been started.". En mode débug, voici ce qui ressort "Debug info:
    Error code: codingerror
    Stack trace:
    line 1362 of /lib/pagelib.php: coding_exception thrown
    line 52 of /course/format/topicsactivitycards/lib.php: call to moodle_page->add_body_class()
    line 1667 of /lib/outputrenderers.php: call to format_topicsactivitycards->course_header()
    line 4709 of /lib/outputrenderers.php: call to core_renderer->course_header()
    line 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->full_header()
    line 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()
    line 729 of /home/neme6854/moodledata_ecampusinisup/localcache/mustache/1733577519/educard/__Mustache_e43bf0ed9ea2926a64108b71000add35.php: call to Mustache_Context->findDot()
    line 74 of /home/neme6854/moodledata_ecampusinisup/localcache/mustache/1733577519/educard/__Mustache_e43bf0ed9ea2926a64108b71000add35.php: call to __Mustache_e43bf0ed9ea2926a64108b71000add35->sectionAfc94a9d79f4d2705f19e4fa2e2c5125()
    line 66 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_e43bf0ed9ea2926a64108b71000add35->renderInternal()
    line 216 of /lib/outputrenderers.php: call to Mustache_Template->render()
    line 117 of /theme/educard/layout/drawers.php: call to renderer_base->render_from_template()
    line 1485 of /lib/outputrenderers.php: call to include()
    line 1410 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 307 of /course/view.php: call to core_renderer->header()"
    Que faut-il faire pour débloquer le problème ?
    En vous remerciant
  • Christophe NOGUES
    Sat, 7 Dec 2024, 10:27 PM
    Re-bonjour. En faisant des tests, je me suis rendu compte que le paramètre "Width of course page" produit ce message d'erreur lorsqu'il est réglé sur "Full width". Peut-être cela peut-il vous aider ?
  • Andrew Hancox
    Mon, 9 Dec 2024, 5:22 PM
    That bug is now sorted in the latest version, sorry for the hassle. For future reference, I'm more likely to spot issues if you raise them through the GitHub issues tracker.
1 2
Please login to post comments