我用ant modulegen创建了一个项目。来自b2c配方的b2b,因为hybris wiki说这个。
但我无法在backoffice / wcms / website
为此,mystore显示为空
Name
和
Content Catalogs
我发现inpex不能用于管理员。
这是路径
mystoreinitialdata/import/coredata/stores/mystore/site.impex
这是错误:
INSERT_UPDATE CMSSite; uid [unique = true]; theme(code); channel(code); stores(uid); contentCatalogs(id); defaultCatalog(id); defaultLanguage(isoCode); siteMapConfig(& siteMapConfigId); URL模式;活性; previewURL; startingPage(UID,catalogVersion(CatalogVersion.catalog(Catalog.id [默认= mystoreContentCatalog]),CatalogVersion.version [默认=分阶段])[默认= mystoreContentCatalog:分阶段]); urlEncodingAttributes; defaultPromotionGroup(标识符) [默认= mystorePromoGrp] ,8796093187112 ,,,第12栏:无法解析主页的项目第12栏:无法解析价值'主页' for attribute' startingPage&#39 ;; mystore; blue; B2C; mystore; mystoreContentCatalog; mystoreProductCatalog; en; mystoreSiteMapConfig;(?i)^ https?:// [^ /] +(/ [^?] )\( \&安培)(现场=的MyStore)(| \&安培;. )$中,(i)^ HTTPS:???//的MyStore [^ /] + (| / | \?。)$,^ HTTPS(Ⅰ'):?。//api.hybrisdev.com(:[\ d] +)/休息/ $,^ HTTPS://本地主机(:[\ d] +)(Ⅰ')???/休息/.*$;真; /站点=的MyStore;网页;店面,语言;
错误是该行
> # CMS Site
> INSERT_UPDATE CMSSite;uid[unique=true];theme(code);channel(code);stores(uid);contentCatalogs(id);defaultCatalog(id);defaultLanguage(isoCode);siteMapConfig(&siteMapConfigId);urlPatterns;active;previewURL;startingPage(uid,$contentCV);urlEncodingAttributes;defaultPromotionGroup(Identifier)[default=$promoGrp]
> ;$siteUid;blue;B2C;$storeUid;$contentCatalog;$productCatalog;$defaultLanguage;$storeUidSiteMapConfig;(?i)^https?://[^/]+(/[^?]*)?\?(.*\&)?(site=$siteUid)(|\&.*)$,(?i)^https?://$siteUid\.[^/]+(|/.*|\?.*)$,(?i)^https?://api\.hybrisdev\.com(:[\d]+)?/rest/.*$,(?i)^https?://localhost(:[\d]+)?/rest/.*$;true;$storefrontContextRoot/?site=$siteUid;homepage;storefront,language
我按照食谱维基和
https://wiki.hybris.com/pages/viewpage.action?pageId=294094425
那个维基。我做错了什么? INSERT_UPDATE CMSSite;uid[unique=true];theme(code);channel(code);stores(uid);contentCatalogs(id);defaultCatalog(id);defaultLanguage(isoCode);urlPatterns;active;previewURL;startingPage(uid,$contentCV);urlEncodingAttributes;defaultPromotionGroup(Identifier)[default=PromoGrp];# unknown attributes [ContentPage.$contentCV] - cannot resolve item reference;# invalid item expression '# unknown attributes [ContentPage.$contentCV] - cannot resolve item reference' - unexpected expression at 45
,,,,unknown attributes [ContentPage.$contentCV] - cannot resolve item reference, invalid item expression '# unknown attributes [ContentPage.$contentCV] - cannot resolve item reference' - unexpected expression at 45;$siteUid;lambda;B2B;$storeUid;$contentCatalog;$productCatalog;$defaultLanguage;(?i)^https?://[^/]+(/[^?]*)?\?(.*\&)?(site=$siteUid)(|\&.*)$,(?i)^https?://$siteUid\.[^/]+(|/.*|\?.*)$;true;$storefrontContextRoot/?site=$siteUid;homepage;storefront,language,currency
答案 0 :(得分:1)
在导入CMS站点
之前将其添加到您的impex中INSERT_UPDATE SiteMapPage;&siteMapPage;code(code)[unique=true];frequency(code)[unique=true];priority[unique=true];active[default=true]
;Homepage;Homepage;daily;1.0;;
答案 1 :(得分:1)
我认为在系统初始化期间,某些Impex可能会失败。所以我建议。
答案 2 :(得分:-1)