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
6 changes: 3 additions & 3 deletions docs/field-type-validator-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ The `BaseFieldValidator` class has a few required properties. All of them are li

**classInvalid** _{String}_ - CSS class name to be added when field is invalid, example: 'is-invalid'.

**fieldSelector** _{String}_ - CSS selector of the field, example: '.ez-field-edit-ezstring',
**fieldSelector** _{String}_ - CSS selector of the field, example: '.ez-field-edit-ibexa_string',

**eventsMap** _{Array}_ - events config:
- **selector** _{String}_ - CSS selector of input (where to add an event listener), example: '.ez-field-edit-ezstring input'.
- **selector** _{String}_ - CSS selector of input (where to add an event listener), example: '.ez-field-edit-ibexa_string input'.
- **eventName** _{String}_ - event name, example: 'blur'.
- **callback** _{String}_ - callback for event listener, example: 'validateInput', should return object with two params:
- **isError** _{Boolean}_ - indicator of error state (true/false).
- **errorMessage** _{String}_ - text of the error.
- **invalidStateSelectors** {Array} - CSS selectors where to add invalid class, example: ['.ez-field-edit-ezstring'].
- **invalidStateSelectors** {Array} - CSS selectors where to add invalid class, example: ['.ez-field-edit-ibexa_string'].
- **errorNodeSelectors** {Array} - CSS selectors where to append an error message, example: ['.ez-field-edit-text-zone'].

## Useful methods
Expand Down
6 changes: 3 additions & 3 deletions features/standard/ContentTranslation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ Feature: Content item transation
And content attributes equal
| label | value | fieldTypeIdentifier |
| Name | Folder | |
| Short name | This field is empty | ezstring |
| Short description | This field is empty | ezrichtext |
| Description | This field is empty | ezrichtext |
| Short name | This field is empty | ibexa_string |
| Short description | This field is empty | ibexa_richtext |
| Description | This field is empty | ibexa_richtext |
6 changes: 3 additions & 3 deletions features/standard/ContentType.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Feature: Content types management
# | Content name pattern | <name> |
# And content type "Test content type" has proper fields
# | fieldName | fieldType |
# | Name | ezstring |
# | DateField | ezdate |
# | Name | ibexa_string |
# | DateField | ibexa_date |
#
# @javascript @APIUser:admin @broken
# Scenario: Content type can be deleted from content type group
Expand Down Expand Up @@ -95,4 +95,4 @@ Feature: Content types management
| Content name pattern | <name> |
And content type "Test content type" has proper fields
| fieldName | fieldType |
| Country field | ezcountry |
| Country field | ibexa_country |
6 changes: 3 additions & 3 deletions features/standard/fields/contentQuery.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feature: Content fields setting and editing
Given I am logged as admin
And I'm on Content view Page for "ContentQueryFieldContainer"
When I start creating a new content "<fieldName> CT"
And the "Ezcontentquery" field is noneditable
Copy link
Member

@adamwojs adamwojs Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is reference to field type identifier or field label ? Probably it's label

And the "ibexa_content_query" field is noneditable
And I set content fields
| label | <label1> |
| Name | <fieldName> |
Expand All @@ -28,7 +28,7 @@ Feature: Content fields setting and editing
| Field | <value1> | <fieldInternalName> |
Examples:
| fieldInternalName | fieldName | fieldSettings | label1 | value1 |
| ezcontentquery | Content query | QueryType-Folders under media,ContentType-folder,ItemsPerPage-100,Parameters-contentTypeId:folder;locationId:43| value | Images,Files,Multimedia |
| ibexa_content_query | Content query | QueryType-Folders under media,ContentType-folder,ItemsPerPage-100,Parameters-contentTypeId:folder;locationId:43| value | Images,Files,Multimedia |

@javascript @APIUser:admin @contentQuery
Scenario: Edit content item with Content Query
Expand All @@ -43,4 +43,4 @@ Feature: Content fields setting and editing
And I should be on Content view Page for "ContentQueryFieldContainer/New Content query"
And content attributes equal
| label | value | fieldTypeIdentifier |
| Field | Images,Files,Multimedia | ezcontentquery |
| Field | Images,Files,Multimedia | ibexa_content_query |
6 changes: 3 additions & 3 deletions features/standard/fields/date.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Feature: Content fields setting and editing

Examples:
| fieldInternalName | fieldName | fieldSettings | label1 | value1 | label2 | value2 | label3 | value3 | contentItemName |
| ezdate | Date | | value | 11/23/2019 | | | | | Saturday 23 November 2019 |
| ezdatetime | Date and time | | date | 11/23/2019 | time | 14:45 | | | Sat 2019-23-11 14:45:00 |
| eztime | Time | | value | 14:45 | | | | | 2:45:00 pm |
| ibexa_date | Date | | value | 11/23/2019 | | | | | Saturday 23 November 2019 |
| ibexa_datetime | Date and time | | date | 11/23/2019 | time | 14:45 | | | Sat 2019-23-11 14:45:00 |
| ibexa_time | Time | | value | 14:45 | | | | | 2:45:00 pm |

