I've been trying for some time to implement the following and unfortunately just do not get on. There is simply a lack of skills 😉
{{if !isset( \IPS\Output::i()->metaTags['og:image'] )}}
{{$shareLogos = \IPS\Settings::i()->icons_sharer_logo ? json_decode( \IPS\Settings::i()->icons_sharer_logo, true ) : array();}}
{{foreach $shareLogos as $logo}}
<meta property="og:image" content="{file="$logo" extension="core_Icons" scheme="full"}">
{{endforeach}}
MISSING HERE
elseif - it's a forum post,
then it is <meta property="og:image" content="https://www.domain.tld/img/<<TOPICID>>.jpg" />
{{else}}
<meta property="og:image" content="https://www.domain.tld/standardimage.jpg" />
{{endif}}
would be cool if someone here ne line for me 🙂
Thanks a lot!
Stephan