2017 © Pedro Peláez
 

magento2-module magento2-social

Social media.

image

jasonalvis/magento2-social

Social media.

  • Wednesday, November 29, 2017
  • by jasonalvis
  • Repository
  • 1 Watchers
  • 1 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 33 % Grown

The README.md

Magento 2: Social

Simple module for keeping your social profile URLs in one manageable area., (*1)

Installation

Recommended installation through composer, within your Magento root directory enter the following:, (*2)

composer require alvis/magento2-social

Alternatively you can install manually by following these steps:, (*3)

  1. Install the magento2-core dependency module, following the README
  2. Now you can return to install this module, download the repo zip file and extract
  3. You should have a folder called 'magento2-social-master'. Rename this folder to 'Social'
  4. Under your Magento site folder create a new directory 'app/code/Alvis'
  5. Upload the module to this folder 'app/code/Alvis/Social'

Enable the module

php bin/magento module:enable Alvis_Core
php bin/magento module:enable Alvis_Social

You may also need to re-compile:, (*4)

php bin/magento setup:upgrade
php bin/magento setup:di:compile

Module configuration

The module configuration can be found through the main menu under Alvis., (*5)

Profiles

Current social media profiles available:, (*6)

  • Twitter
  • Facebook
  • Instagram
  • Pinterest
  • GitHub

Integration

By default profile links display in the footer., (*7)

Move xml block within your theme <VendorName>/<ThemeName>/Alvis_Social/layout/default.xml:, (*8)

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="alvis_social.profiles" destination="main" after="-" />
    </body>
</page>

Remove xml block within your theme <VendorName>/<ThemeName>/Alvis_Social/layout/default.xml:, (*9)

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="footer">
            <referenceBlock name="alvis_social.profiles" remove="true" />
        </referenceContainer>
    </body>
</page>

Override the default templates within your theme create the following files:, (*10)

<VendorName>/<ThemeName>/Alvis_Social/templates/profiles.phtml

The original contents of the files can be found under:, (*11)

<Root>/vendor/alvis/magento2-social/view/frontend/templates/profiles.phtml

The Versions

29/11 2017

dev-master

9999999-dev

Social media.

  Sources   Download

MIT OSL-3.0 AFL-3.0

The Requires

 

29/11 2017

0.0.3

0.0.3.0

Social media.

  Sources   Download

MIT

The Requires

 

24/01 2017

0.0.2

0.0.2.0

Social media.

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

27/10 2016

0.0.1

0.0.1.0

Social media.

  Sources   Download

OSL-3.0 AFL-3.0

The Requires