开发者

Site name on RefineryCMS

开发者 https://www.devze.com 2023-03-25 16:19 出处:网络
I\'m use the RefineryCMS based on rails. Where is Refinery CMS save site name? How can I make mul开发者_如何学Ctilanguage site name?

I'm use the RefineryCMS based on rails. Where is Refinery CMS save site name? How can I make mul开发者_如何学Ctilanguage site name? Thanks.


You can change your site name in settings (yoursite/refinery/settings).

For multilang you can do something like this:

  if I18n.locale.to_s == 'fr'
    # sets sitename to "My Site name in French"
    RefinerySetting.set(:site_name, "My Site name in French")
  else
    # displays site name from settings if defined otherwise displays "My site"
    RefinerySetting.find_or_set(:site_name, "My site")
  end


To set the company name open the file app/controllers/application_controller.rb and add this to it:

Refinery::Core.configure do |config|
config.site_name = "my site name"
end
0

精彩评论

暂无评论...
验证码 换一张
取 消