= 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 rails_connector.rb 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 sitemap.xml. 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.