Hi all. Could someone maybe help me out with the best way to approach this? Im looking to load in (for example here) an open graph image. But I want to be able to fall back to a $site default image if the user fails to upload one for a specific page.
Currently I have the following pulling open graph image from each page. How would I add in the option to default to the $site ‘opengraphimage’ template if there isn’t one uploaded for the $page?
It probably makes your life easier. But I don’t actually know the development status of the plugin for Kirby 3. Ping @pedroborges
Using a plugin always means depending on third parties rather than your own code, which can be a good thing if the code is likely better than your own could ever be. But of course, using a plugin also has the usual downsides (you don’t know in advance if the plugin will see continuous development, when bugs are fixed, etc.).
If I did my own, I’d probably wrap it in a plugin as well rather then single snippets - for future re-use.
There was already a branch for v3 but with a few bugs. Thankfully @LeBen contributed with the needed fixes. I only had to review them, update the docs and package it according to the new pluginkit. I love this community!