This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
572 Posts
_jrmo
5 years ago
Topic

Hi everyone!

Happy Friday. Here's a short how-to (with copy + paste ready-to-go example) if you're looking for a resource that shows you how to easily add Open Graph Metadata to your Content View. This is the information Facebook uses to show preview cards - so it helps to get better visibility in news feeds on social networks.

http://jamesmorrell.com/blog/open-graph-metadata-for-seblod-content-types

I hope you find it useful. Have a good weekend.

James

Get a Book for SEBLOD
158 Posts
redback
5 years ago
0
Level 1

Hello James,

thanks for the documentation.

An additional hint: Instead of position overwrite you can use as well the beforeRender field from the codepack plugin.

Best

Chris

172 Posts
carin
3 years ago
0
Level 1

Thank you James.

176 Posts
iliil
3 years ago
0
Level 1

Thanks so much, James!

78 Posts
kromoadv
2 years ago
0
Level 1

Hi James, thank you.

I have images in a field x.

I tried

$ogimg        = '<meta property="og:image" content="'. JURI::base() .''.$cck->getValue('my_fieldx,0').'" />';

but didn't work.

Thanks in advance

Luca

Get a Book for SEBLOD