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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1458 Views

Avatar
Brand

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:

$MetaTags
<meta property="og:title" content="$Title" />
<meta property="og:url" content="http://www.realimpact.nl" />
<meta property="og:image" content="http://www.realimpact.nl/assets/logolinked.png" />
<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: www.realimpact.nl

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

Avatar
Willr

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: http://ogp.me/ns#">;

Avatar
Brand

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.