# == This is the global Alchemy configuration file # # === Auto Log Out Time # # The amount of time of inactivity in minutes after which the user is kicked out of his current session. # # NOTE: This is only active in production environments # auto_logout_time: 30 # === Redirect Options # # redirect_to_public_child [Boolean] # Alchemy redirects to the first public child page found, if a page is not visible. # redirect_to_public_child: true # === Page caching # # Enable/Disable page caching globally. # # NOTE: You can enable/disable page caching for single Alchemy::PageLayouts in the page_layout.yml file. # cache_pages: true # === Sitemap # # Alchemy creates a XML, Google compatible, sitemap for you. # # The url is: http://your-domain.tld/sitemap.xml # # ==== Config Options: # # show_root [Boolean] # Show language root page in sitemap? # show_flag [Boolean] # Enables the Checkbox in Page#update overlay. So your customer can set the visibility of pages in the sitemap. # sitemap: show_root: true show_flag: false # === URL nesting # # Since Alchemy 2.6.0, page urls are nested, respectively to their tree position. # # Disable +url_nesting+ to get slug only urls. # # NOTE: After changing the url_nesting, you should run one of these convert rake tasks: # # rake alchemy:convert:urlnames:to_nested # rake alchemy:convert:urlnames:to_slug # url_nesting: true # === Default items per page in admin views # # In Alchemy's Admin, change how many items you would get shown per page by Kaminari items_per_page: 15 # === Picture rendering settings # # Alchemy uses Dragonfly to render images. Use {size: "XXXxYYY", crop: BOOLEAN [true]} to resize images. # # See http://markevans.github.com/dragonfly for further infos. # # ==== Options: # # output_image_jpg_quality [Integer] # If image gets rendered as JPG this is the quality setting for it. (Default 85) # preprocess_image_resize [String] # Use this option to resize images to that value. Downsizing example: '1000x1000>' (Default nil) # image_output_format [String] # The global image output format setting. (Default +original+) # # NOTE: You can always override the output format in the options of your Essence. I.E. {format: 'gif'} # output_image_jpg_quality: 85 preprocess_image_resize: image_output_format: original # This is used by the seeder to create the default site. default_site: name: Default Site host: '*' # This is the default language when a new site gets created. default_language: code: en name: English page_layout: index frontpage_name: Index # === Mailer Settings: # # To send emails via contact forms, you can create your form fields here and set which fields are to be validated. # # === Validating fields: # # Pass the field name as a symbol and a message_id (will be translated) to :validate_fields: # # ==== Options: # # page_layout_name: [String] # A +Alchemy::PageLayout+ name. Used to render the contactform on a page with this layout. # fields: [Array] # An Array of fieldnames. # validate_fields: [Array] # An Array of fieldnames to be validated on presence. # # ==== Translating validation messages: # # The validation messages are passed through ::I18n.t so you can translate it in your language yml file. # # ==== Example: # # de: # activemodel: # attributes: # alchemy/message: # firstname: Vorname # mailer: page_layout_name: contact forward_to_page: false mail_success_page: thanks mail_from: your.mail@your-domain.com mail_to: your.mail@your-domain.com subject: A new contact form message fields: [salutation, firstname, lastname, address, zip, city, phone, email, message] validate_fields: [lastname, email] # === User roles # # You can add own user roles. # # Further documentation for the auth system used please visit: # # https://github.com/ryanb/cancan/wiki # # ==== Translating User roles # # Userroles can be translated inside your the language yml file under: # # alchemy: # user_roles: # rolename: Name of the role # user_roles: [member, author, editor, admin] # === Uploader Settings # # upload_limit [Integer] # Set an amount of files upload limit of files which can be uploaded at once. Set 0 for unlimited. # file_size_limit* [Integer] # Set a file size limit in mega bytes for a per file limit. # # *) Allow filetypes to upload. Pass * to allow all kind of files. # uploader: upload_limit: 50 file_size_limit: 100 allowed_filetypes: alchemy/attachments: - '*' alchemy/pictures: - jpg - jpeg - gif - png - svg # === Link Target Options # # Values for the link target selectbox inside the page link overlay. # The value gets attached as a data-link-target attribute to the link. # # == Example: # # Open all links set to overlay inside an jQuery UI Dialog Window. # # jQuery(a[data-link-target="overlay"]).dialog(); # link_target_options: [blank] # Should pages that redirect to an external url open the link in a new tab/window? open_external_links_in_new_tab: true # === Format matchers # # Named aliases for regular expressions that can be used in various places. # The most common use case is the format validation of essences, or attribute validations of your individual models. # # == Example: # # validates_format_of :url, with: Alchemy::Config.get('format_matchers')['url'] # format_matchers: email: !ruby/regexp '/\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/' url: !ruby/regexp '/\A[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?\z/ix' link_url: !ruby/regexp '/^(mailto:|\/|[a-z]+:\/\/)/' # The layout used for rendering the +alchemy/admin/pages#show+ action. admin_page_preview_layout: application