* 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
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
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;
