add_productgroups_discountrel.xml
来自「实现一个网络购物」· XML 代码 · 共 69 行
XML
69 行
<?xml version="1.0"?>
<!DOCTYPE list PUBLIC "-//MMBase/DTD editwizard 1.0//EN" "http://www.mmbase.org/dtd/wizard-schema_1_0.dtd">
<list role="discountrel" destination="productgroups"
minoccurs="0" maxoccurs="*"
hidecommand="move-up|move-down">
<title xml:lang="nl">Combi-actie</title>
<title xml:lang="en">Combi-action</title>
<item>
<title></title>
<description></description>
<field fdatapath="field[@name='title']" ftype="line">
<prompt xml:lang="nl">Titel van de aanbieding</prompt>
<prompt xml:lang="en">Title of the discount</prompt>
</field>
<field fdatapath="field[@name='body']" ftype="text" rows="8">
<prompt xml:lang="nl">Tekst bij de aanbieding</prompt>
<prompt xml:lang="en">Text of the discount</prompt>
</field>
<field fdatapath="field[@name='type']" ftype="enum">
<prompt xml:lang="nl">Type aanbieding</prompt>
<prompt xml:lang="en">Type of discount</prompt>
<optionlist select="discount_types"></optionlist>
</field>
<field fdatapath="field[@name='startdate']">
<prompt xml:lang="nl">Begin actieperiode</prompt>
<prompt xml:lang="en">Begin of the discount period</prompt>
</field>
<field fdatapath="field[@name='enddate']">
<prompt xml:lang="nl">Eind actieperiode</prompt>
<prompt xml:lang="en">End of the discount period</prompt>
</field>
<field fdatapath="field[@name='threshold']" ftype="line">
<prompt xml:lang="nl">Grenswaarde voor de korting</prompt>
<prompt xml:lang="en">Threshold for the discount</prompt>
</field>
<field fdatapath="field[@name='amount']" ftype="line">
<prompt xml:lang="nl">Bedrag (1500=15 euro) of percentage (15=15%) korting</prompt>
<prompt xml:lang="en">Amount (1500=15 Euro) or percentage (15=15%) discount</prompt>
</field>
<field name="name" ftype="data">
<prompt xml:lang="nl">Combi producten</prompt>
<prompt xml:lang="en">Combi products</prompt>
</field>
<field fdatapath="." ftype="startwizard" inline="true" objectnumber="{object/@number}" wizardname="wizards/productgroups/productgroups">
<prompt></prompt>
</field>
</item>
<action type="create">
<relation role="discountrel">
<object type="productgroups" />
<field name="type">1</field>
</relation>
</action>
<command name="search" nodepath="productgroups" fields="name" orderby="name" age="-1">
<prompt></prompt>
<search-filter>
<name xml:lang="nl">Naam bevat</name>
<name xml:lang="en">Name contains</name>
<search-fields>name</search-fields>
</search-filter>
</command>
<command name="startwizard" inline="true" wizardname="wizards/productgroups/productgroups" objectnumber="new"/>
</list>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?