-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Content] Support dedicated TC Image field in SEO tab #3044
Conversation
?.filter((el: string) => el)?.[0]; | ||
|
||
if (tcImage.startsWith("3-")) { | ||
getFile(String(item.data.tc_image), true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cant we use the resolver here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, I needed to check if the zuid actually contains an image first, if not use the existing meta image. This reminds me to actually add that check which I forgot, I'll be making another commit to add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to add the check I mentioned above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm why not just use html image onError callback? that would suffice to tell if its not an image right?
?.filter((el: string) => el)?.[0]; | ||
|
||
if (tcImage.startsWith("3-")) { | ||
getFile(String(item.data.tc_image), true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm why not just use html image onError callback? that would suffice to tell if its not an image right?
That something I actually haven't thought off, lemme check that out |
@agalin920 updated to use the image resolver |
Resolves #3021
Preview