hybris - 未创建目录名称 (hybris)
问题描述
我想创建一个新目录。
我按照这些步骤
https://stackoverflow.com/a/50414933/9708984
//resources/mystoreinitialdata/import/sampledata/contentCatalogs/mystoreContentCatalog/cms-content.impex
尽管我做了
$contentCatalogName=mystoreContent Catalog'
, 在backoffice/catalog
s 上,
我只看到带有 id 的 mystore 目录,名称为空。
因为powertools
它有名字,Powertools Content Catalog
。
我做了ant initialize
',它创建了 3 个目录mystorecontent catalog, mystoreclassfication,mystoreprductcatalog
,但它们没有名称。
$contentCatalog=electronicsContentCatalog $contentCatalogName=Electronics Content Catalog
此 contentcatalogname 不用于任何商店的任何地方;mystore electronic,powertools or apparel
.
但其他3个有名字。为什么mystore
没有?那 contentcatalogname 是干什么用的?路径是
electronicsstore/import/sampledata/contentCatalogs/electronicsContentCatalog/cms-responsive-content.impex for electronics
解决方案
名称是本地化属性。对于本地化属性,加速器有自己的文件。检查目录中名为 catalog_XX.impex 的文件
resources/mystoreinitialdata/import/sampledata/contentCatalogs/mystoreContentCatalog/
XX 代表语言的 isocode。所以 en 表示英语、德语等。在文件中,设置名称如下:
$lang=en
$contentCatalog=mystoreContentCatalog
UPDATE ContentCatalog;id[unique=true];name[lang=$lang]
;$contentCatalog;"mystore Content Catalog"
推荐阅读
- python - 从 pip 安装 tensorflow 时出错
- c# - 索引超出范围(C# 数组)
- python - 将 PDF 添加到 sqlalchemy 数据库
- sql-server - GIS 中使用的 SQL 关键字“CONVERT”附近的语法不正确 SQL GIS
- android - RN查看android原生活动
- angular - Ionic 4 - 如何将组件动态添加到页面?
- networking - 无法查看从 terraform 资源创建的 EKS 集群
- r - 在另一个类的方法中使用一个类的方法
- python - 寻找系列中的最低值
- asp.net-core - 弹性搜索 Nest Client 很慢