[opencms-dev] setting default expiration

Roman Uhlig roman.uhlig at knve.de
Fri Jul 7 10:25:15 CEST 2006


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.




More information about the opencms-dev mailing list