Product
Store demo
Showcase
Features
Why for developers
Why for store owners
Industries
Fashion
Health & Beauty
Food & Beverage
Automotive
Industrial & Scientific
Furniture
B2B eCommerce
International
Downloads
Download nopCommerce
Marketplace
Translations
Copyright removal key
Mobile application
Web API
Support & services
Training
Documentation
Community forums
Premium support services
Request a quote
Contact us
Partners
English
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Get started
Shopping cart
My account
Log in
Register
Home
>
Forums
>
General
>
General Support
>
New line break in language record value
New line break in language record value
Reply
sssorano
Total Posts:
102
Karma:
580
Joined:
7/2/2015
Location:
Croatia
Posted:
2 months ago
Is it possible to edit the message in the Value field in language record? I would need a new line.
Thank you
New York
MVP
Total Posts:
11328
Karma:
101032
Joined:
5/22/2011
Location:
United States
Posted:
2 months ago
It may depend...
Newlines may just be 'ignored' when rendered by the browser.
If you put in an HTML break <br/>, then it may show as-is if not wrapped in .Raw()
Which resource string do you want to add newlines to?
sssorano
Total Posts:
102
Karma:
580
Joined:
7/2/2015
Location:
Croatia
Posted:
2 months ago
newsletter.resultactivated
New York
MVP
Total Posts:
11328
Karma:
101032
Joined:
5/22/2011
Location:
United States
Posted:
2 months ago
Try this:
In this file, \Views\Newsletter\SubscriptionActivation.cshtml
Change from
@Model.Result
to
@Html.Raw(Model.Result)
Then, edit your locale resource string and use <br/> where you want the newlines.
Reply
Still have questions or need help?
.
Premium support services
.
Get dedicated support from the nopCommerce team with a guaranteed response within 24 hours.
.
Online course for developers
.
Get the practical and technical skills you need to run and customize nopCommerce websites.