[opencms-dev] Default value issue

Ashish Shekhar ashish.shekharcsc at gmail.com
Mon Jul 20 20:51:13 CEST 2015


Thanks Kai for your help. It worked for me.  I didn't refresh the content
type. It was my mistake.

-Ashish

On Tue, Jul 21, 2015 at 12:15 AM, Ashish Shekhar <
ashish.shekharcsc at gmail.com> wrote:

> Thanks Kai for the reply. I tried the same what you have suggested but it
> didn't work.
>
> I am using 9.5.2 version of OpenCms.
>
>
>
> On Mon, Jul 20, 2015 at 6:48 PM, Schliemann, Kai <
> K.Schliemann at comundus.com> wrote:
>
>>  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
>>
>> _______________________________________________
>> 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/20150721/ca09d505/attachment.htm>


More information about the opencms-dev mailing list