Skip to content

Commit 1a63e0a

Browse files
authored
Fix code includes & highlights (#2883)
* Fix "Block attribute type" * Fix "Create dashboard tab" * Fix "Performing a search"
1 parent 75b57e3 commit 1a63e0a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/administration/back_office/back_office_tabs/create_dashboard_tab.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ description: Add a new tab to the back office dashboard that welcomes every user
77
To create a new tab in the dashboard, create an `EveryoneArticleTab.php` file in `src/Tab/Dashboard/Everyone`.
88
This adds a tab to the **Common content** dashboard block that displays all articles in the repository.
99

10-
``` php hl_lines="17 45 57-60 71-73"
10+
``` php hl_lines="17 38 50-53 64-66"
1111
[[= include_file('code_samples/back_office/dashboard/article_tab/src/Tab/Dashboard/Everyone/EveryoneArticleTab.php') =]]
1212
```
1313

14-
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).
14+
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).
1515

16-
The tab also implements OrderedTabInterface (line 17), which enables you to define the order in which the tab is displayed on the dashboard page.
17-
It's done with the `getOrder()` method (line 45).
16+
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.
17+
It's done with the `getOrder()` method (line 38).
1818

1919
Register this tab as a service:
2020

docs/content_management/pages/page_block_attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ for example `AbstractType` for any custom type or `IntegerType` for numeric type
7070

7171
To define the type, create a `src/Block/Attribute/MyStringAttributeType.php` file:
7272

73-
``` php hl_lines="5 6 15"
73+
``` php hl_lines="5 6 17"
7474
[[= include_file('code_samples/page/custom_attribute/src/Block/Attribute/MyStringAttributeType.php') =]]
7575
```
7676

docs/search/search_api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ The service should be [injected into the constructor of your command or controll
2222

2323
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.
2424

25-
For example, to search for all content of a selected content type, use one Criterion, [`Criterion\ContentTypeIdentifier`](contenttypeidentifier_criterion.md) (line 12).
25+
For example, to search for all content of a selected content type, use one Criterion, [`Criterion\ContentTypeIdentifier`](contenttypeidentifier_criterion.md) (line 14).
2626

2727
The following command takes the content type identifier as an argument and lists all results:
2828

29-
``` php hl_lines="12 14"
29+
``` php hl_lines="14 16"
3030
// ...
3131
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 4, 7) =]]// ...
32-
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 14, 18) =]] // ...
33-
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 37, 45) =]]}
32+
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 17, 19) =]] // ...
33+
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentCommand.php', 32, 48) =]]}
3434
```
3535

36-
[`SearchService::findContentInfo`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-SearchService.html#method_findContentInfo) (line 14)
36+
[`SearchService::findContentInfo`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-SearchService.html#method_findContentInfo) (line 16)
3737
retrieves [`ContentInfo`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Persistence-Content-ContentInfo.html) objects of the found content items.
3838
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.
3939

0 commit comments

Comments
 (0)