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 @@ -150,7 +150,7 @@ private function getModifiedImages(): ContentList
/** @phpstan-assert-if-true string $value->uri */
private function shouldGenerateAltText(Value $value): bool
{
return $this->fieldTypeService->getFieldType('ezimage')->isEmptyValue($value) === false &&
return $this->fieldTypeService->getFieldType('ibexa_image')->isEmptyValue($value) === false &&
$value->isAlternativeTextEmpty() &&
$value->uri !== null;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends '@ibexadesign/ui/field_type/edit/ezbinaryfile.html.twig' %}
{% extends '@ibexadesign/ui/field_type/edit/ibexa_binaryfile.html.twig' %}

{% block ezbinaryfile_preview %}
{% block ibexa_binaryfile_preview %}
{{ parent() }}

{% import '@ibexadesign/connector_ai/ui/ai_module/macros.html.twig' as ai_macros %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'eng-GB' => $contentTypeIdentifier,
];

$titleFieldCreateStruct = $this->contentTypeService->newFieldDefinitionCreateStruct('name', 'ezstring');
$titleFieldCreateStruct = $this->contentTypeService->newFieldDefinitionCreateStruct('name', 'ibexa_string');
$titleFieldCreateStruct->names = ['eng-GB' => 'Name'];
$titleFieldCreateStruct->descriptions = ['eng-GB' => 'The name'];
$titleFieldCreateStruct->fieldGroup = 'content';
Expand Down
2 changes: 1 addition & 1 deletion code_samples/back_office/images/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
public: true
arguments:
- '@ibexa.api.service.content'
- '@ibexa.field_type.ezbinaryfile.io_service'
- '@ibexa.field_type.ibexa_binaryfile.io_service'
- '@Ibexa\Core\Helper\TranslationHelper'

