At 10:50 +0200 11-08-2004, Roelof Jan wrote:
I want to create two new objects with the editwizards and only edit the title field of the first object while the second object automatically gets the same title value as the first. Is there a way to achieve this effect?

I don't know if its possible to create two nodes at the same time and give the second the same title as the first. But i do know that it's possible to first create a node and give the second node, which you relate to the first, (some of) the same values as the first node.


The following piece of code is an example in which a node of type publishtimes can be related to for instance a news node and where the 'title' field gets the value "Creation-date:" + the title of the news node.

<list role="related" destination="publishtimes"
hidecommand="delete-item" minoccurs="1" maxoccurs="1"
ordertype="number" orderby="begin">
<title>Laatst gewijzigd</title>
<item>
<field name="title" dtrequired="true" ftype="data">
<prompt>Titel</prompt>
<description></description>
</field>
<field name="begin" dttype="datetime">
<prompt>Datum</prompt>
<description></description>
</field>
</item>
<command name="insert" />
<action type="create">
<relation role="related">
<object type="publishtimes">
<field name="title">Creation-date: {//object/[EMAIL PROTECTED]&apos;title&apos;]}</field>
</object>
</relation>
</action>
</list>


---Andr�
--
------------------------------------------------------------------>><<--
Andr� van Toly
http://www.toly.nl
06-27233562



Reply via email to