572 Posts
_jrmo
9 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
164 Posts
redback
9 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
2 years ago
0
Level 2

Thanks you james for sharing information about open graph generator

179 Posts
carin
7 years ago
0
Level 1

Thank you James.

215 Posts
iliil
7 years ago
0
Level 1

Thanks so much, James!

85 Posts
kromoadv
7 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