Skip to content

[Twig Components] Added Menu component #2799

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

Open
wants to merge 2 commits into
base: 4.6
Choose a base branch
from
Open

Conversation

mnocon
Copy link
Contributor

@mnocon mnocon commented Jun 27, 2025

Copy link

Preview of modified files

Preview of modified Markdown:

@mnocon mnocon force-pushed the add-menu-component-doc branch from f9a39d4 to b7726fa Compare July 10, 2025 07:43
@@ -56,11 +56,25 @@ You can use an unique group name when creating a Twig Component to create your o

| Name | Description | YAML type |
|---|---|---|
| [Controller](https://github.com/ibexa/twig-components/blob/main/src/lib/Component/ControllerComponent.php) | Renders a Symfony controller |`controller` |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've ordered these entries alphabetically, no other changes here except adding the menu entry

admin-ui-stylesheet-head:
custom-link-component:
type: stylesheet
custom-html-component:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ordered the examples to match the order from the table

@mnocon mnocon force-pushed the add-menu-component-doc branch from b7726fa to c5e6526 Compare July 10, 2025 07:50
@mnocon mnocon changed the title [WIP] Add menu Twig component doc [Twig Components] Added Menu component Jul 10, 2025
Copy link

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/back_office/components/twig_components.yaml


code_samples/back_office/components/twig_components.yaml

docs/templating/components.md@69:``` yaml
docs/templating/components.md@70:[[= include_file('code_samples/back_office/components/twig_components.yaml') =]]
docs/templating/components.md@71:```
docs/templating/components.md@83:``` yaml
docs/templating/components.md@84:[[= include_file('code_samples/back_office/components/twig_components.yaml') =]]
docs/templating/components.md@85:```

001⫶ibexa_twig_components:
002⫶ admin-ui-user-menu:

001⫶ibexa_twig_components:
002⫶ admin-ui-user-menu:
003⫶        custom-html-component:
004⫶ type: html
003⫶        custom-controller-component:
004⫶ type: controller
005⫶            arguments:
005⫶            arguments:
006⫶                content: '<b>Hello world!</b>'
007⫶ custom-template-component:
008⫶ type: template
009⫶ arguments:
010⫶ template: '@ibexadesign/ui/component/user_thumbnail/user_thumbnail.html.twig'
011⫶ parameters:
012⫶ user_content:
013⫶ name: "Thumbnail"
014⫶ thumbnail:
015⫶ resource: https://placecats.com/100/100
016⫶ custom-controller-component:
017⫶ type: controller
018⫶ arguments:
019⫶ controller: '\App\Controller\MyController::requestAction'
020⫶ parameters:
021⫶ parameter1: 'custom'
022⫶ parameter2: true
023⫶ admin-ui-stylesheet-head:
024⫶ custom-link-component:
025⫶ type: stylesheet
026⫶ arguments:
027⫶ href: 'https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback'
028⫶ rel: stylesheet
029⫶ crossorigin: anonymous
030⫶ integrity: sha384-LN/mLhO/GN6Ge8ZPvI7uRsZpiXmtSkep+aFlJcHa8by4TvA34o1am9sa88eUzKTD
031⫶ type: text/css
032⫶ admin-ui-script-head:
033⫶ custom-script-component:
034⫶ type: script
035⫶ arguments:
036⫶ src: 'https://doc.ibexa.co/en/latest/js/custom.js'
006⫶                controller: '\App\Controller\MyController::requestAction'
007⫶ parameters:
008⫶ parameter1: 'custom'
009⫶ parameter2: true
010⫶ custom-html-component:
011⫶ type: html
012⫶ arguments:
013⫶ content: '<b>Hello world!</b>'
014⫶ admin-ui-user-menu:
015⫶ duplicated_user_menu:
016⫶ type: menu
017⫶ arguments:
018⫶ name: ezplatform_admin_ui.menu.user
019⫶ template: '@ibexadesign/ui/menu/user.html.twig'
020⫶ depth: 1
021⫶ admin-ui-script-head:
022⫶ custom-script-component:
023⫶ type: script
024⫶ arguments:
025⫶ src: 'https://doc.ibexa.co/en/latest/js/custom.js'
026⫶ crossorigin: anonymous
027⫶ defer: false
028⫶ async: true
029⫶ integrity: sha384-Ewi2bBDtPbbu4/+fs8sIbBJ3zVl0LDOSznfhFR/JBK+SzggdRdX8XQKauWmI9HH2
030⫶ type: text/javascript
031⫶ admin-ui-stylesheet-head:
032⫶ custom-link-component:
033⫶ type: stylesheet
034⫶ arguments:
035⫶ href: 'https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback'
036⫶ rel: stylesheet
037⫶                crossorigin: anonymous
037⫶                crossorigin: anonymous
038⫶                defer: false
039⫶ async: true
040⫶ integrity: sha384-Ewi2bBDtPbbu4/+fs8sIbBJ3zVl0LDOSznfhFR/JBK+SzggdRdX8XQKauWmI9HH2
041⫶ type: text/javascript
038⫶                integrity: sha384-LN/mLhO/GN6Ge8ZPvI7uRsZpiXmtSkep+aFlJcHa8by4TvA34o1am9sa88eUzKTD
039⫶ type: text/css
040⫶ admin-ui-global-search:
041⫶ custom-template-component:
042⫶ type: template
043⫶ arguments:
044⫶ template: '@ibexadesign/ui/component/user_thumbnail/user_thumbnail.html.twig'
045⫶ parameters:
046⫶ user_content:
047⫶ name: "Thumbnail"
048⫶ thumbnail:
049⫶ resource: https://placecats.com/100/100


Download colorized diff

@mnocon mnocon marked this pull request as ready for review July 10, 2025 08:15
@mnocon mnocon requested a review from wiewiurdp July 10, 2025 08:40
@mnocon mnocon requested a review from a team July 15, 2025 14:15
@ezrobot ezrobot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team July 15, 2025 14:15
@mnocon mnocon added Wait with merge PRs that shouldn't be merged instantly Ready for MERGE and removed Needs DOC review labels Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for MERGE Wait with merge PRs that shouldn't be merged instantly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants