Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have an new Section to Umbraco. That works perfectly, but i have an question to language file.
How can read any Content from this, and add at the CodeBehind to an Control as Text.
I have add a new TreeAlias Key at the Sections.
<area alias="mySection"> <key alias="newKey">[!CDATA[New Text]]></key></area>
Hope, understand my english and my question. But not, you can response with any questions.
Greets Stephan
I hase the Answer found.
At the CodeBehind, must insert follow Code:
protected override void OnInit(EventArgs e) { MenuImageButton menuSave = UmbracoPanel1.Menu.NewImageButton(); menuSave.ID = UmbracoPanel1.ID + "_save"; menuSave.ImageUrl = "/umbraco/images/editor/save.gif"; menuSave.Click += new ImageClickEventHandler(menuSave_Click); menuSave.AltText = ui.Text("buttons", "save", null); base.OnInit(e); }
With the Umbraco.ui.Text - Methode, can read from XML Language file.
I hope this can help others.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Read Text from Language File
Hi,
I have an new Section to Umbraco. That works perfectly, but i have an question to language file.
How can read any Content from this, and add at the CodeBehind to an Control as Text.
I have add a new TreeAlias Key at the Sections.
Hope, understand my english and my question. But not, you can response with any questions.
Greets
Stephan
I hase the Answer found.
At the CodeBehind, must insert follow Code:
With the Umbraco.ui.Text - Methode, can read from XML Language file.
I hope this can help others.
is working on a reply...