【问题标题】:Catalog names are not created (hybris)未创建目录名称 (hybris)
【发布时间】:2018-10-30 00:36:40
【问题描述】:

我想创建一个新目录。

我遵循了这些步骤

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

此内容目录名称不会用于任何商店; mystore electronic,powertools or apparel 。

但其他 3 个有名字。为什么mystore 没有?那 contentcatalogname 是干什么用的?路径是

electronicsstore/import/sampledata/contentCatalogs/electronicsContentCatalog/cms-responsive-content.impex for electronics

【问题讨论】:

    标签: hybris


    【解决方案1】:

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

    【讨论】:

    • 我查看了那个目录。 cms-content_en.impex 例如,没有名称属性。它只有$contentCatalog。或其他语言。 cms-content.impex`确实有$$contentCatalogName。 $productCatalogName 也有名称,但不是在两种语言上创建的,products_en.impex
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-01-06
    • 2014-09-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-09
    相关资源
    最近更新 更多