@Macrura
Hello Marc,
Really, you're a champion ??
Anyone from a Joomla/Seblod content (and maybe others too) wishing to import content in bulk and being worried about the images, this is a lifesaver!
This morning I updated PW to 3.0.212 and ImportExternalImages to 2.0.14. In the script to import the pictures after I imported the articles and all their fields I needed with ImportPagesCSV, I used the script hereunder (subject to be improved - Noobs will love you for this ? Maybe with a (total) img import counter as well at the end of the ride??) to monitor the process:
<?
$p = $pages->get(2356);
$m = $modules->get('ImportExternalImages');
try {
foreach($p->children as $c) {
$c->of(false);
echo "Saving child page: " . $c->title . "<br>";
$m->importImages($c);
$c->save();
if($c->isChanged()) {
echo "Child page " . $c->title . " was saved.";}} // didn't get the echo's though
} catch (Exception $e) {
echo $e->getMessage();
}
?>
At one point during impot, in one of the articles, the img had a typo mistake of width="25ù" instead of width="25%" (Azerty keyboard key) and the import halted. When correcting the typo error in the article of which the title was reported thanks to the script, by refreshing the 'import' page the script went happily on importing pictures. At one point there was a timeout, but who cares ... I just refreshed page again and the module went on doing what it was supposed to do.
Upon inspection, I couldn't help to be astonished as even the alignment of the pictures as in the original articles was maintained. Really: Hats off! ?
Again, congratulations! Let this be a lifesaver to many people wishing to join the PW family!
Kind regards,
Bernard
(temp overview https://kusttram.com/1325pw/overzicht-heemkundige-teksten/Pagina134 of a site in development without layout and temp pages - I will install dynamic search from @kongondo and from there seblod might be in the rear view mirror for many coming from the Joomla/Seblod setup - Here is the joomla/seblod combi I'm going to migrate from: https://www.zwinstreek.eu/geschiedenis/heemkundige-kringen/zoeken-in-publicaties?search=pdf&task=search )