magebit/vsbridge-static-content-procesor
最新稳定版本:2.0.4
Composer 安装命令:
composer require magebit/vsbridge-static-content-procesor
包简介
Converts magento URL's to VSF during indexation
README 文档
README
Static Content Processor for VSBridge
Automatically converts Magento urls to VSF urls during indexation
Installation
-
Via composer Run
composer require magebit/vsbridge-static-content-procesorin your root magento directory -
Git clone
- Create
Magebitdirectory inapp/codecd app/codemkdir Magebit
- Clone this repo inside
Magebitdirectorygit clone git@github.com:magebitcom/static-content-processor.git
- Create
Usage
Standalone
This module requires you to configure VSF and VSF media urls.
You can find these configuration fields in:
Store - Configuration - VueStorefront - Indexer - Static Content Processor
You can also specify which category and product attributes to run through the processor. As an example, you
could select product description attribute and all the links and images will be converted with VSF urls.
You can also enable Category Image attribute url processor. It will convert all category attributes as image to VSF urls.
As a dependency
You can also use this module as a dependency for your own module:
use Magebit\StaticContentProcessor\Helper\Resolver; /** * @package MyPackage\MyModule */ class MyModule { /** * @var \Magebit\StaticContentProcessor\Helper\Resolver */ protected $resolver; /** * @param Resolver $resolver */ public function __construct(Resolver $resolver) { $this->resolver = $resolver; } /** * Does some content processing * @return string */ public function example() { // This will convert urls and media urls to vsf urls according to the configuration return $this->resolver->resolve($this->getSomeStaticContent()); } }
Contributing
Found a bug, have a feature suggestion or just want to help in general? Contributions are very welcome! Check out the list of active issues or submit one yourself.
If you're making a bug report, please include as much details as you can and preferably steps to repreduce the issue. When creating Pull Requests, don't for get to list your changes in the CHANGELOG and README files.
Have questions or need help? Contact us at info@magebit.com
统计信息
- 总下载量: 6.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2020-07-16