This repository provides an example workflow on how to override components in a Frappe UI-based applications. The example demonstrates how to add a new page with a YouTube video embed and integrate it into the sidebar of Frappe CRM from a custom app.
See the video here: https://www.youtube.com/watch?v=OKrGJa2NnIs
- Demonstrates how to override Frappe UI components from custom app.
- Modifies the Frappe CRM sidebar to include a link to the custom page.
- Frappe Bench with Frappe CRM Installed
-
Get the app code:
If developing, clone the repository into app directory of your bench.
git clone https://github.com/your-username/crm_override.git cd crm_override
To Try, get-app with bench cli.
bench get-app https://github.com/esafwan/crm_override.git bench --site your-site-name install-app crm_override
-
Install dependencies:
cd frontend yarn yarn build
-
Run the app:
bench start
- `src_overrides/` - Contains overridden Vue components.
- `vite.config.js` - Vite configuration for building the frontend assets.
- `package.json` - package.json configuration calls the build script and do the overrides.
- The `src_overrides` in the frontend folder contains the overridden sidebar and new custom page.
- The `custom-build.js` in the frontend folder does the overrides at build.