London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
I am guessing that you can't have spaces due to the W3C XML specification which strictly defines the syntax of names.
Building on Maris answer, you should just remove the space:
[Display(Name = "Body", GroupName = "MainBody", Order = 400)]
public virtual XhtmlString Content{ get; set; }
Then you can translate it easily:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<languages>
<language name="English" id="en">
<groups>
<mainbody>Content</mainbody>
</groups>
</language>
</languages>
Episerver already has a tab called content already, so you'll end up with 2 called that. You can use that one with EPiServer.DataAbstraction.SystemTabNames.Information
.
How do i translate my groupname here?
[Display(Name = "Body", GroupName = "Main Body", Order = 400)] public virtual XhtmlString Content{ get; set; }
I cant have spaces in my xml like this:
Is there a solution to this?