1.0.x-dev
1.0.9999999.9999999-devSilverStripe 3 Social Media Module
The Requires
by IQnection
modules iqnection
SilverStripe Social Media Module
Provides ability to manage social media icons in your site settings, and add them to your template, (*1)
$ composer require iqnection-modules/socialmedia $ ~/public_html/vendor/bin/sake dev/build "flush=1"
Navigate to the Settings area in the admin, click the Developer Tab, then Social Media Link tab Add links as needed, (*2)
Add the following code in your template where you want the links to display, (*3)
<% include SocialMediaLinks %>
It's up to you to add styling, (*4)
Add the following lines to your site's YML config file, (*5)
IQnection\SocialMedia\Model\SocialMediaLink: social_media_options: - "My New Option 1" - "My New Option 2"
You can add or replace icons by adding files to your theme's templates/Includes directory The file name must match the option name in the dropdown, with the following format * Replace all non-alphanumeric characters with a dash ex. "Google My Business" template name will be "GoogleMyBusiness", (*6)
Currently supports: - Facebook - Twitter - Instagram - Pinterest - YouTube - LinkedIn - Vimeo - Houzz - Flickr - Tumblr - Vimeo - Yelp - Angies List - Google My Business - Blog, (*7)
SilverStripe 3 Social Media Module
modules iqnection