Left sidebar navigation plugin for course outline and navigation
frontend-app-learning::env.config.jsx
import {
PLUGIN_OPERATIONS,
DIRECT_PLUGIN,
} from "@openedx/frontend-plugin-framework";
import Plugin from "@edx/left-sidebar-navigation-plugin";
// Load environment variables from .env file
const config = {
...process.env,
pluginSlots: {
course_outline_sidebar_slot: {
keepDefault: false,
plugins: [
{
op: PLUGIN_OPERATIONS.Insert,
widget: {
id: 'custom_sidebar_component',
type: DIRECT_PLUGIN,
RenderWidget: Plugin,
},
},
]
},
},
};
export default config;
frontend-app-learning::module.config.js
module.exports = {
localModules: [
{
moduleName: "@edx/template-private-plugin",
dir: "../src/frontend-plugins/packages/template-private-plugin",
},
],
};