Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generating og:image not working #40

Open
berecont opened this issue Apr 8, 2024 · 0 comments
Open

generating og:image not working #40

berecont opened this issue Apr 8, 2024 · 0 comments

Comments

@berecont
Copy link

berecont commented Apr 8, 2024

Contao 5.3.3
Social Images 4.1.2

usage in events on detail-event-site:
modified event_full.html5

        <div class="col-lg-8">
            <div class="entry-image mb-5">
                <?php if ($this->addImage): ?>
                <?php $this->insert('image', $this->arrData); ?>
              <?php endif; ?>
            </div>

            <?php if ($this->details): ?>
            <?= $this->details ?>
            <?php else: ?>
                <div class="ce_text block">
                    <?= $this->cspInlineStyles($this->teaser) ?>
                </div>
            <?php endif; ?>
        </div>
  • activated in page layout » no og:image is generated
  • set default image in site structure » og:image with default social image is generated

og-image for teaser-image at Events setting will be not generated.
og-image, set in 'Social Image' at Events setting will be not generated
If there are content elements set at event » those images will be generated as og:image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant