2017 © Pedro PelĂĄez
 

silverstripe-module socialmediapack

Give site social media sharing capabilities and template links

image

intwebg/socialmediapack

Give site social media sharing capabilities and template links

  • Friday, October 14, 2016
  • by interactionwebg
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SocialMediaPack

Bring social media links and shared to SilverStripe, (*1)

What it do: - Add default shared image to SiteConfig as $SiteConfig.Image - Add shared image to page as $Image, (*2)

How it works: - The page containing $Image in MetaData is taken instead of $SiteConfig.Image when configured. - The $SiteConfig.Image will be taken if $image isnt added inside pages. - Add automatically in head of your pages additionnals MetaData to override random shares images, (*3)

Social media usage: - And include SocialMediaShares into page templates to display social media sharing capabilities - Select one of the theme styles or choose your own design, (*4)

Good for: - News shared image - Portfolio shared image - Blog shared image, (*5)

Informations for your page templates: - If you use a different image field name (ex.: NewsImage), you can duplicate it like:, (*6)

$this->ImageID = $this->NewsImageID;
  • Remember to hide $Image when doing this operation:, (*7)

    $fields->addFieldToTab('Root.Main.Metadata', new HiddenField("Image","Image"));, (*8)

TODO: - Translation to other language - Include SocialMediaLinks to display social media link into a templates (not ready at this time), (*9)

The Versions

14/10 2016

dev-master

9999999-dev https://github.com/intwebg/socialmediapack

Give site social media sharing capabilities and template links

  Sources   Download

GPLv3

The Requires

 

by Stéphane Guevremont

silverstripe share socialmedia