Skip to content

[WIP] Add menu Twig component doc #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

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

[WIP] Add menu Twig component doc #2799

wants to merge 2 commits into from

Conversation

mnocon
Copy link
Contributor

@mnocon mnocon commented Jun 27, 2025

Copy link

Preview of modified files

Preview of modified Markdown:

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@70:``` yaml
docs/templating/components.md@71:[[= include_file('code_samples/back_office/components/twig_components.yaml') =]]
docs/templating/components.md@72:```

001⫶ibexa_twig_components:
002⫶ admin-ui-user-menu:
003⫶ custom-html-component:
004⫶ type: html
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'
037⫶ crossorigin: anonymous
038⫶ defer: false
039⫶ async: true
040⫶ integrity: sha384-Ewi2bBDtPbbu4/+fs8sIbBJ3zVl0LDOSznfhFR/JBK+SzggdRdX8XQKauWmI9HH2
041⫶ type: text/javascript

001⫶ibexa_twig_components:
002⫶ admin-ui-user-menu:
003⫶ custom-html-component:
004⫶ type: html
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'
037⫶ crossorigin: anonymous
038⫶ defer: false
039⫶ async: true
040⫶ integrity: sha384-Ewi2bBDtPbbu4/+fs8sIbBJ3zVl0LDOSznfhFR/JBK+SzggdRdX8XQKauWmI9HH2
041⫶ type: text/javascript
042⫶    storefront-menu:
043⫶ example_menu:
044⫶ type: menu
045⫶ arguments:
046⫶ name: app.menu.example
047⫶ depth: 3
048⫶ template: '@ibexadesign/menu/example_menu.html.twig'
049⫶ options:
050⫶ label: 'Hello World!'


Download colorized diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant