Showcase block


The Showcase block allows listing and highlighting the courses that are available on the platform so the people can know them and learn more about their characteristics before enrolling in them.

If the user is interested in one of the courses shown in the block, they will be able to enter and read information such as comments, duration, learning objectives, course topics, subject matter experts, among others, before enrolling. The information is displayed according to the description made inside the courses, in the dynamic fields defined for this purpose.

Image 1: Site Home / Showcase Block
Image retrieved from: https://uvirtualabierta.udem.edu.co/

Add Showcase block

The Showcase block can be used on different pages, the most commonly used is the home page. To add the block on the home page it is necessary to click at “Blocks editting on”.

Image 2: Site administration / Enabling block editing

Once the block editing is activated, click on “Add a block” and then on “Showcase“, it will be displayed on the screen. In case it is hidden, it is necessary to click on the tab located on the right side (see Image 4) and adjust the location by dragging the block to the desired place or specify a location in the block configuration.

Image 3: Adding a block / Showcase
Image 4: Add a block / Block Showcase of hidden courses
Image 5: Add a block / Block Showcase of visible courses

For the block to work properly with all its functionalities, it is necessary to make several configurations in the site administration, for example, adding custom fields to the courses as metadata also adding the comments and ratings blocks in order to highlight the courses. More on this later.

Configure the block instance and use it in different contexts.

Image 6: Course / Block student view.

Block instance configuration

Image 7: Instance block configuration.
Image 8: Showcase block / Configure block.
Personalized title:

By default the block is titled with the name of the component. If you want to display the block without a title or you want to define one, you can do it in the block configuration.

Simple quantity:

Define here the maximum number of courses that will be displayed in the block. By default the amount it takes is the amount defined in the site level configuration, however, if you give it a value in the block configuration, the amount defined in the instance will be displayed.

Views:

Enable from the block configuration its different views. If in your configuration you do not see any of the options shown in image 8, it is possible that the site does not have the following conditions:

  • Recents: To display those courses that are about to start, the “Days for upcoming courses” field of the block’s site-level configuration must be set to some value.
  • Greats: Greats are those courses that have been rated by at least one user with the ‘rate_courses‘ block. If you wish to display this option, your Moodle site must have the above mentioned block installed.
  • Premium: To display this checkbox, the administrator must configure the ‘options for paid courses’ in the site-level configuration of the block. This will be addressed later.
Course categories:

The block will only display those courses that belong to the categories you choose here.If you do not have any categories defined, the block will display those configured by the administrator in the block’s site-level settings.

Block header and footer:

If you want to display some content above and/or below the block, you can define it in the HTML editors.

Once configured, the courses will look like in image 9. The “Show more…” button will take you to the full course view (image 10) defined by the dynamic fields configured within each course.

Image 9: Showcase block with all its views enabled and with footer.
Image 10: Block Showcase visible / Extended information with “See more” button.

Note:

If the block is instantiated at the home pase, all users will be able to see it by default when they visit the platform. In addition, the block can be added in other places with customized content according to what you configure in the instance.

Configuration of dynamic course fields (metadata)

In order for the user to be able to view the information in the detailed view of each course, custom fields must be configured within the courses. To do this, go to “Site Administration”andin the “Courses”optionselect “Course Custom Fields” .

Image 11: Site Administration / Courses / Course custom fields

There you can create categories or groups of fields, the fields can be of different types (checkbox, date and time, drop-down menu, short text and text area).

Image 12: Site Administration / Courses / Custom Fields

It is recommended to give a concise name for each field created, this name will be the one that will be visible in the description tab of each course.

The fields will be used to adjust the dynamic fields in the general configuration of the Showcase block. Once the fields are configured in each course, the user will be able to see expanded information.

Image 13: Course / Edit course settings / Information to show in course detail view

Configuration of dynamic course fields (metadata) in the Showcase Block

Course fields

Go to the “Site Administration” and click on the option “Plugins”, there you will be able to see the blocks installed on the platform; by clicking on “Showcase”, you will be able to configure the dynamic fields.

image 14: Administración del sitio / Plugins / Bloques
Custom fields:
Image 15: Site administration / Plugins / Showcase / Course fields

You can decide what information to display in the course detail view, for this you must first configure the custom fields (Site Administration / Courses / Custom Fields.) that correspond to the additional information you want to display about the course. The custom fields you define will be listed in the two configurations shown in image 15, ‘Show custom fields’ and ‘Show long custom fields’.

Those fields you choose in each configuration will be displayed like this:

