You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -70,8 +94,9 @@ class CustomOption extends Option {
70
94
Contentstack Utils SDK lets you interact with the Content Delivery APIs and retrieve embedded items from the RTE field of an entry.
71
95
72
96
### Fetch Embedded Item(s) from a Single Entry:
97
+
#### Render HTML RTE Embedded object
73
98
74
-
To get an embedded item of a single entry, you need to provide the stack API key, environment name, delivery token, content type’s UID, and entry’s UID. Then, use the includeEmbeddedItems function as shown below:
99
+
To get an embedded item of a single entry, you need to provide the stack API key, environment name, delivery token, content type’s UID, and entry’s UID. Then, use the `Contentstack::renderContent` function as shown below:
75
100
76
101
```php
77
102
use Contentstack\Contentstack;
@@ -84,9 +109,27 @@ $render_rich_text = Contentstack::renderContent($entry['rte_field_uid'], new Opt
84
109
85
110
If you want to render embedded items using the CustomOption function, you can refer to the code below:
86
111
```php
87
-
$rendered_rich_text = Contentstack.render_content($entry['rte_field_uid'], new CustomOption($entry));
112
+
$rendered_rich_text = Contentstack.renderContent($entry['rte_field_uid'], new CustomOption($entry));
113
+
```
114
+
#### Render Supercharged RTE contents
115
+
To get a single entry, you need to provide the stack API key, environment name, delivery token, content type and entry UID. Then, use `Contentstack::jsonToHtml` function as shown below:
$render_rich_text = Contentstack::renderContent($entry['rich_text_content'], new Option($entry));
101
144
}
102
145
```
146
+
147
+
#### Render Supercharged RTE contents
148
+
To get a single entry, you need to provide the stack API key, environment name, delivery token, content type UID. Then, use `Contentstack::jsonToHtml` function as shown below:
0 commit comments