This plugin allows you to create many-to-many relationships between pages in Kirby and synchronizes them on both sides. Latest version also works with Kirby 4!
instead of using
$projectPage = page("projects")->children()->findBy("autoid", $project->foreignkey()->value()); a call to $projectPage = $project->foreignkey()->fromAutoID(); should be a bit faster (but maybe less easy to read).
instead of using
$projectPage = page("projects")->children()->findBy("autoid", $project->foreignkey()->value());
a call to$projectPage = $project->foreignkey()->fromAutoID();
should be a bit faster (but maybe less easy to read).https://github.com/bnomei/kirby3-autoid/blob/5a35e31437d8f7bfbfe8da7ac7e2d66fadbe1a78/index.php#L120
otherwise great plugin!