Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6b8b085a9f
Fetching contributors…

Cannot retrieve contributors at this time

66 lines (47 sloc) 3.396 kb
require_plugin 'viking'
# require the will_paginate as a gem. This could be ´config.gem´ as well.
require "will_paginate"
Tog::Plugins.settings :tog_core, 'language.default' => "en",
'host.name' => "0.0.0.0",
'host.port' => 3000,
'site.name' => "toginstallation.com",
'mail.system_from_address' => "Tog Admin <tog@linkingpaths.com>",
'mail.default_subject' => "[Tog Installation] ",
'patch_field_error_proc' => true,
'pagination_size' => 50
Tog::Plugins.settings :tog_core, 'spam.engine' => '', # 'defensio' || 'akismet'
'spam.key' => '', # api key
'spam.url' => '' # url registered in spam engine
Tog::Plugins.settings :tog_core, 'sanitized.allowed_tags' => (ActionView::Base.sanitized_allowed_tags.to_a + %w( object param embed )).join(' '),
'sanitized.allowed_attributes' => (ActionView::Base.sanitized_allowed_attributes.to_a + %w( name width height value src href )).join(' '),
'sanitized.comments.allowed_tags' => ActionView::Base.sanitized_allowed_tags.to_a.join(' '),
'sanitized.comments.allowed_attributes' => ActionView::Base.sanitized_allowed_attributes.to_a.join(' ')
Tog::Plugins.settings :tog_core, 'storage' => 'filesystem',
'storage.filesystem.path' => ':rails_root/public/system/:class/:attachment/:id/:style_:basename.:extension'
# Comment out this lines to enable s3
# Tog::Plugins.settings :tog_core, 'storage' => 's3',
# 'storage.s3.path' => 'system/:class/:attachment/:id/:style_:basename.:extension',
# 'storage.s3.url' => ":s3_domain_url",
# 'storage.s3.bucket' => 'tog',
# 'storage.s3.access_key_id' => 'YOUR_KEY_HERE',
# 'storage.s3.secret_access_key' => 'YOUR_KEY_HERE'
Tog::Plugins.settings :tog_core, 'abuses.destroy_resource' => true
require "active_record_helper_patch"
require "acts_as_commentable_patch"
require "reloadable_plugins_patch"
require "url_writer_retardase_inhibitor"
# We've backported i18n-0.0.1 from rails to Tog, allowing pre-Rails 2.2 to use Backend::Simple
# until they're upgraded is released and we see widespread adoption of it.
require "i18n" unless defined?(I18n)
Dir[File.dirname(__FILE__) + '/locale/**/*.yml'].each do |file|
I18n.load_path << file
end
Tog::Plugins.helpers CoreHelper
Tog::Interface.sections(:admin).add "Home", "/admin/dashboard"
#manage = Tog::Interface.sections(:admin).add "Manage", "/admin/configuration"
#manage.add_item "Configuration", "/admin/configuration"
#manage.add_item "Abuses", "/admin/manage_abuses"
Tog::Interface.sections(:admin).add "Configuration", "/admin/configuration"
Tog::Interface.sections(:admin).add "Abuses", "/admin/manage_abuses"
Tog::Interface.sections(:member).add "Home", "/"
Tog::Interface.sections(:site).add "Home", "/"
Jump to Line
Something went wrong with that request. Please try again.