Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Snippets in SS

Go to End

3 Posts   1014 Views


Community Member, 8 Posts

12 September 2012 at 9:22am

Dear fellow SS users. I have tuned the metatags over and over again and nothing seams to work. I can't get the LinkedIn share widget filled with information about the right page. The only thing LinkedIn gets, is the name of the domain. Does anybody knows what goos wrong? Here is the code:

<meta property="og:title" content="$Title" />
<meta property="og:url" content="" />
<meta property="og:image" content="" />
<meta property="og:description" content="<% if MetaDescription %>$MetaDescription<% else %>$Title<% control GetHomePage %>$MetaDescription<% end_control %><% end_if %>"/>

If you want to try it real time:

BTW, the facebook domain gets the og's right...


Forum Moderator, 5523 Posts

12 September 2012 at 5:53pm

I doubt this is specifically a SilverStripe thing. Perhaps you need to include the OG prefix to your page for it to be valid.

<html prefix="og:">;


Community Member, 8 Posts

12 September 2012 at 6:15pm

Thanks for your reply and helpfull tip. Tried that, won't do. You're right about that it is not an SS thing but it would be nice if the tagging (snippets/og) would be included in the platform. I think you can give more value to the users if important things like that would be working from basis.