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

og:image and twitter:image return media source pathes with tags as simple strings #62

Open
pepebe opened this issue Jun 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pepebe
Copy link

pepebe commented Jun 18, 2022

I'm using dedicated media sourcs for each resource

basePath: [[ppb_migxResourceMediaPath? &pathTpl=assets/uploads/resources/{id}/ &createFolder=1 ]]
baseUrl: [[ppb_migxResourceMediaPath? &pathTpl=assets/uploads/resources/{id}/ &createFolder=1 ]]

This technique goes back to a post writen by BobRay about 10 years ago (time flies) and with a few exceptions that need special attention (for example: pdoTool), it usually works very well.

The idea is that each resources has a unique directory that collects all files needed.

If I set the default media source to a media source with a snippet, this setting is picked up by Seo Suite and I can upload images into the right directory.

The image is also correctly dispayed on the manager tabs for facebook and twitter.

The plugin creating the placeholders on the frontend side doesn't process this setting, but returns it as a normal string.

<meta property="og:image" content="https://example.com/index.php?id=1/[[ppb_migxResourceMediaPath? &pathTpl=`assets/uploads/resources/{id}/` &createFolder=`1` ]]/cardi.jpg">
@ilyautkin ilyautkin added the enhancement New feature or request label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants