WeStandWithUkraine

572 Posts
_jrmo
7 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 VIP membership
159 Posts
redback
7 years ago
1
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

1 Post
philips
8 days ago
0
Level 2

Thanks you james for sharing information about open graph generator

179 Posts
carin
5 years ago
0
Level 1

Thank you James.

208 Posts
iliil
5 years ago
0
Level 1

Thanks so much, James!

84 Posts
kromoadv
5 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 VIP membership