2015-04-03 66 views
0

我是hybris电子商务软件的新手,并尝试学习与它提供的wiki文档的帮助。我试图创建一个新的Webshop参数与三个选项,所以我可以选择任何一个然后由HMC完成。我已经改变了items.xml,并在Basestore中创建了一个枚举和一个新的属性,但是在HMC上,新参数的名称是不正确的,它的修饰符名称后面加上了“[”任何人都可以提示它为什么会发生,以及如何定义新名称参数。创建一个新的网上商店参数

回答

3

1)myextension-items.xml

<itemtype code="MyType" extends="BaseType"> 
    <attributes> 
     <attribute qualifier="attr1" type="java.lang.String"> 
      <persistence type="property" /> 
     </attribute> 
    </attributes> 
</itemtype> 

2)定位\ myextension-locales_en.properties(或其它:_fr,_de等)

type.MyType.name=My Type name 
type.MyType.description=My Type description 
type.MyType.attr1.name=Attribute 1 name 
type.MyType.attr1.description=Attribute 1 description 
+0

由于海伦我会尝试做相同。 :) – shitanshu 2015-04-03 21:35:18