@@ -18,13 +18,13 @@ netgen_open_graph:
1818 content_type_handlers :
1919 blog_post :
2020 - { handler: literal/text, tag: 'og:type', params: ['article'] }
21- - { handler: field_type/ezstring , tag: 'og:title', params: ['title'] }
22- - { handler: field_type/ezimage , tag: 'og:image', params: ['image', 'opengraph'] }
21+ - { handler: field_type/ibexa_string , tag: 'og:title', params: ['title'] }
22+ - { handler: field_type/ibexa_image , tag: 'og:image', params: ['image', 'opengraph'] }
2323 article :
2424 - { handler: literal/text, tag: 'og:type', params: ['article'] }
25- - { handler: field_type/ezstring , tag: 'og:title', params: ['short_title'] }
26- - { handler: field_type/ezrichtext , tag: 'og:description', params: ['short_intro'] }
27- - { handler: field_type/ezimage , tag: 'og:image', params: ['line_image', 'opengraph'] }
25+ - { handler: field_type/ibexa_string , tag: 'og:title', params: ['short_title'] }
26+ - { handler: field_type/ibexa_richtext , tag: 'og:description', params: ['short_intro'] }
27+ - { handler: field_type/ibexa_image , tag: 'og:image', params: ['line_image', 'opengraph'] }
2828` ` `
2929
3030What happens here is that each element in ` content_type_handlers` array corresponds to one content type in your
@@ -55,15 +55,15 @@ Will result in following meta tag:
5555<meta property="og:site_name" content="My super cool site" />
5656` ` `
5757
58- # ## field_type/ezstring
58+ # ## field_type/ibexa_string
5959
6060This handler will return the value of `TextLine` field type. You can specify the field definition identifier
6161as a first parameter, and optionally, a fallback value if the field is empty.
6262
6363The following config :
6464
6565` ` ` yaml
66- { handler: field_type/ezstring , tag: 'og:title', params: ['title', 'My fallback title'] }
66+ { handler: field_type/ibexa_string , tag: 'og:title', params: ['title', 'My fallback title'] }
6767` ` `
6868
6969Will result in following meta tag :
@@ -80,15 +80,15 @@ In cases where `title` field is empty, meta tag will look like this:
8080<meta property="og:title" content="My fallback title" />
8181` ` `
8282
83- # ## field_type/eztext
83+ # ## field_type/ibexa_text
8484
8585This handler will return the value of `TextBlock` field type. You can specify the field definition identifier
8686as a first parameter, and optionally, a fallback value if the field is empty.
8787
8888The following config :
8989
9090` ` ` yaml
91- { handler: field_type/eztext , tag: 'og:description', params: ['short_description', 'My fallback description'] }
91+ { handler: field_type/ibexa_text , tag: 'og:description', params: ['short_description', 'My fallback description'] }
9292` ` `
9393
9494Will result in following meta tag :
@@ -105,15 +105,15 @@ In cases where `short_description` field is empty, meta tag will look like this:
105105<meta property="og:description" content="My fallback description" />
106106` ` `
107107
108- # ## field_type/ezrichtext
108+ # ## field_type/ibexa_richtext
109109
110110This handler will return the value of `RichText` field type. You can specify the field definition identifier
111111as a first parameter, and optionally, a fallback value if the field is empty.
112112
113113The following config :
114114
115115` ` ` yaml
116- { handler: field_type/ezrichtext , tag: 'og:description', params: ['description', 'My fallback description'] }
116+ { handler: field_type/ibexa_richtext , tag: 'og:description', params: ['description', 'My fallback description'] }
117117` ` `
118118
119119Will result in following meta tag :
@@ -130,7 +130,7 @@ In cases where `description` field is empty, meta tag will look like this:
130130<meta property="og:description" content="My fallback description" />
131131` ` `
132132
133- # ## field_type/ezimage
133+ # ## field_type/ibexa_image
134134
135135This handler will return the path to the image stored in `Image` field type. You can specify the field definition
136136identifier as a first parameter, and optionally, image variation to use as a second parameter (`opengraph` variation
@@ -139,7 +139,7 @@ will be used by default), and a fallback path to an image if the field is empty.
139139The following config :
140140
141141` ` ` yaml
142- { handler: field_type/ezimage , tag: 'og:image', params: ['image', 'my_variation', 'bundles/site/images/opengraph_default_image.png'] }
142+ { handler: field_type/ibexa_image , tag: 'og:image', params: ['image', 'my_variation', 'bundles/site/images/opengraph_default_image.png'] }
143143` ` `
144144
145145Will result in following meta tag :
@@ -243,7 +243,7 @@ Notice that in case of field value being empty `getFieldValue` method throws
243243If you need more complicated handling of fallback value, you can also override `getFallbackValue` method. Just like already
244244implemented `getFieldValue`, the default implementation of this method simply casts second parameter (`$params[1]`) to string.
245245
246- For example, `ezimage ` field type handler has the following custom implementation :
246+ For example, `ibexa_image ` field type handler has the following custom implementation :
247247
248248` ` ` php
249249protected function getFallbackValue(string $tagName, array $params = []): string
0 commit comments