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
Hello,
We were looking to add a Call To Action to one of the cards, but can't seem to find it in the story-json spec. I am not sure how this will play with keeping compatibility between story-json and both /story-json-to-amp and story-json-to-video. But it be great if there was a way to add it?
Yea, doesn't seem to be something we support at the moment.
I suppose story-json-to-video could just ignore that prop, since there's no way to do a cta really in a video. @iefserge do you know if have we handled anything similar in story-json before?
@pietrop@ellell I think this can be handled by special option to story-json-to-amp, I'd imagine something like
{
layersCTA: [
{
pageId: 'unique page id specified in story json',
content: '<a href="http://www.google.com" class="button"> Call to action! </a>'
}
]
}
I think due to AMP CTA layer size restrictions it would be hard to handle this nicely in a cross platform way, as we'll have to adopt the same restrictions.
Hello,
We were looking to add a Call To Action to one of the cards, but can't seem to find it in the
story-json
spec. I am not sure how this will play with keeping compatibility betweenstory-json
and both/story-json-to-amp
andstory-json-to-video
. But it be great if there was a way to add it?see here for AMP docs on CTA
If there's a good way to do it, I'd be happy to do a PR if that helps.
Thanks
The text was updated successfully, but these errors were encountered: