Closed acicovic closed 3 weeks ago
When the "All Blocks" setting is selected, we could consider removing Classic Blocks and submit the rest of the content. Noting though that this could result in suboptimal results, and that implementation might be tricky.
The issue that I see with that - I tried something similar - is that the offsets returned by the Content Suggestions API will not match the actual content offsets. It should be possible to make it work by ignoring the classc blocks when processing the Smart Links suggestions, but it's definitely not trivial.
Thanks for the info! In this case, I think that just having a better error message for the second case should be enough.
@vaurdan, does this issue get invalidated by #2673, partly or completely?
Ah yes, it does! Good catch!
For posterity, can you give a brief description here of what will happen in the 2 cases?
Absolutely. When we try to add Smart Links to a Classic Block, it will not allow selecting the individual block, per the video below. This is the behaviour for all unsupported blocks.
https://github.com/user-attachments/assets/4cf05edb-cae5-4c89-bb53-dbb04054ab0b
If we try to generate Smart Links for the full content, unsupported blocks, such as the Classic Block, will be ignored.
Is your feature request related to a problem?
Smart Linking doesn't support Classic Blocks, and we alert users of this.
Smart Linking is not supported for the Freeform block.
Describe the solution you'd like
Freeform block
toClassic Block
for clarity, as this is how it's generally referenced.This post contains one or more Classic Blocks, which are unsupported by Smart Linking. Operation aborted
. It would be nice if we could come up with a shorter message.Describe alternatives you've considered
When the "All Blocks" setting is selected, we could consider removing Classic Blocks and submit the rest of the content. Noting though that this could result in suboptimal results, and that implementation might be tricky.