lcbrq / magento2-faq
LCB Faq 模块为 Magento2
1.1.0
2018-02-11 22:41 UTC
Requires
- php: >=5.5.0
- magento/framework: >=100.0.0
- magento/magento-composer-installer: *
This package is not auto-updated.
Last update: 2024-09-19 18:52:28 UTC
README
带有多店支持的 Magento2 频繁问题插件
安装
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
使用方法
在内容管理中编辑 FAQ
访问/faq 路由上的 FAQ 页面
类别
示例扩展
<?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'
);
}
}
变更日志
[1.0.1]
添加了对类别的插件支持
[1.0.2]
问题和答案字符限制修复
[1.0.3]
代码格式和微小调整
[1.1.0]
主要重构并添加可管理的类别