Image 16: Detailed view of a course with its dynamic fields.

Note:

The position and styles of the fields in the course details may vary depending on the template you have activated from the general block configuration. We will explain later how to change the appearance of the component.

Image 17: Site administration / Plugins / Showcase / Course fields.

In addition to the custom fields, there are two more fields that the block has by default, the field to display the course license and a field to add the URL of the video you want to display in the course detail view.

Please note: Adding video to course detail view

The “Media Field” option shown in image 17, is used to add the link of a video in the configuration of each course, so that it can be displayed in the detailed view.

Image 18: Course / Edit course settings / Multimedia field with the video URL

The link you add in the course field shown in image 18 must be the URL of the video, not the URL of the site that contains it. If you want to get the link from Youtube, you can do it in the following way:

image 19: Click on Share
Image 20: Click on Insert
image 21: URL to use in the course field

For the Vimeo platform is similar, the link to use will be the one selected in the following image:

Image 22: URL to use in the course field on Vimeo

Once the link is added, you will be able to see the video in the detailed view of the course.

Image 23: Detailed view of a course with embedded video.

Course payment options

Image 24: Site administration / Plugins / Showcase / Course payment
Payment URL field:

In case payment links are handled, the related information is configured in this section.
In the “Payment URL field” you must choose from the drop-down list the course custom field you have defined for this. Once set, you can add the payment link in the course settings.

Premium user field:

You can also define which users have access to the courses configured as premium, for this you must first create a User profile fields as shown in the following images:

Image 25: Site Administration / Users / Accounts
Image 26: Site administration / Users / Accounts / User profile fields.

Once you add the User profile field and select it under Premium user field in the block configuration as shown in image 24, a value is added to Premium field value that you will later have to define also in the added field in the user profile:

Image 27: Users / User name / Preferences / Edit profile / User profile field with the value of the field “Premium user value”.

When a course includes a payment link, a “Premium” label is added to the list of courses in the Showcase block and a link to the payment URL is added to the course file.

Image 28: Showcase Block /Premium Courses

If you have a payment gateway configured on your site, you will see an additional button (Paypal in this case) in the detail view of those courses whose enrollment method you define as “Enrollment in payment”.

Image 29: Showcase block / Premium course / “Pay course” button.

Find information about Moodle gateways here:
https://docs.moodle.org/401/en/Payment_gateways

Filtering

Categories:

Select in this field the categories with the courses you want to be displayed by default in the block.

Image 30: Site administration / Plugins / Showcase / Filters

If you select a category, it does not take those that are nested, that is, if you want to see the courses of a subcategory, you must indicate that subcategory specifically.

Note, if you want the default block to always show all the courses available on the site, you can leave the Categories field empty.

Image 31: Site administration / Courses / Manage courses and categories

If you want to publish the courses of a specific category on the home page of the site (or within any other page or course), you can instantiate the block there and in the instance settings, define the categories and other necessary values.
Users will be able to add and configure the Showcase block in their Personal Area as well.

Static filters:
Image 32: Site administration / Plugins / Showcase / Filters

You can add filters to the Course Catalog view to make it easier for users to search, the block has the filters you see in image 32.

Image 33: Showcase block / Catalog
Filter by custom fields:

If you want to add your own custom filters in this view, you can do so as follows:

Image 34: Showcase / Catalog

First you must create the course custom fields that you are going to select in the configuration. The fields must be of type Drop-down menu or Checkbox. If you do not have any fields that are of this type, you will not be able to see the “Filter by custom fields” setting.

Image 35: Site Administration / Courses / Custom Fields
Image 36: Site Administration / Courses / Custom Fields

Once the fields have been created, you will be able to view the configuration and select those fields you wish to use for filtering in the Course Catalog view.

Image 37: Site administration / Plugins / Showcase / Filters

Finally, set the values that correspond to each course.

Image 38: Course / Edit course settings / Fields to use in custom filters.
Image 39: Showcase block / Course catalog with filters applied.

Keep in mind: Course catalog.

Los cursos mostrados en esta página del bloque pueden variar según desde qué instancia estés accediendo. Por ejemplo, si tengo agregado el bloque Vitrina dentro de un curso, entonces la configuración que le aplique a dicha instancia afectará lo que se mostrará al dar clic en “Ver todos” en la misma.

Image 40: Course / Showcase block configuration
Image 41: Course with Showcase block added

In the previous example we configured the block to show only one course, however, I have two categories selected, this means that by saving changes and clicking on “View all”, I will be able to see those courses that were not shown in the simple view with the categories configured in the block instance.

