iqnection-modules/socialmedia

SilverStripe Social Media Module

Installs: 524

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 1

Open Issues: 0

Language:Scheme

Type:silverstripe-vendormodule

2.3.1 2019-12-17 14:56 UTC

This package is auto-updated.

Last update: 2024-11-07 04:20:30 UTC


README

Provides ability to manage social media icons in your site settings, and add them to your template

Installaion

$ composer require iqnection-modules/socialmedia
$ ~/public_html/vendor/bin/sake dev/build "flush=1"

Setup

Navigate to the Settings area in the admin, click the Developer Tab, then Social Media Link tab Add links as needed

Add the following code in your template where you want the links to display

<% include SocialMediaLinks %>

It's up to you to add styling

Adding more link options

Add the following lines to your site's YML config file

IQnection\SocialMedia\Model\SocialMediaLink:
  social_media_options:
    - "My New Option 1"
    - "My New Option 2"

Icon Templates

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"

Currently supports:

  • Facebook
  • Twitter
  • Instagram
  • Pinterest
  • YouTube
  • LinkedIn
  • Vimeo
  • Houzz
  • Flickr
  • Tumblr
  • Vimeo
  • Yelp
  • Angies List
  • Google My Business
  • Blog