Help needed: porting classic admin plugin that hides toolbar buttons → Pimcore Studio UI (React + TypeScript) #2559
Unanswered
Chauhan-Mukesh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone
I have a working classic-admin JS plugin (ExtJS) that hides Save / Save & Publish / Unpublish / Delete / Trace buttons for published master data objects. I tried to port it to Studio UI (React + TypeScript) using componentRegistry.registerToSlot(...) and a DOM-based HideToolbarButton component, but it “works somehow” and feels fragile. I’m asking the Pimcore / Studio UI crowd for recommended patterns, correct extension points, and fixes for the TypeScript implementation (avoid brittle DOM hacks, proper lifecycle, preferred APIs to control toolbar/menu items).
Environment
What I want
When opening a DataObject editor:
Classic admin code (works in “admin classic” ExtJS)
What I already attempted in Studio UI (React + TS)
(index.ts, module registration, module file and component below)
index.ts
hideModule.ts
hideComponent.tsx
Problem with the React/TS attempt:
Questions / requests for the community
What I’d like help with
If anyone has a short example showing how to override a toolbar button visibility with componentRegistry or moduleSystem (not a DOM hack), please paste it — that’s exactly what I want.
Thanks — I’ll paste any follow-ups or additional logs if needed.
Beta Was this translation helpful? Give feedback.
All reactions