[opencms-dev] Default value issue

Schliemann, Kai K.Schliemann at comundus.com
Mon Jul 20 15:18:53 CEST 2015


Hi Ashish,
in former versions of OpenCms you had to publish the workplace.properties file and “reinitialize the workplace” (in Administrator view).
HTH

Best regards
Kai

Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Ashish Shekhar
Gesendet: Montag, 20. Juli 2015 14:56
An: The OpenCms mailing list
Betreff: [opencms-dev] Default value issue

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/4d664b9f/attachment.htm>


More information about the opencms-dev mailing list