Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
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).
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.

Check failure on line 16 in docs/administration/back_office/back_office_tabs/create_dashboard_tab.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/back_office_tabs/create_dashboard_tab.md#L16

[Ibexa.VariablesGlobal] Use global variable '[[= product_name_base =]]' instead of 'Ibexa'
Raw output
{"message": "[Ibexa.VariablesGlobal] Use global variable '[[= product_name_base =]]' instead of 'Ibexa'", "location": {"path": "docs/administration/back_office/back_office_tabs/create_dashboard_tab.md", "range": {"start": {"line": 16, "column": 88}}}, "severity": "ERROR"}

Check failure on line 16 in docs/administration/back_office/back_office_tabs/create_dashboard_tab.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/administration/back_office/back_office_tabs/create_dashboard_tab.md#L16

[Ibexa.DomainTerms] Use 'back office' instead of 'AdminUi'
Raw output
{"message": "[Ibexa.DomainTerms] Use 'back office' instead of 'AdminUi'", "location": {"path": "docs/administration/back_office/back_office_tabs/create_dashboard_tab.md", "range": {"start": {"line": 16, "column": 104}}}, "severity": "ERROR"}
It's done with the `getOrder()` method (line 38).

Register this tab as a service:

Expand Down
2 changes: 1 addition & 1 deletion docs/content_management/pages/page_block_attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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') =]]
```

Expand Down
10 changes: 5 additions & 5 deletions docs/search/search_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@

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="12 14"
``` 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)

Check failure on line 36 in docs/search/search_api.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/search/search_api.md#L36

[Ibexa.VariablesGlobal] Use global variable '[[= product_name_base =]]' instead of 'Ibexa'
Raw output
{"message": "[Ibexa.VariablesGlobal] Use global variable '[[= product_name_base =]]' instead of 'Ibexa'", "location": {"path": "docs/search/search_api.md", "range": {"start": {"line": 36, "column": 75}}}, "severity": "ERROR"}
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.

Expand Down
Loading