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
@@ -474,7 +476,11 @@ function BlogPost({ post }) {
474
476
475
477
## Manual overlays
476
478
477
-
In some cases, you may want to manually create click-to-edit overlays for content that doesn't have stega encoding. You can do this by adding the `data-datocms-content-link-url` attribute with a DatoCMS editing URL:
479
+
In some cases, you may want to manually create click-to-edit overlays for content that doesn't have stega encoding.
480
+
481
+
### Using `data-datocms-content-link-url`
482
+
483
+
You can add the `data-datocms-content-link-url` attribute with a DatoCMS editing URL:
478
484
479
485
```jsx
480
486
functionManualOverlay({ record }) {
@@ -500,7 +506,20 @@ query {
500
506
}
501
507
```
502
508
503
-
This creates a clickable overlay even if the `title` and `description` fields don't have stega encoding.
509
+
### Using `data-datocms-content-link-source`
510
+
511
+
For elements without visible stega-encoded content, use the [`data-datocms-content-link-source`](https://github.com/datocms/content-link?tab=readme-ov-file#stamping-elements-via-data-datocms-content-link-source) attribute to attach stega metadata directly:
512
+
513
+
```jsx
514
+
// product.asset.video.alt contains stega-encoded info
0 commit comments