Sterc / SEOPro

The ultimate MODX Revolution SEO companion
https://www.sterc.nl/en/modx-extras
14 stars 29 forks source link

Unable to save resource when longtitle or description is too long #78

Open hugopeek opened 5 years ago

hugopeek commented 5 years ago

I think this behavior changed in SEO Pro 1.2.2 pl: Add count back to pagetitle & longtitle.

This becomes problematic when updating SEO Pro on an existing site that contains resources with page- and longtitles beyond the limit. Users can't save these resources anymore now all of a sudden.

I would personally prefer to control this with a system setting. Strictly enforce character count: yes/no. There are other scenarios where you'd want to allow longer titles, for example when you import content or take over an old site for optimization.

Jako commented 5 years ago

In between you could change the seopro.fields system setting to i.e.

pagetitle:191,longtitle:191,description:2023,alias:2023,menutitle:2023

The description field will be changed in MODX Revolution 2.7 to TEXT. So it could a lot more text than now.

cercamon commented 5 years ago

This workaround isn't working with ModX Revo 2.7.1 - seoPro 1.3.0 and Articles 1.7.11. Editing already stored blog records results in a warning for Article Title fields exceeding the number of allowed characters.

pagetitle3

SnowCreative commented 4 years ago

We really need to be able to specify whether SEOPro will prevent saving if fields are over the character count. I have a client who wants to use this as a guide, but not something that prevents saving resources. For now, I've disabled the line in the code that alters the maximum allowed field length.