From 381d61393293dd6126e7ab84e94782a472a31cef Mon Sep 17 00:00:00 2001 From: Haftamu Kebede Date: Wed, 11 Feb 2026 16:58:20 +0300 Subject: [PATCH] feat: Footer help links pointing to old documentation Footer help content slot is extended to reflect to updated documentation link and context related help links. Documentation: https://github.com/openedx/frontend-component-footer/tree/v14.9.3/src/plugin-slots/StudioFooterHelpContentSlot --- FOOTERLINKS.env.config.js | 78 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 FOOTERLINKS.env.config.js diff --git a/FOOTERLINKS.env.config.js b/FOOTERLINKS.env.config.js new file mode 100644 index 0000000000..31888ea31f --- /dev/null +++ b/FOOTERLINKS.env.config.js @@ -0,0 +1,78 @@ +import { PLUGIN_OPERATIONS, DIRECT_PLUGIN } from '@openedx/frontend-plugin-framework'; + +/** + * Documentation link + * https://github.com/openedx/frontend-component-footer/tree/v14.9.3/src/plugin-slots/StudioFooterHelpContentSlot + * + */ + +const baseDomain = process.env.BASEPORTAL; +var BUTTONS = [{ + as: 'a', + href: 'https://docs.openedx.org/en/latest/educators/quickstarts/build_a_course.html', + size: 'sm', + message: "edx documentation", + dataTestid: null +}, { + as: 'a', + href: `${baseDomain}/portal/courses/FOO`, + size: 'sm', + message: "e-SHE Portal", + dataTestid: null +}, { + as: 'a', + href: `${baseDomain}/help/s/article/Enrolling-in-How-to-Take-a-Course/FOO`, + size: 'sm', + message: "Enroll in How to Take a Course", + dataTestid: null +}, { + as: 'a', + href: `${baseDomain}/help/s/article/Accessing-the-How-to-Build-in-Open-edX-Studio-Course/FOO`, + size: 'sm', + message: "Ask to Enroll in How to Build in Open edX", + dataTestid: null +}]; + + +const config = { + pluginSlots: { + 'org.openedx.frontend.layout.studio_footer_help-content.v1': { + keepDefault: false, + plugins: [ + { + op: PLUGIN_OPERATIONS.Insert, + widget: { + id: 'studio_footer_helpcontent_addition', + type: DIRECT_PLUGIN, + priority: 40, + RenderWidget: () => { + return ( +
+
+
+ + {BUTTONS.map(({ as, href, size, message, dataTestid }) => ( + + {message} + + ))} + +
+
+
+ ) + } + } + }, + ], + }, + }, + +}; + +export default config; +