localization - Localizing XForms in EPiServer File Manager -


In the EPiServer file upload talk, meta data will be uploaded to an uploaded file such as title, link, description, author and publisher The form field has been implemented using xform and filesmyseri. Configured in config.

The headings for these areas are defined directly in the HTML markup, in which the XForms controls are as under the snooplate.

  & lt; TR & gt; & Lt; Td square = "EP-tableCaptionCell" & gt; & Lt; Span id = "id_field1" & gt; Author & lt; / Span & gt; & Lt; / TD & gt; & Lt; Td valign = "top" width = "200" height = "10" & gt; & Lt; Xforms: input ref = "author" value = "" id = "id_field2" size = "40" square = "normal input" /> & Lt; / TD & gt; & Lt; / TR & gt;  

My question is, how can I transfer these field captions? In this case it will be the author.

Localization is working in Japanese in every second section of file manager operated from Lang xml file, but it seems that this part of the file manager works completely differently from the rest of the episode Does and edit.

EPiServer CMS attribute XForm is used to render the form used in the upload dialog. You specify the file from which the web Config or Episor In the config, it is loaded with a form.

The file is processed and all the form tags for the exchange are replaced with the API server web control. After this, the text is used to convert into a user control. There can not be any code in this string, because the parscroll method is never compiled, but you can use other web controls.

There is only one small extra step as the text has been converted to an XML document, so you must add the namespace to either the element or the root tag.

  & lt; Root ... xmlns: asp = "dummy1" & gt; ... & lt; Td square = "EP-tableCaptionCell" & gt; = "Id_field2" id = "id_field1" style = "margin-bottom: 10px;" & Gt; For & lt; Label & lt; Asp: label runat = "server" text = "test!" / & Gt; & Lt; EPiServer: Translation xmlns: EPiServer = "dummy2" runat = "server" text = "/ admin / admingroup / addgroup" /> & Lt; / Labels & gt; & Lt; / TD & gt;  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -