Closed damnsamn closed 8 months ago
When a Link field is configured with "Allow links to be open in a new tab", the JSON will contain a "target" attribute containing either "_self" or "_blank".
"target"
"_self"
"_blank"
Example Storyblok content JSON:
"bottom_link": { "id": "106ed398-8719-4ffd-b548-7d583b152d3f", "url": "", "target": "_self", "linktype": "story", "fieldtype": "multilink", "cached_url": "about" },
The JSON provided by running storyblok pull-components also includes a flag to tell whether this is enabled or not. Example link field:
storyblok pull-components
"bottom_link": { "type": "multilink", "pos": 12, "allow_target_blank": true },
Can we include some support for an optional "target" key on the MultiLinkStoryBlok type?
I created a PR for this:
https://github.com/dohomi/storyblok-generate-ts/pull/61
released in 2.0.2
When a Link field is configured with "Allow links to be open in a new tab", the JSON will contain a
"target"
attribute containing either"_self"
or"_blank"
.Example Storyblok content JSON:
The JSON provided by running
storyblok pull-components
also includes a flag to tell whether this is enabled or not. Example link field:Can we include some support for an optional
"target"
key on the MultiLinkStoryBlok type?