Image 42: Course catalog with the categories selected from the block instance.

Also note that if there are no more courses to be displayed in addition to those displayed in the simple block view, then the “View All” button will not be displayed.

Filter by URL:

If you need to generate a link to the Course Catalog with filters already applied or with a specific view, you can do it in the following way:

By default, the link to the Course Catalog page looks like this:

Image 43: URL Course Catalog

But by modifying the URL parameters we can generate filters and share them.The first thing to clarify is that in a URL the parameters go after the question mark ‘?’. Once you identify it you will see that it has “view=default” defined. This refers to the view that will be shown in the URL. If you need to send a link and the first thing you want the person you are sending it to see is the Premium Courses view, the link should look like this:

image 44: URL Catálogo de cursos

The different values to use with view would be: ‘default’, ‘recents’, ‘greats’ and ‘premium’.

If you want the Course Catalog to have certain filters applied when you open the link, you can do it with the word ‘filters’ followed by the name of the filter and the option to select.

For example, if I want the person who opens my link to find the results of filtering those courses that are intermediate level, the link would look like this:

Image 45: URL Course Catalog

In this case ‘level’ is a custom filter so I must use the short name (or id) of the course custom field in the URL. Now, to indicate the option to use in the filter you must put after a colon the position of the option, in my case it is the number two, this only applies for filters generated with course custom fields.

image 46: Course Catalog

The default filters that you can use followed by ‘filters=’ are: ‘langs’, ‘categories’ and ‘fulltext’.

For ‘langs’ and ‘categories’, the value after the colon is no longer the position but the numeric ID.

For example, if you want to filter by categories, you must use the ID of the corresponding category. You can get this ID in the path Site Administration / Courses / Manage courses and categories.
When you click on each category, its ID will be shown at the end of the URL, in this case it is number two.

Image 47: Site administration / Courses / Manage courses and categories.

The link to Course Catalog with the category filter would look as follows:

Image 48: URL Course Catalog
Image 49: Course catalog with filter applied by URL.

This can be useful for example if you need to link the courses of a specific category or any other filter and/or view you want to share.

You can also combine the different parameters to show a certain view with a filter applied, this is achieved with the symbol ‘&’ in the new parameter we want to add.
For example, if I need to show the featured courses of category 3, you can do it with the following link:

image 50: URL Catálogo de cursos

When you open the above link, the following will be displayed in the Course Catalog:

Image 51: Course catalog with filter applied by URL.

Finally, in addition to the checkbox filters, there is a search bar that you can also use to filter from URL. For this you must use ‘fulltext’ after ‘filters=’. In the value add your keyword or phrase as follows:

Image 52: URL Course catalog

In the above example after the ‘fulltext:’ I did the search for the phrase “Descripción del curso.”
To encode your keywords or phrases in order to add them to the URL, you can use the following web application: https://www.urlencoder.org/
The result of the above URL would be as follows:

Image 53: Course catalog with filter applied by URL.

Appearance

In this section you can configure some options related to the appearance of the courses in the Course Showcase block:

Image 54: Site administration / Plugins / Course showcase / Appearance.
Simple quantity:

Indicates the number of courses visible in the initial view, in this case the configuration is set to show 4 courses.

Image 55: Site administration / Plugins / Showcase / Appearance / Single quantity
Amount courses:

Indicates the maximum number of courses visible in the course catalog of the block.

Image 56: Showcase block / Course catalog
Default order:

Choose the order in which the courses will be displayed in the default view:

Image 57: Site administration / Plugins / Course showcase / Appearance

For example, if you choose ‘Alphabetically’, the courses will be displayed sorted by name:

Image 58: Showcase block with its courses sorted alphabetically.

You can also sort them by their start and end date.
In the sorting by end date, first will be listed those that have a defined and enabled end date (image 59), those courses that do not have this configured, will be shown last in the sorting.

Image 59: Course / Edit settings.
Days for next courses:

This option is used to indicate the number of days in which a course is considered to be about to start. In this case, the block setting is 30 days, which means that it will show those courses that will start at least before 30 days and, since they have not started, they will have a “Waiting” warning.

For this functionality to work properly, it is important to correctly configure the start dates in the settings for each course and the “Days for upcoming courses”field in the site-level settings.

Image 60: Site administration / Plugins / Course showcase / Appearance
image 61: Bloque Vitrina de cursos / Cursos próximos
Image 62: Site administration / Plugins / Course showcase / Appearance
Social networks:

