[opencms-dev] Default value issue

Ashish Shekhar ashish.shekharcsc at gmail.com
Mon Jul 20 14:56:22 CEST 2015


Hi,

I am trying to set the default value from the resource bundle which I kept
under i18n.

I have named the the file with modulename.workplace. i.e
my.template.workplace. In the key I have used *title.oceanofsky .*

In the xsd file, I have set the default value as below

<xsd:annotation>
        <xsd:appinfo>
            <resourcebundle name="my.template.workplace" />
            <defaults>
                <default element="Title1" value="*%(key.title.oceanofsky)*"
/>
                <default element="SubMainContent/Text" value="Input your
Text" />
            </defaults>
        </xsd:appinfo>
    </xsd:annotation>

When I selected & edit the content type in the page, the value is not
coming instead it comes like

*??? title.oceanofsky ??? *
I am not sure why the value is not picked up? Could anyone please look into
this?

Thanks,
Ashish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150720/09379c6e/attachment.htm>


More information about the opencms-dev mailing list