[opencms-dev] how to use LinkGalleryWidget and get the "target" ?

Nigel Kersten nigel at cofa.unsw.edu.au
Mon Jun 26 06:01:16 CEST 2006


We've just realised something here that is kind of confusing us.

We're using the LinkGalleryWidget for a kind of structured XML  
content that uses external links, and I've realised I have no idea  
how the "target" component works.

How do you retrieve the "target" info for whether a link opens in a  
new or the same window from the LinkGalleryWidget ?

here's the schema

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"  
elementFormDefault="qualified">
	
	<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>	
	<xsd:element name="cofalinks" type="OpenCmsCofalinks"/>
	
	<xsd:complexType name="OpenCmsCofalinks">
		<xsd:sequence>
			<xsd:element name="cofalink" type="OpenCmsCofalink" minOccurs="0"  
maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="OpenCmsCofalink">
		<xsd:sequence>
			<xsd:element name="URL" type="OpenCmsString" minOccurs="0" />
			<xsd:element name="File" type="OpenCmsString" minOccurs="0" />
			<xsd:element name="LinkText" type="OpenCmsString" />
		</xsd:sequence>
		<xsd:attribute name="language" type="OpenCmsLocale" use="optional"/>
	</xsd:complexType>

	<xsd:annotation>
		<xsd:appinfo>
			<layouts>
				<layout element="URL" widget="LinkGalleryWidget" />
				<layout element="File" widget="DownloadGalleryWidget" />
			</layouts>
		</xsd:appinfo>
	</xsd:annotation>
</xsd:schema>



-- 
Nigel Kersten [Senior Technical Officer]
College of Fine Arts, University of NSW, Australia.
CRICOS Provider Code: 00098G






More information about the opencms-dev mailing list