From a1e6cd9aa2859f4d669a976ef1aba1a96b7f99d8 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Wed, 20 Aug 2025 09:14:17 +0200 Subject: [PATCH 1/5] page_block_attributes.md: Fix hl_lines Follow #2864 --- docs/content_management/pages/page_block_attributes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content_management/pages/page_block_attributes.md b/docs/content_management/pages/page_block_attributes.md index bc2ef3eef3..7344c22b9e 100644 --- a/docs/content_management/pages/page_block_attributes.md +++ b/docs/content_management/pages/page_block_attributes.md @@ -70,7 +70,7 @@ for example `AbstractType` for any custom type or `IntegerType` for numeric type To define the type, create a `src/Block/Attribute/MyStringAttributeType.php` file: -``` php hl_lines="5 6 15" +``` php hl_lines="5 6 17" [[= include_file('code_samples/page/custom_attribute/src/Block/Attribute/MyStringAttributeType.php') =]] ``` From 0812607292d7632e60c4e6d67909120c6d9a6db7 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Mon, 25 Aug 2025 14:28:40 +0200 Subject: [PATCH 2/5] Update search_api.md --- docs/search/search_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/search/search_api.md b/docs/search/search_api.md index de1c1bca69..2f4a1575c1 100644 --- a/docs/search/search_api.md +++ b/docs/search/search_api.md @@ -26,7 +26,7 @@ For example, to search for all content of a selected content type, use one Crite The following command takes the content type identifier as an argument and lists all results: -``` php hl_lines="12 14" +``` php hl_lines="11 13" // ... [[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 4, 7) =]]// ... [[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 14, 18) =]] // ... From 5a345a45665a7b1834ccec1b1493773ff07d9ce4 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:41:49 +0200 Subject: [PATCH 3/5] create_dashboard_tab.md: Fix highlights & line nums --- .../back_office/back_office_tabs/create_dashboard_tab.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/administration/back_office/back_office_tabs/create_dashboard_tab.md b/docs/administration/back_office/back_office_tabs/create_dashboard_tab.md index 968f6fb7d9..202fe5f2d2 100644 --- a/docs/administration/back_office/back_office_tabs/create_dashboard_tab.md +++ b/docs/administration/back_office/back_office_tabs/create_dashboard_tab.md @@ -7,14 +7,14 @@ description: Add a new tab to the back office dashboard that welcomes every user To create a new tab in the dashboard, create an `EveryoneArticleTab.php` file in `src/Tab/Dashboard/Everyone`. This adds a tab to the **Common content** dashboard block that displays all articles in the repository. -``` php hl_lines="17 45 57-60 71-73" +``` php hl_lines="17 38 50-53 64-66" [[= include_file('code_samples/back_office/dashboard/article_tab/src/Tab/Dashboard/Everyone/EveryoneArticleTab.php') =]] ``` -This tab searches for content with content type "Article" (lines 57-60) and uses the built-in `all_content.html.twig` template to render the results, which ensures that the tab looks the same as the existing tabs (lines 71-73). +This tab searches for content with content type "Article" (lines 50-53) and uses the built-in `all_content.html.twig` template to render the results, which ensures that the tab looks the same as the existing tabs (lines 64-66). The tab also implements OrderedTabInterface (line 17), which enables you to define the order in which the tab is displayed on the dashboard page. -It's done with the `getOrder()` method (line 45). +It's done with the `getOrder()` method (line 38). Register this tab as a service: From 7e81e1d1640559870c6d6ddc68b7eeff0495c022 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:46:35 +0200 Subject: [PATCH 4/5] create_dashboard_tab.md: Add link to PHP API Ref --- .../back_office/back_office_tabs/create_dashboard_tab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/administration/back_office/back_office_tabs/create_dashboard_tab.md b/docs/administration/back_office/back_office_tabs/create_dashboard_tab.md index 202fe5f2d2..f2c86c599e 100644 --- a/docs/administration/back_office/back_office_tabs/create_dashboard_tab.md +++ b/docs/administration/back_office/back_office_tabs/create_dashboard_tab.md @@ -13,7 +13,7 @@ This adds a tab to the **Common content** dashboard block that displays all arti This tab searches for content with content type "Article" (lines 50-53) and uses the built-in `all_content.html.twig` template to render the results, which ensures that the tab looks the same as the existing tabs (lines 64-66). -The tab also implements OrderedTabInterface (line 17), which enables you to define the order in which the tab is displayed on the dashboard page. +The tab also implements [`OrderedTabInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-AdminUi-Tab-OrderedTabInterface.html) (line 17), which enables you to define the order in which the tab is displayed on the dashboard page. It's done with the `getOrder()` method (line 38). Register this tab as a service: From 2244011ecdcfa7169f1095b2a6379e201f7b6f36 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 7 Oct 2025 10:29:17 +0200 Subject: [PATCH 5/5] search_api.md: Fix include_file FindContentCommand.php --- docs/search/search_api.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/search/search_api.md b/docs/search/search_api.md index 2f4a1575c1..9f69bf8dc6 100644 --- a/docs/search/search_api.md +++ b/docs/search/search_api.md @@ -22,18 +22,18 @@ The service should be [injected into the constructor of your command or controll To search through content you need to create a [`LocationQuery`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-LocationQuery.html) and provide your Search Criteria as a series of Criterion objects. -For example, to search for all content of a selected content type, use one Criterion, [`Criterion\ContentTypeIdentifier`](contenttypeidentifier_criterion.md) (line 12). +For example, to search for all content of a selected content type, use one Criterion, [`Criterion\ContentTypeIdentifier`](contenttypeidentifier_criterion.md) (line 14). The following command takes the content type identifier as an argument and lists all results: -``` php hl_lines="11 13" +``` php hl_lines="14 16" // ... [[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 4, 7) =]]// ... -[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 14, 18) =]] // ... -[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 37, 45) =]]} +[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 17, 19) =]] // ... +[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 32, 48) =]]} ``` -[`SearchService::findContentInfo`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-SearchService.html#method_findContentInfo) (line 14) +[`SearchService::findContentInfo`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-SearchService.html#method_findContentInfo) (line 16) retrieves [`ContentInfo`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Persistence-Content-ContentInfo.html) objects of the found content items. You can also use [`SearchService::findContent`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-SearchService.html#method_findContent) to get full Content objects, together with their field information.