Skip to content

SEO: Show warning when meta title exceeds 55 characters and meta description exceeds 155 characters #21

Closed
iRohitSingh wants to merge 2 commits intomainfrom
characters-maxLength
Closed

SEO: Show warning when meta title exceeds 55 characters and meta description exceeds 155 characters #21
iRohitSingh wants to merge 2 commits intomainfrom
characters-maxLength

Conversation

@iRohitSingh
Copy link
Member

Screenshot 2025-02-25 at 7 29 09 PM

@iRohitSingh
Copy link
Member Author

test-seo-dec

@iRohitSingh iRohitSingh requested a review from davisagli March 18, 2025 14:27
@iRohitSingh
Copy link
Member Author

Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting max_length on the field is a hard limit (trying to save a longer value will be blocked with an error). In the related issues, @tisto asked for a warning only. (That is, we should inform the user that the value is longer than ideal, but not prevent saving it.)

There isn't any existing framework for adding warnings like this from the backend, and kitconcept.seo doesn't have a corresponding frontend package, so I don't see how we can do this easily. /cc @sneridagh

@tisto
Copy link
Member

tisto commented Mar 19, 2025

@davisagli is correct. I did not ask for a hard limit but rather a "warning" that shows up. @danalvrz showed me a prototype of this some time ago. Maybe we can introduce some infrastructure to Plone/Volto to allow us to define warnings.

@sneridagh
Copy link
Member

@tisto @davisagli I did some research, and it seems is a rather asked feature to support from form libraries. However, anything standard, as far as I can see. From here, anything that we do has to be hardcoded into the widgets themselves.

We could achieve it in a per widget basis, for every widget we would have to add the support and hardcode the warning.

If we try to come up with a spec, I guess it won't be simple... Having them in a generic way would take time.

@tisto
Copy link
Member

tisto commented Mar 20, 2025

@sneridagh what if we use a custom widget at first and then generalize the thing once we gain some experience with it?

@sneridagh
Copy link
Member

@tisto we can do that, for sure. Next question is where to put it, I guess in VLT... @iRohitSingh can you take care of that also? Then use a widget hint in the field definition that the new widget can catch up and apply the patched widget.

@tisto
Copy link
Member

tisto commented Apr 4, 2025

@sneridagh I am ok with putting this in VLT. In the long run it should go into Plone core I guess...

@sneridagh
Copy link
Member

Closing, superseded by #27

@sneridagh sneridagh closed this Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants