valantic-spryker/navigation-generator
Composer 安装命令:
composer require valantic-spryker/navigation-generator
包简介
Generates navigation-node.csv based on imported category data
关键字:
README 文档
README
Description:
Adds new console command to spryker, which uses the imported category data to generate a navigation_node.csv based on the category-tree.
Usage:
-
Add
NavigationGeneratorConsoletoPyz\Zed\Console\ConsoleDependencyProvider::getConsoleCommands()<?php namespace Pyz\Zed\Console; [...] use Pyz\Zed\NavigationGenerator\Communication\Console\NavigationGeneratorConsole; class ConsoleDependencyProvider extends SprykerConsoleDependencyProvider { /** * @param \Spryker\Zed\Kernel\Container $container * * @return array<\Symfony\Component\Console\Command\Command> */ protected function getConsoleCommands(Container $container): array { $commands = [ [...] new NavigationGeneratorConsole(), ]; return $commands; } }
-
Run command:
vendor/bin/console data:generate:navigation-node
Configuration:
NavigationGeneratorConstants::OUTPUT_PATH- Default:
APPLICATION_ROOT_DIR . '/data/import/common/common/navigation_node.csv'
- Default:
NavigationGeneratorConstants::FALLBACK_LOCALE- Default:
de_DE - Is used when for a configured locale no category data is available
- Default:
NavigationGeneratorConstants::NAVIGATION_KEY- Default:
MAIN_NAVIGATION
- Default:
统计信息
- 总下载量: 14.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-09-28