Sha256: a330b14c8cc5ac0a94f0dedaa92c1a651292cb3ce4974eea3a070e510a983705

Contents?: true

Size: 1.96 KB

Versions: 4

Compression:

Stored size: 1.96 KB

Contents

= Infopark Rails Connector

Infopark Rails Connector integrates Infopark’s CMS into your Rails application.

It connects either to Infopark Cloud Express CMS via {https://rubygems.org/gems/infopark_cloud_connector infopark_cloud_connector} or to Infopark CMS Fiona via {https://rubygems.org/gems/infopark_fiona_connector infopark_fiona_connector}. It also enables you to integrate various ready-to-run features.

For more information about Infopark Rails Connector, please visit {http://kb.infopark.de/ Infopark’s Knowledge Base}.

== Configuration
Here is how all available addons can be enabled in the <tt>rails_connector.rb</tt> initializer file of your application:

  RailsConnector::Configuration.enable(
    :google_analytics,
    :infopark_tracking,
    :crm,
    :pdf_generator,
    :rss,
    :search,
    :seo_sitemap,
    :time_machine
  )

== Layout Helpers
Some of those functions depend on html or javascript code being included in the application layout.
For example, Google Analytics does only track pageviews if their javascript snippet is included
at the bottom of the html body.

Rails Connector provides two helpers which manage that kind of layout code,
switching on or off parts depending on what features are enabled or not:

  rails_connector_header_tags

This helper needs to be called inside the html head tag.

  rails_connector_after_content_tags

That helper is to be put right before the closing body tag.

== Generators
Infopark Rails Connector comes with three generators to help you get up and running quickly:

  > rails generate rails_connector:install

Adds Time machine assets, a +rails_connector.rb+ initializer and rake tasks specific to the gem to your application.

== Seo Sitemap

The default implementation for the seo sitemap will feature all files from your CMS in the generated <tt>sitemap.xml</tt>. For a large number of files, this can slow down your server. Please refer to {RailsConnector::SEO::ClassMethods#find_all_for_sitemap} for advise on optimization.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
infopark_rails_connector-6.8.0.356.19698103 README
infopark_rails_connector-6.8.0.348.160665197 README
infopark_rails_connector-6.8.0.328.4a753fc README
infopark_rails_connector-6.8.0.322.c003f11 README