Skip to content
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

Merged
merged 9 commits into from
Nov 5, 2024

Conversation

finnar-bin
Copy link
Contributor

Resolves #3021

Preview

image

@finnar-bin finnar-bin added enhancement Improvement to an existing feature ready PR is complete and ready for deployment labels Oct 28, 2024
@finnar-bin finnar-bin requested a review from agalin920 October 28, 2024 00:34
@finnar-bin finnar-bin self-assigned this Oct 28, 2024
?.filter((el: string) => el)?.[0];

if (tcImage.startsWith("3-")) {
getFile(String(item.data.tc_image), true)
Copy link
Contributor

@agalin920 agalin920 Oct 28, 2024

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Copy link
Contributor

@agalin920 agalin920 Oct 28, 2024

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?

@finnar-bin finnar-bin requested a review from agalin920 October 28, 2024 22:50
?.filter((el: string) => el)?.[0];

if (tcImage.startsWith("3-")) {
getFile(String(item.data.tc_image), true)
Copy link
Contributor

@agalin920 agalin920 Oct 28, 2024

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?

@finnar-bin
Copy link
Contributor Author

Hmm why not just use html image fallback?

That something I actually haven't thought off, lemme check that out

@finnar-bin
Copy link
Contributor Author

@agalin920 updated to use the image resolver

@finnar-bin finnar-bin requested a review from agalin920 October 29, 2024 01:04
@finnar-bin finnar-bin merged commit f8ffd32 into dev Nov 5, 2024
1 check passed
@finnar-bin finnar-bin deleted the enhancement/3021-tc-image-support branch November 5, 2024 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature ready PR is complete and ready for deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content: SEO Tab - TC Image Field
2 participants