@javascript @APIUser:admin
Scenario Outline: Edit content item with given field
Expand Down
4 changes: 2 additions & 2 deletions features/standard/fields/map.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Feature: Content fields setting and editing

Examples:
| fieldInternalName | fieldName | fieldSettings | label1 | value1 | label2 | value2 | label3 | value3 | contentItemName |
#| ezgmaplocation | Map location | | latitude | 34.1 | longitude | -118.2 | address | Los Angeles | Los Angeles |
| ezcountry | Country | | value | Angola | | | | | Angola |
#| ibexa_gmap_location | Map location | | latitude | 34.1 | longitude | -118.2 | address | Los Angeles | Los Angeles |
| ibexa_country | Country | | value | Angola | | | | | Angola |

@javascript @APIUser:admin
Scenario Outline: Edit content item with given field
Expand Down
8 changes: 4 additions & 4 deletions features/standard/fields/media.feature
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ Feature: Content fields setting and editing

Examples:
| fieldInternalName | fieldName | fieldSettings | label1 | value1 | label2 | value2 | label3 | value3 | contentItemName |
| ezmedia | Media | | value | video1.mp4 | | | | | video1.mp4 |
| ezimage | Image | | value | image1.png | | | | | image1.png |
| ezbinaryfile | File | | value | binary1.txt | | | | | binary1.txt |
| ezimageasset | Image Asset | | value | imageasset1.png | | | | | imageasset1.png |
| ibexa_media | Media | | value | video1.mp4 | | | | | video1.mp4 |
| ibexa_image | Image | | value | image1.png | | | | | image1.png |
| ibexa_binaryfile | File | | value | binary1.txt | | | | | binary1.txt |
| ibexa_image_asset | Image Asset | | value | imageasset1.png | | | | | imageasset1.png |

@javascript @APIUser:admin
Scenario Outline: Edit content item with given field
Expand Down
18 changes: 9 additions & 9 deletions features/standard/fields/other.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ Feature: Content fields setting and editing

Examples:
| fieldInternalName | fieldName | fieldSettings | label1 | value1 | contentItemName | fieldTypeIdentifier |
| ezselection | Selection | is_multiple:false,options:A first-Bielefeld-TestValue-Turtles-Zombies | value | TestValue | TestValue | ezselection |
| ezboolean | Checkbox | | value | true | 1 | |
| ezemail | Email address | | value | [email protected] | [email protected] | |
| ezfloat | Float | | value | 11.11 | 11.11 | |
| ezisbn | ISBN | | value | 978-3-16-148410-0 | 978-3-16-148410-0 | |
| ezinteger | Integer | | value | 1111 | 1111 | |
| ezkeyword | Keywords | | value | keyword1 | keyword1 | |
| ezmatrix | Matrix | Min_rows:2,Columns:col1-col2-col3 | value | col1:col2:col3,Ala:miała:kota,Szpak:dziobał:bociana,Bociana:dziobał:szpak | Matrix | |
| ibexa_selection | Selection | is_multiple:false,options:A first-Bielefeld-TestValue-Turtles-Zombies | value | TestValue | TestValue | ibexa_selection |
| ibexa_boolean | Checkbox | | value | true | 1 | |
| ibexa_email | Email address | | value | [email protected] | [email protected] | |
| ibexa_float | Float | | value | 11.11 | 11.11 | |
| ibexa_isbn | ISBN | | value | 978-3-16-148410-0 | 978-3-16-148410-0 | |
| ibexa_integer | Integer | | value | 1111 | 1111 | |
| ibexa_keyword | Keywords | | value | keyword1 | keyword1 | |
| ibexa_matrix | Matrix | Min_rows:2,Columns:col1-col2-col3 | value | col1:col2:col3,Ala:miała:kota,Szpak:dziobał:bociana,Bociana:dziobał:szpak | Matrix | |

@javascript @APIUser:admin
Scenario Outline: Edit content item with given field
Expand All @@ -55,7 +55,7 @@ Feature: Content fields setting and editing

Examples:
| label1 | value1 | oldContentItemName | newContentItemName | fieldTypeIdentifier |
| value | Bielefeld | TestValue | Bielefeld | ezselection |
| value | Bielefeld | TestValue | Bielefeld | ibexa_selection |
| value | false | 1 | 0 | |
| value | [email protected] | [email protected] | [email protected] | |
| value | 12.34 | 11.11 | 12.34 | |
Expand Down
4 changes: 2 additions & 2 deletions features/standard/fields/relations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Feature: Content fields setting and editing

Examples:
| fieldInternalName | fieldName | fieldSettings | label1 | value1 | label2 | value2 | label3 | value3 | contentItemName |
| ezobjectrelation | Content relation (single) | | value | Media/Images | | | | | Images |
| ezobjectrelationlist | Content relations (multiple) | | firstItem | Media/Images | secondItem | Media/Files | | | Images Files |
| ibexa_object_relation | Content relation (single) | | value | Media/Images | | | | | Images |
| ibexa_object_relation_list | Content relations (multiple) | | firstItem | Media/Images | secondItem | Media/Files | | | Images Files |

@javascript @APIUser:admin
Scenario Outline: Edit content item with given field
Expand Down
Loading
Loading