This option is used to configure the social networks through which the course information can be shared. The social networks must be entered one per line with the following structure: name-icon|URL (see image 63).

Image 63: Site administration / Plugins / Course showcase / Appearance

To customize the URLs you can use the keys: {url} and {name}. Some of the social network URLs that support this type of publication, with their respective structure, are:

facebook|https://www.facebook.com/sharer/sharer.php?u={url}&t={name}
twitter|https://twitter.com/intent/tweet?source={url}&text={name}
pinterest|https://pinterest.com/pin/create/button/?url={url}&description={name}

With this configuration, the options for sharing course information will look like in image 64.

Image 64: Showcase block /Appearance/ Social networks /View in block.
Summary:

The information configured here appears as a header at the top of the course listing or catalog.

Image 65: Site administration / Plugins / Course showcase / Appearance
image 66: Vista en bloque
Detail info:

The information that is filled out here appears on the detail card of each course, usually at the bottom.

Image 67: Site administration / Plugins / Course showcase / Appearance
image 68: Showcase block / Detailed information
Tab view:

Configures the appearance of the tabs in the block instance.

Image 69: Site administration / Plugins / Course showcase / Appearance.

For example if you choose the option ‘Icons only’, then the tabs in the instances that have views enabled, will look like in image 70.

Image 70: Showcase Block / Icon Tabs.
Icons for views:

The icons used to represent each view can be customized. For example, to change the ‘Upcoming courses’ view icon to a calendar icon, you can do so as follows:

Image 71: Site administration / Plugins / Course showcase / Appearance

Here is a list of the different icons you can use. For this you must copy the text selected in image 72 and paste it after the view name as shown in image 71.

Image 72: Retrieved from: https://componentlibrary.moodle.com/admin/tool/componentlibrary/docspage.php/moodle/components/moodle-icons/
Image 73: Appearance of the block with the ‘Upcoming courses’ icon modified.
Preview image:

This feature allows you to define the type of image to be displayed for each course for those courses that do not have their own image assigned in the course settings.

The preview image options are: 

  • Default block image: displays an image that is included by default in the block.
  • Random generated textures: use the respective moodle functionality to generate a random image for each course. This type of images are usually textures.
  • None: does not show an image, in case the course does not have one the image section will be empty.
Image 74: Site administration / Plugins / Showcase / Appearance / Preview Image
Image 75: Showcase block / Appearance / Preview image / Default block image
Image 76: Showcase block /Appearance / Preview image / Randomly generated texture.
Image 77: Showcase Block / Appearance / Preview Image / None
Template type:

In this option you can choose one of the preconfigured templates. These templates change the appearance of the different pages of the block, especially those of the course overview. Currently there are two possible options, in addition to the default view: Cesil and Two_cols.

Image 78: Site administration / Plugings / Showcase / Appearance / Template type.
Image 79: Showcase block / Appearance / Template type “cesil” / Overview.
Image 80: Showcase block / Appearance / Template type “Cesil” / Detail View
Image 81: Showcase block /Appearance / Template type “two_cols” / Overview
Image 82: Showcase block / Appearance / Template type “two_cols” / Detail view.
Great courses:

The Showcase of courses block has different tabs that display the courses on the platform, so that you can see all the premium courses, recent courses and great courses. This last filter works when the “Course Rating” block is installed, which allows users to assign a star rating. In this way, users will be in charge of highlighting the most popular courses that will be shown in this filter.

Image 83: Showcase / Courses catalog
Course ratings block:

This is a third party block that does not have an update for the latest versions of Moodle, however, you can find an updated version by BambuCo at Github.

Through this block users can give their overall rating of the course using a five-star scale.

Image 84: Course / Course ratings block.
Image 85: Course / Course ratings block.

When the courses are rated by the users, the courses are displayed as highlighted, in addition, in the course detail card you will be able to see the detail of the ratings.

Image 86: Showcase block / Highlights /Course catalog

Comments block:

Another way for students to express their opinion of a course is through their comments. The latest comments appear in the course detail view (see image 87).

Image 88: Showcase block / Highlights / Detail view

Add the Comments block in the choosen course:

Image 89: Course / Add Comments block
Image 90: Course / Comments block

Related courses:

This functionality of the block allows you to see in the course detail view other courses to which it is related. To create the relationships in the settings of each course you must enter marks or tags that are related to each other. A course can have more than one mark or label and thus be related to one or more different courses:

Image 91: Course settings / Tags

Related courses will be displayed in the course detail view, usually at the bottom.

Image 92: Showcase block / Detail view / Related courses

More about the Showcase block: