Files
frontend-app-learning/src/plugin-slots/CourseExitPluginSlots/CourseRecommendationsSlot
Jansen Kantor b1ee8a3713 feat: add course end dashboard plugin slots (#1658)
* feat: add additional course end plugin slots

* fix: bring plugin slot names in line with new naming scheme

* refactor: change plugin files to tsx,remove propTypes

* fixup! refactor: change plugin files to tsx,remove propTypes

* fixup! fixup! refactor: change plugin files to tsx,remove propTypes

* fixup! fixup! fixup! refactor: change plugin files to tsx,remove propTypes

* fix: accidentally committed test code

* fix: plugin-slot fixes

* chore: add ENTERPRISE_LEARNER_PORTAL_URL env var
2025-05-08 14:23:41 -04:00
..

Course Recommendations Slot

Slot ID: org.openedx.frontend.learning.course_recommendations.v1

Slot ID Aliases

  • course_recommendations_slot

Props:

  • variant

Description

This slot is used for modifying the course end recommendation

Example

The following env.config.jsx will replace the course recommendations with a thumbs up

Screenshot of modified course celebration

import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';

const config = {
  pluginSlots: {
    'org.openedx.frontend.learning.course_recommendations.v1': {
      plugins: [
        {
          op: PLUGIN_OPERATIONS.Insert,
          widget: {
            id: 'inserted_direct_plugin',
            type: DIRECT_PLUGIN,
            priority: 10,
            RenderWidget: () => (<div >👍</div>),
          },
        },
      ]
    },
  },
}

export default config;