Open gregoriii opened 8 years ago
Hello,
When I started the 1-1 multilingual example I just used an Umbraco starter kit. All the above code is from that starter kit and doesn't work for multilingual values. Instead have a look at https://github.com/jbreuer/1-1-multilingual-example/blob/master/Sources/24days/Views/umbNewsItem.cshtml
Hi, I have a problem with pulling the data. It would be good to share these solutions in this project. Please help me.
How can I change the "@item.Nam" in the navigation for a specific language taken from variable "urlSegment", (vorto)
<a href="@item.Url">@item.Name</a>
in \Views\Partials\umbTopNavigation.cshtml
How can I change the "title" in the metadata for a specific language taken from variable "urlSegment", (vorto)
<title>@Umbraco.Field("title", altFieldAlias: "pageName") | @Umbraco.Field("siteName", recursive: true)</title>
in \Views\umbLayout.cshtml
How can I change the "BodyText" in the navigation for a specific language taken from variable "bodyText", (vorto)
@Umbraco.Truncate(feature.BodyText, 100)
in \Views\Partials\umbFeatures.cshtml
Best regards, Gregoriii