Skip to content

Frequently Asked Questions plugin for Magento2 with multistore support

License

Notifications You must be signed in to change notification settings

lcbrq/magento2-LCB_Faq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LCB_Faq

Frequently Asked Questions plugin for Magento2 with multistore support

Installation

php bin/magento module:enable LCB_Faq
php bin/magento setup:upgrade
php bin/magento setup:db-schema:upgrade
php bin/magento setup:di:compile

Usage

Edit FAQ in content management
Visit FAQ page on /faq route

Categories

Sample extension

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="LCB\Faq\Model\Category">
        <plugin name="SmilepenFaq" type="Smilepen\Pages\Plugin\Faq\Category" sortOrder="1" />
    </type>
</config>
<?php

namespace Smilepen\Pages\Plugin\Faq;

class Category {

    public function afterGetOptionArray(
    \LCB\Faq\Model\Category $category
    )
    {
        return array(
            1 => 'Allgemeines',
            2 => 'Zahnaufhellung'
        );
    }

}

Changelog

[1.0.1]

Added plugin support for categories

[1.0.2]

Fix for question and answer character limit

[1.0.3]

Code format and minor adjustments

[1.1.0]

Mayor refactor and add manageable categories

About

Frequently Asked Questions plugin for Magento2 with multistore support

Resources

License

Stars

Watchers

Forks

Packages

No packages published