-
Notifications
You must be signed in to change notification settings - Fork 2
admin area resources
mmx edited this page Sep 28, 2018
·
1 revision
Resource is a piece of content (string) which can be translated.
- go to Admin area -> Resources
-
go to Admin area -> Resources
-
click New
-
form

Resource:
- name - should be only English letters
- description - any text to describe it
- Content - value for the resource in different languages
You can see views (templates) where the resource is used.
- use resource name
- its value will be automatically translated for the current language
=::Optimacms::Resource.resource_name
or using helper
=msg.resource_nameexample:
# app/views/shared/_footer.html.haml
=msg.footer_copyrightwhere 'footer_copyright' is name of the resource.