-
Notifications
You must be signed in to change notification settings - Fork 82
[Subitems] Add extensibility point to add new views #2735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Preview of modified filesPreview of modified Markdown: |
!!! caution | ||
## Add custom sub-items list view | ||
|
||
You can extend the Sub-items List module to add your own views to it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or override the existing view
?
If you pass the existing viewName as a first parameter in registerView(), you will override the existing view with your own. https://github.com/ibexa/admin-ui/blob/main/src/bundle/ui-dev/src/modules/sub-items/services/view.registry.js#L26
I think it is worth mentioning because this was the original customer problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, added in 34c5442
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the steps with success on 4.6.x-dev (with reverting 30348fb)
I would remind to run composer run post-install-cmd
for Encore to be re-compiled.
code_samples/ change report
|
* Before prefix change * Prefixes * Screenshot * Adjusted example to v5 * Vale suggestion * Added mention about replacing a view * Improvements * Added mention of composer run post-install-cmd
Doc for ibexa/admin-ui#1537
Preview: https://ez-systems-developer-documentation--2735.com.readthedocs.build/en/2735/administration/back_office/subitems_list/
Some changes compared to the examples from PR:
ibexa
prefixes toapp
The example has been updated to work with v5 in:
ba9e392
this commit will be reverted manually when cherry-picking to 4.6
Checklist