Open i1group opened 2 years ago
Using the Regex matching in the custom fields allows for this kind of additional customization
Sorry, could you provide more details?
I've set minimum number of words for the body (as you can see on the screenshot), but it does not work for the Body field (as you can see on the screenshot). Also there is no settings for add/exclude full stop at the end of the sentence. Or am I missing something?
Instead of using the text
type, I think you'll want to change it to the regex
match.
For the title I think you'd want something like this:
For the body, I think you'd want something like this:
(you can ignore the "Regex Match" field in both cases. I'm working on a successor to this extension, and this is a screenshot from the successor)
Without seeing the underlying html, I'm not sure what you need to put in the match field, but I think the current values you have may not be matching the body
field. If this doesn't work, maybe you could post a code snippet showing the element's html.
I see, this may help. Thanks @calvinballing.
I have an issue with the text generation - it looks not as expected. For example title field should be short (normally 2-5 words) and body should be long (normally >20 words), but often title generated is longer than body:
To workaround the issue I've created custom field configuration for title and body:
And now it looks like this:
.
is added to the end of the title, but I don't need it (it's a punctuation error btw)So how can I generate short text for titles and long text for bodies? And add/exclude the full stop (
.
) at the end of the generated text?