首页 > 解决方案 > 未创建目录名称 (hybris)

问题描述

我想创建一个新目录。

我按照这些步骤

https://stackoverflow.com/a/50414933/9708984

//resources/mystoreinitialdata/import/sampledata/contentCatalogs/mystoreContentCatalog/cms-content.impex 

尽管我做了

$contentCatalogName=mystoreContent Catalog', 在backoffice/catalogs 上,

我只看到带有 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

标签: hybris

解决方案


名称是本地化属性。对于本地化属性,加速器有自己的文件。检查目录中名为 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"

推荐阅读