I’m using SEO Pro. When the longtitle or description are too long, the resource cannot be saved.
I need to be able to save the resource (I don’t want extra’s to prevent that). I know I can edit the numbers in the system settings, but than it’s not working like it should (indicating the title/description is too long).
This should be possible by commenting out this line in the code:
addCounter: function(field) {
var Field = Ext.getCmp('modx-resource-' + field);
/*
if (!Field && field === 'description') {
field = 'introtext';
Field = Ext.getCmp('modx-resource-' + field);
seoPro.config.chars[field] = "155";
}*/
if (Field) {
seoPro.config.values[field] = Field.getValue();
Field.maxLength = Number(seoPro.config.chars[field]);
Field.reset();
Field.on('keyup', function() {
seoPro.config.values[field] = Field.getValue();
seoPro.count(field);
seoPro.changePrevBox(field);
});
Field.on('blur', function() {
seoPro.config.values[field] = Field.getValue();
seoPro.changePrevBox(field);
});
Sorry I’m not a developer.
jako
July 8, 2023, 12:42pm
6
There are system settings for this. You don’t have to patch the code.
I searched for it, but there is no setting for that.
jako
July 8, 2023, 9:21pm
8
The seopro.fields system setting is not that hidden …
See above: that’s not the solution. That only edits the number of characters. I want those numbers to stay intact, but remove the non-saving problem.
jako
July 9, 2023, 8:39am
10
Please open an issue at the SEO Pro repository or at the successor of the extra.