[opencms-dev] Help Text Bubble for Nested Types in schema

Alexei Shigaeff shigaeff.alexei at gmail.com
Sat May 30 20:43:33 CEST 2015


Ok. In short ...

*main document xsd*
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
 <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:include
schemaLocation="opencms://system/modules/ru.ocms.common/schemas/nested/multi.xsd"/>
<xsd:element name="Documents" type="OpenCmsDocuments"/>
 <xsd:complexType name="OpenCmsDocuments">
<xsd:sequence>
<xsd:element name="Document" type="OpenCms*Document*" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="*OpenCmsDocument*">
<xsd:sequence>
<xsd:element name="*Info*" type="*OpenCmsMulti*" minOccurs="0"
maxOccurs="unbounded" />
<xsd:element name="Date" type="OpenCmsDateTime" minOccurs="0"
maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>

<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Date" mapto="attribute:datereleased" />
<mapping element="Info[1]/Title" mapto="property:Title"/>
</mappings>
<defaults>
<default element="Date" value="${currenttime}"/>
</defaults>
<preview uri="${previewtempfile}" />
</xsd:appinfo>
</xsd:annotation>
</xsd:schema>

*nested document, OpenCmsMulti*
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
 <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:include
schemaLocation="opencms://system/modules/ru.ocms.common/schemas/nested/link.xsd"/>
<xsd:include
schemaLocation="opencms://system/modules/ru.ocms.common/schemas/nested/contentloader.xsd"/>
<xsd:element name="Multis" type="OpenCmsMultis"/>
 <xsd:complexType name="OpenCmsMultis">
<xsd:sequence>
<xsd:element name="Multi" type="OpenCmsMulti" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="*OpenCmsMulti*">
<xsd:choice>
<xsd:element name="*Title*" type="OpenCmsString" minOccurs="0"
default="Заголовок"/>
<xsd:element name="Text" type="OpenCmsHtml" minOccurs="0" />
<xsd:element name="TextOnly" type="OpenCmsHtml" minOccurs="0" />
<xsd:element name="Ssilka" type="OpenCmsLinkOrDownload" minOccurs="0" />
<xsd:element name="IncludeJSP" type="OpenCmsString" minOccurs="0"/>
<xsd:element name="ContentLoader" type="OpenCmsContentLoader"
minOccurs="0"/>
</xsd:choice>
<xsd:attribute name="language" type="OpenCmsLocale" use="optional"/>
</xsd:complexType>

<xsd:annotation>
<xsd:appinfo>
<defaults>
<default element="IncludeJSP" value="Навигационный блок в этом разделе"/>
</defaults>
<layouts>
  <layout element="Text" widget="HtmlWidget"
configuration="source,link,anchor,formatselect.options:p;h1;h2,formatselect,image,table,height:200px"
/>
  <layout element="TextOnly" widget="TextareaWidget"
configuration="height:200px"/>
  <layout element="IncludeJSP" widget="SelectorWidget"
configuration="Документы в этом разделе|Навигация в этом разделе|Форма
авторизации" />
</layouts>
<preview uri="${previewtempfile}" />
</xsd:appinfo>
</xsd:annotation>
</xsd:schema>

*workplace.properties*
fileicon.Document =
\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439
\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442
title.Document =
\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439
\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442
desc.Document =
\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439
\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f
\u0441\u0430\u0439\u0442\u043e\u0432

label.*Document.Info* = \u0411\u043b\u043e\u043a
\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u043d\u0430
\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435.

fileicon.IndexHtml = \u0418\u043d\u0434\u0435\u043a\u0441\u043d\u0430\u044f
\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430
title.IndexHtml = \u0418\u043d\u0434\u0435\u043a\u0441\u043d\u0430\u044f
\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430
desc.IndexHtml = \u0418\u043d\u0434\u0435\u043a\u0441\u043d\u0430\u044f
\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043b\u044f
\u043d\u043e\u0432\u043e\u0433\u043e
\u0440\u0430\u0437\u0434\u0435\u043b\u0430 (\u043d\u0443\u0436\u043d\u043e
\u0441\u043e\u0437\u0434\u0430\u0442\u044c
\u043f\u0443\u0441\u0442\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0438
\u0432 \u043d\u0435\u0439 \u044d\u0442\u043e\u0442
\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043a\u0430\u043a
index.html)

label.IndexHtml.Info = \u0411\u043b\u043e\u043a
\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u043d\u0430
\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435.

label.Multi.*Title *=
\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a
(\u043f\u043e\u0434\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a)
label.Multi.Text = \u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439
\u0431\u043b\u043e\u043a
label.Multi.TextOnly = \u0422\u0435\u043a\u0441\u0442 \u0431\u0435\u0437
\u0444\u043e\u0442\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f
label.Multi.Ssilka = \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430
\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442
(\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430) \u0438\u043b\u0438
\u0441\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f
\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430
\u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u0439\u0442\u0430
label.Multi.IncludeJSP = \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c
\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439
\u0431\u043b\u043e\u043a

label.LinkOrDownload.String = \u0422\u0435\u043a\u0441\u0442
\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439
\u0441\u0441\u044b\u043b\u043a\u0438
label.LinkOrDownload.Link = \u0410\u0434\u0440\u0435\u0441
\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430
(\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043a
\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435)



ask me if you guess not
it works



2015-05-30 2:53 GMT+03:00 Jose Fermin Athie Campollo <
athiecampollo at gmail.com>:

> Hi!
>
> I suppose you can set a resource bundle in the nested schema. If you put
> it in the father schema this don't work, i think this will fix it.
>
> Greets
> Fermin
>
> Also in v9 don't happen
>
> El jue., 28 de may. de 2015 a la(s) 3:25 a. m., Robin Luckey <rl at folge3.de>
> escribió:
>
>> Noone with an idea? :-(
>>
>> Greets
>> Robin
>> Am 27.05.2015 um 10:00 schrieb Robin Luckey:
>> > Hi Folks!
>> >
>> > This Question was asked before (in 2005) but remained unanswered.
>> > Is there away to add a help Text to a Label of a nested Type e.g.
>> > ExternalLink is nested in Job:
>> >
>> > label.Job.ExternalLink=labeltext   <--- this works
>> > label.Job.ExternalLink.help=helptext <-- does not work
>> >
>> > Thx in advance
>> > Robin
>> >
>> >
>> >
>> > -------------------------------------------------
>> > Robin Luckey
>> > Folge 3 GmbH
>> > Neuer Pferdemarkt 1
>> > 20359 Hamburg
>> >
>> > +49 +40  79 69 48 78
>> > rl at folge3.de
>> > -------------------------------------------------
>> > Geschäftsführer: Christoph Fröhlich, Anja Künzel
>> > Handelsregister: HRB 105806, Amtsgericht Hamburg
>> >
>>
>> --
>> -------------------------------------------------
>> Robin Luckey
>> Folge 3 GmbH
>> Neuer Pferdemarkt 1
>> 20359 Hamburg
>>
>> +49 +40  79 69 48 78
>> rl at folge3.de
>> -------------------------------------------------
>> Geschäftsführer: Christoph Fröhlich, Anja Künzel
>> Handelsregister: HRB 105806, Amtsgericht Hamburg
>>
>> _______________________________________________
>> 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/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>>
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150530/f5860d45/attachment.htm>


More information about the opencms-dev mailing list