espenmn
(Espen)
May 31, 2019, 2:38pm
1
I have a few hundred documents where the authors have not set leadimage, but they have added image(s) to the body text.
I have a feeling that someone 'fixed something similar' once (maybe it was discussed here).
Have anyone made a script that 'goes through documents body text' and adds the first image as leadimage if there is not leadimage from before?
PS: I do not need to 'modify the body text (keeping the image there is OK)
espenmn
(Espen)
May 31, 2019, 3:40pm
3
Thanks, that was super useful information
zopyx
(Andreas Jung)
May 31, 2019, 3:49pm
4
Deleted...the time required for posting this could have be used for writing the related five or six line...
rnunez
(Rafael Nunez)
May 31, 2019, 6:06pm
5
CastleCMS takes the first image in the body and set it as the leadImage. I don't know if it is part of the main addon, a separate product or a monkey patch.
1 Like