Jump to:

23355 Posts in 17838 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Snippets in SS

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

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

Page: 1
Go to End
Author Topic: 402 Views
  • Brand
    Avatar
    Community Member
    8 Posts

    Snippets in SS Link to this post

    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...

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Snippets in SS Link to this post

    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#">;

  • Brand
    Avatar
    Community Member
    8 Posts

    Re: Snippets in SS Link to this post

    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.

    402 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.