XMLContent
(Difference between revisions)
Line 1: | Line 1: | ||
+ | == Extending edit options for HtmlWidget == | ||
+ | It is possible to extend the [[HtmlWidget]] that is used by the XMLContent forms so that the different OpenCMS galleries can be accessed for creating nice html. This is quite easily done by opening up the XML Schema file for the XML Content type you wish to extend, and add the following code: | ||
+ | |||
+ | <layouts> | ||
+ | <layout element="Text" widget="HtmlWidget" configuration="source,link,anchor,formatselect,imagegallery,downloadgallery,linkgallery,htmlgallery,tablegallery,height:400px" /> | ||
+ | </layouts> | ||
+ | |||
+ | inside the following tags: | ||
+ | |||
+ | <xsd:annotation> | ||
+ | <xsd:appinfo> | ||
+ | ... Add the layouts element here ... | ||
+ | </xsd:appinfo> | ||
+ | </xsd:annotation> | ||
+ | |||
+ | Of course you can modify the configuration attribute to display only the extra elements you would like to make available to the content creators. | ||
+ | |||
== External Links == | == External Links == | ||
[http://www.opencms-forum.de/opencms-forum/viewthread?thread=625#1740 Creating XML Content Definitions] | [http://www.opencms-forum.de/opencms-forum/viewthread?thread=625#1740 Creating XML Content Definitions] |
Revision as of 17:23, 7 November 2006
Extending edit options for HtmlWidget
It is possible to extend the HtmlWidget that is used by the XMLContent forms so that the different OpenCMS galleries can be accessed for creating nice html. This is quite easily done by opening up the XML Schema file for the XML Content type you wish to extend, and add the following code:
<layouts> <layout element="Text" widget="HtmlWidget" configuration="source,link,anchor,formatselect,imagegallery,downloadgallery,linkgallery,htmlgallery,tablegallery,height:400px" /> </layouts>
inside the following tags:
<xsd:annotation> <xsd:appinfo> ... Add the layouts element here ... </xsd:appinfo> </xsd:annotation>
Of course you can modify the configuration attribute to display only the extra elements you would like to make available to the content creators.
External Links
Creating XML Content Definitions