add_products_posrel.xml
来自「实现一个网络购物」· XML 代码 · 共 42 行
XML
42 行
<?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="posrel" destination="products"
minoccurs="0" maxoccurs="*"
orderby="field[@name='pos']"
ordertype="number">
<title xml:lang="nl">Producten</title>
<title xml:lang="en">Products</title>
<item>
<title></title>
<description>producten</description>
<field fdatapath="field[@name='pos']" ftype="line"><prompt>Positie</prompt></field>
<field name="title" ftype="data">
<prompt xml:lang="nl">Naam</prompt>
<prompt xml:lang="en">Title</prompt>
</field>
<field fdatapath="." ftype="startwizard" inline="true" objectnumber="{object/@number}" wizardname="wizards/products/products">
<prompt></prompt>
</field>
</item>
<action type="create">
<relation role="posrel">
<object type="products" />
<field name="pos">-1</field>
</relation>
</action>
<command name="search" nodepath="products" fields="title" orderby="title" age="-1">
<prompt></prompt>
<search-filter>
<name xml:lang="nl">Naam bevat</name>
<name xml:lang="en">Title contains</name>
<search-fields>title</search-fields>
</search-filter>
</command>
<command name="startwizard" inline="true" wizardname="wizards/products/products" objectnumber="new"/>
</list>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?