sachatrauwaen / OpenContent

Structured Content editing for DNN (Dotnetnuke)
46 stars 25 forks source link

Localized string does't work in sub template #120

Closed Timo-Breumelhof closed 3 years ago

Timo-Breumelhof commented 4 years ago

I'm using {{Localization.UserStatus.Approved}} in a sub template, but that does not seem to work. It does work in the main template Example template: https://github.com/Timo-Breumelhof/OpenContent-Templates/blob/Issues/%234/User-Management/item.hbs

Timo-Breumelhof commented 3 years ago

Use @root

Timo-Breumelhof commented 3 years ago

Ok I was wrong. As a sub-template is on another level you should use: {{@root.Localization.xxx.yyy}} in a sub-template instead of {{Localization.xxx.yyy}}