App\Connector\Dam\Handler\WikimediaCommonsHandler:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ezimageasset.dam_asset.page_url: Image page
ezimageasset.dam_asset.author: Image author
ezimageasset.dam_asset.license: License
ezimageasset.dam_asset.license_url: License page
ibexa_image_asset.dam_asset.page_url: Image page
ibexa_image_asset.dam_asset.author: Image author
ibexa_image_asset.dam_asset.license: License
ibexa_image_asset.dam_asset.license_url: License page
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
custom_tags: [ezyoutube, eztwitter, ezfacebook]
toolbar:
group1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
classes:
paragraph:
choices: [regular, special, tip_box, warning_box]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
attributes:
heading:
custom-attribute:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
toolbars:
paragraph:
buttons:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
custom_styles: [highlighted_block, highlighted_word]
ibexa_fieldtype_richtext:
custom_styles:
highlighted_word:
template: '@ibexadesign/field_type/ezrichtext/custom_styles/highlighted_word.html.twig'
template: '@ibexadesign/field_type/ibexa_richtext/custom_styles/highlighted_word.html.twig'
inline: true
highlighted_block:
template: '@ibexadesign/field_type/ezrichtext/custom_styles/highlighted_block.html.twig'
template: '@ibexadesign/field_type/ibexa_richtext/custom_styles/highlighted_block.html.twig'
inline: false
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
custom_styles: [highlight]
ibexa_fieldtype_richtext:
custom_styles:
highlight:
template: field_type/ezrichtext/custom_styles/highlight.html.twig
template: field_type/ibexa_richtext/custom_styles/highlight.html.twig
inline: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
custom_styles: [note_box]
ibexa_fieldtype_richtext:
custom_styles:
note_box:
template: field_type/ezrichtext/custom_styles/note_box.html.twig
template: field_type/ibexa_richtext/custom_styles/note_box.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
custom_tags: [acronym]
toolbar:
custom_tags_group:
Expand All @@ -12,7 +12,7 @@ ibexa:
ibexa_fieldtype_richtext:
custom_tags:
acronym:
template: '@ibexadesign/field_type/ezrichtext/custom_tags/acronym.html.twig'
template: '@ibexadesign/field_type/ibexa_richtext/custom_tags/acronym.html.twig'
icon: '/bundles/ibexaicons/img/all-icons.svg#edit'
is_inline: true
attributes:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ezrichtext.custom_tags.acronym.label: 'Acronym'
ezrichtext.custom_tags.acronym.attributes.explanation.label: 'Explanation'
ibexa_richtext.custom_tags.acronym.label: 'Acronym'
ibexa_richtext.custom_tags.acronym.attributes.explanation.label: 'Explanation'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
custom_tags: [factbox]
toolbar:
custom_tags_group:
Expand All @@ -12,7 +12,7 @@ ibexa:
ibexa_fieldtype_richtext:
custom_tags:
factbox:
template: '@ibexadesign/field_type/ezrichtext/custom_tags/factbox.html.twig'
template: '@ibexadesign/field_type/ibexa_richtext/custom_tags/factbox.html.twig'
icon: '/bundles/ibexaicons/img/all-icons.svg#information'
attributes:
name:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ezrichtext.custom_tags.factbox.label: 'Factbox'
ezrichtext.custom_tags.factbox.attributes.name.label: 'Name'
ezrichtext.custom_tags.factbox.attributes.style.label: 'Style'
ibexa_richtext.custom_tags.factbox.label: 'Factbox'
ibexa_richtext.custom_tags.factbox.attributes.name.label: 'Name'
ibexa_richtext.custom_tags.factbox.attributes.style.label: 'Style'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ibexa:
system:
admin_group:
fieldtypes:
ezrichtext:
ibexa_richtext:
custom_tags: [linktag]
toolbar:
custom_tags_group:
Expand All @@ -12,7 +12,7 @@ ibexa:
ibexa_fieldtype_richtext:
custom_tags:
linktag:
template: '@ibexadesign/field_type/ezrichtext/custom_tags/linktag.html.twig'
template: '@ibexadesign/field_type/ibexa_richtext/custom_tags/linktag.html.twig'
icon: '/bundles/ibexaicons/img/all-icons.svg#link'
is_inline: true
attributes:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ezrichtext.custom_tags.linktag.label: 'Link Tag'
ezrichtext.custom_tags.linktag.attributes.title.label: 'Title'
ezrichtext.custom_tags.linktag.attributes.description.label: 'Description'
ezrichtext.custom_tags.linktag.attributes.color.label: 'Color'
ezrichtext.custom_tags.linktag.attributes.url.label: 'URL'
ibexa_richtext.custom_tags.linktag.label: 'Link Tag'
ibexa_richtext.custom_tags.linktag.attributes.title.label: 'Title'
ibexa_richtext.custom_tags.linktag.attributes.description.label: 'Description'
ibexa_richtext.custom_tags.linktag.attributes.color.label: 'Color'
ibexa_richtext.custom_tags.linktag.attributes.url.label: 'URL'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ezrichtext.custom_styles.highlighted_block.label: Highlighted block
ezrichtext.custom_styles.highlighted_word.label: Highlighted word
ibexa_richtext.custom_styles.highlighted_block.label: Highlighted block
ibexa_richtext.custom_styles.highlighted_word.label: Highlighted word

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions code_samples/data_migration/examples/create_blog_post_ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
name: Blog Post
fields:
- identifier: title
type: ezstring
type: ibexa_string
required: true
translations:
eng-GB:
name: 'Title'
- identifier: body
type: ezrichtext
type: ibexa_richtext
required: false
translations:
eng-GB:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name: Hat
fields:
- identifier: name
type: ezstring
type: ibexa_string
required: true
translations:
eng-GB:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function doHandle(StepInterface $step)
$struct = $this->contentService->newContentUpdateStruct();

