[opencms-dev] setting default expiration

Jonathon Mar jmar at salesforce.com
Fri Jul 7 19:04:28 CEST 2006


Thanks Roman.  I did have that mapping entry.  But what I can't figure
out is how to pass a calculated value to the field.  It doesn't sound
like it's possible though.

-Jon

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Roman Uhlig
Sent: Friday, July 07, 2006 1:25 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] setting default expiration


Hi Jon,

you also have to map it to the dateexpired property inside your xsd like
that:

	<xsd:annotation>
		<xsd:appinfo>
			<mappings>
				<mapping element="startdate"
mapto="attribute:datereleased" />
				<mapping element="enddate"
mapto="attribute:dateexpired" />
			</mappings>
			<defaults>
				<default element="startdate"
value="${currenttime}"/>
			</defaults>
		</xsd:appinfo>
	</xsd:annotation>


Roman
-- 
View this message in context:
http://www.nabble.com/setting-default-expiration-tf1902317.html#a5213564
Sent from the OpenCMS - Dev forum at Nabble.com.


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://lists.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list