foreach ($contentItem->getFields() as $field) {
if ($field->fieldTypeIdentifier !== 'ezstring') {
if ($field->fieldTypeIdentifier !== 'ibexa_string') {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% block ezauthor_field %}
{% block ibexa_author_field %}
{% if field.value.authors|length() > 0 %}
{% for author in field.value.authors %}
<span class="author">{{ author.name }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ final class ImageFieldEncoder implements FieldEncoderInterface
{
public function canEncode(Field $field): bool
{
return $field->fieldTypeIdentifier === 'ezimage';
return $field->fieldTypeIdentifier === 'ibexa_image';
}

public function canDecode(string $type): bool
{
return $type === 'ezimage';
return $type === 'ibexa_image';
}

public function encode(Field $field): string
Expand Down
2 changes: 1 addition & 1 deletion code_samples/tutorials/page_tutorial/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ footer div {
margin-top: 15px;
}

.block-form .ezstring-field {
.block-form .ibexa_string-field {
display: inline-block;
font-variant: small-caps;
font-size: 1.2em;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% block ezform_field %}
{% block ibexa_form_field %}
{% set formValue = field.value.getForm() %}
{% if formValue %}
{% set form = formValue.createView() %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The available groups for the back office are:
|`admin-ui-global-search-autocomplete-templates`| `vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/global_search.html.twig` |
|`admin-ui-global-search`| `vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/layout.html.twig` |
|`admin-ui-header-user-menu-middle`| `vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/menu/user.html.twig` |
|`admin-ui-image-edit-actions-after`| <ul><li>`vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimage.html.twig` </li><li>`vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ezimageasset.html.twig` </li></ul>|
|`admin-ui-image-edit-actions-after`| <ul><li>`vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ibexa_image.html.twig` </li><li>`vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/field_type/edit/ibexa_image_asset.html.twig` </li></ul>|
|`admin-ui-layout-content-after`| `vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/layout.html.twig` |
|`admin-ui-link-manager-block`| `vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/url_management/url_management.html.twig` |
|`admin-ui-location-view-content-alerts`| `vendor/ibexa/admin-ui/src/bundle/Resources/views/themes/admin/content/location_view.html.twig` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you don't want to use custom thumbnails, `ContentType` is used instead.
## Thumbnail mechanism

The thumbnail mechanism has two layers, and each layer can have many implementations.
The mechanism checks if any of the implementations returns a field, for example, `ezimage`, that has function "Can be a thumbnail" turned on.
The mechanism checks if any of the implementations returns a field, for example, `ibexa_image`, that has function "Can be a thumbnail" turned on.

![Can be a thumbnail setting](extending_thumbnail_can_be.png)

Expand Down Expand Up @@ -65,12 +65,12 @@ At this point you can go to the back office and check the results.

Any field type can generate a thumbnail, for example:

- DateAndTime (`ezdatetime`) - you can add a mini calendar thumbnail for Appointment content type and on the day of the appointment a clock thumbnail with a specific time when it takes place
- TextBlock (`eztext`) - you can add a first letter of the text block that is inside
- DateAndTime (`ibexa_datetime`) - you can add a mini calendar thumbnail for Appointment content type and on the day of the appointment a clock thumbnail with a specific time when it takes place
- TextBlock (`ibexa_text`) - you can add a first letter of the text block that is inside

### Add eztext field as thumbnail
### Add ibexa_text field as thumbnail

First, create a strategy that adds support for `eztext` as the thumbnail.
First, create a strategy that adds support for `ibexa_text` as the thumbnail.
It enables you to add a thumbnail URL in the text field.

Add `FieldValueUrl.php` in `src/Thumbnails`.
Expand All @@ -91,7 +91,7 @@ class FieldValueUrl implements FieldTypeBasedThumbnailStrategy
{
public function getFieldTypeIdentifier(): string
{
return 'eztext';
return 'ibexa_text';
}

public function getThumbnail(Field $field, ?VersionInfo $versionInfo = null): ?Thumbnail
Expand Down
4 changes: 2 additions & 2 deletions docs/ai_actions/extend_ai_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ Content-Type: application/vnd.ibexa.api.ai.TranscribeAudio+json

The last step in fully integrating the Transcribe Audio Action Type embeds it directly into the back office, allowing Editors to invoke it while doing their daily work.

Extend the default editing template of the `ezbinaryfile` fieldtype by creating a new file called `templates/themes/admin/admin/ui/fieldtype/edit/form_fields_binary_ai.html.twig`.
This template embeds the AI component, but only if a dedicated `transcript` field (of `eztext` type) is available in the same content type to store the content of the transcription.
Extend the default editing template of the `ibexa_binaryfile` fieldtype by creating a new file called `templates/themes/admin/admin/ui/fieldtype/edit/form_fields_binary_ai.html.twig`.
This template embeds the AI component, but only if a dedicated `transcript` field (of `ibexa_text` type) is available in the same content type to store the content of the transcription.


``` twig
Expand Down
4 changes: 2 additions & 2 deletions docs/api/graphql/graphql_custom_ft.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If your field definition doesn't require additional clarifications, you can map

To map a custom field type with configuration use a compiler pass to modify a container parameter, `ibexa.graphql.schema.content.mapping.field_definition_type`.

It's a hash that maps a field type identifier (`ezstring`) to the following entries:
It's a hash that maps a field type identifier (`ibexa_string`) to the following entries:

- `value_type` - the GraphQL type values of the custom field. It can be a native type (string, int), or a custom type. If none is specified, string is used.
- `value_resolver` - how values of this field are resolved and passed to the defined value type.
Expand Down Expand Up @@ -145,7 +145,7 @@ The cardinality (single or collection) depends on the selection limit setting:
#### Field input mapping

The `mapToFieldValueInputType` method is used to document what input type is expected by field types that require a more complex input value.
For example, `ezmatrix` generates its own input types depending on the configured columns.
For example, `ibexa_matrix` generates its own input types depending on the configured columns.

Example of a `MyCustomFieldDefinitionMapper` mapper for a complex field type:

Expand Down
2 changes: 1 addition & 1 deletion docs/content_management/content_api/browsing_content.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,6 @@ $nameComparison = $this->comparisonService->compare($versionFrom, $versionTo)->g
```

`getComparisonResult` returns a `ComparisonResult` object, which depends on the field type being compared.
In the example of a Text Line (ezstring) field, it's an array of `StringDiff` objects.
In the example of a Text Line (ibexa_string) field, it's an array of `StringDiff` objects.

Each diff contains a section of the field to compare (for example, a part of a text line) and its status, which can be "unchanged", "added" or "removed".
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To create a custom migration step, you need:
- A step normalizer, to convert YAML definition into your step class.
- A step executor, to handle the step.

The following example shows how to create a step that replaces all `ezstring` fields that have an old company name with "New Company Name".
The following example shows how to create a step that replaces all `ibexa_string` fields that have an old company name with "New Company Name".

## Create step class

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ mode: Update

!!! note

In the `unassign_role_user_group` action, the ID is role assignment ID from the `ezuser_role` table.
In the `unassign_role_user_group` action, the ID is role assignment ID from the `ibexa_user_role` table.
2 changes: 1 addition & 1 deletion docs/content_management/data_migration/exporting_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ php bin/console ibexa:migrations:generate --type=content_type --mode=update --ma
fields:
-
identifier: title
type: ezstring
type: ibexa_string
position: 1
translations:
eng-GB:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can add the possibility to compare custom and other unsupported field types.
!!! note

The following task uses the [custom "Hello World" field type](create_custom_generic_field_type.md).
The configuration is based on the comparison mechanism created for the `ezstring` field type.
The configuration is based on the comparison mechanism created for the `ibexa_string` field type.

## Create Comparable class

Expand Down
Loading
Loading