All Projects → ikuseiGmbH → Goldencobra

ikuseiGmbH / Goldencobra

Licence: other
CMS based on modules as Rails 4 engines

Programming Languages

javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language
HTML
75241 projects
CSS
56736 projects
SCSS
7915 projects
Gherkin
971 projects

Projects that are alternatives of or similar to Goldencobra

Fae
CMS for Rails. For Reals.
Stars: ✭ 701 (+3238.1%)
Mutual labels:  rails-engine, content-management-system
AeroCMS
Aero is a simple and easy to use CMS (Content Management System) designed to create fast and powerful web applications!
Stars: ✭ 14 (-33.33%)
Mutual labels:  content-management-system
hugy
Hugy is an Electron desktop app acting as a GUI for the Hugo static site generator.
Stars: ✭ 44 (+109.52%)
Mutual labels:  content-management-system
pageflo
A new super flexible open source CMS
Stars: ✭ 34 (+61.9%)
Mutual labels:  content-management-system
socializer
Rails engine to make your projects social. Adds stream, profile, circles, groups and notifications.
Stars: ✭ 56 (+166.67%)
Mutual labels:  rails-engine
multi-tenancy-devise
mtdevise adds basecamp style user logins to your ruby on rails application.
Stars: ✭ 27 (+28.57%)
Mutual labels:  rails-engine
vscode-front-matter
Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...
Stars: ✭ 962 (+4480.95%)
Mutual labels:  content-management-system
webapp-wordlists
This repository contains wordlists for each versions of common web applications and content management systems (CMS). Each version contains a wordlist of all the files directories for this version.
Stars: ✭ 306 (+1357.14%)
Mutual labels:  content-management-system
caffeinate
A Rails engine for drip campaigns/scheduled email sequences and periodic emails.
Stars: ✭ 216 (+928.57%)
Mutual labels:  rails-engine
boom-core
BoomCMS core code. BoomCMS is a user friendly, WYSIWYG CMS based on Laravel. Open source and released under the MIT license.
Stars: ✭ 13 (-38.1%)
Mutual labels:  content-management-system
exception hunter
Crash reporting engine to hunt down bugs 🐞
Stars: ✭ 78 (+271.43%)
Mutual labels:  rails-engine
guias-de-rails-espanol
Guías de Rails en Español (Rails 5) Estas son las guías de Rails 5 en Español (Guías Completas, con todos los Capítulos). Estas guías están diseñadas para que tengas una productividad inmediata con Rails, y para ayudarte a entender como encajan las piezas en Rails.
Stars: ✭ 42 (+100%)
Mutual labels:  rails-engine
AuroraCMS
The Australian Open Source Content Management System
Stars: ✭ 13 (-38.1%)
Mutual labels:  content-management-system
sprout3
SproutCMS: content management and framework
Stars: ✭ 23 (+9.52%)
Mutual labels:  content-management-system
Clownfish
Smart Content Management System using Spring Boot
Stars: ✭ 14 (-33.33%)
Mutual labels:  content-management-system
approval
🙆‍♂️🙅 Approval flow for Rails
Stars: ✭ 102 (+385.71%)
Mutual labels:  rails-engine
acblog
An open source extensible static & dynamic blog system. (an alternative tool with same features at StardustDL/paperead)
Stars: ✭ 60 (+185.71%)
Mutual labels:  content-management-system
content-management-system
Content management system for laravel developers'. It's easy to install and run.
Stars: ✭ 16 (-23.81%)
Mutual labels:  content-management-system
translation-engine
A Rails engine for sending and receiving translations from Translation Server
Stars: ✭ 14 (-33.33%)
Mutual labels:  rails-engine
webpay rails
WebpayRails is an easy solution for integrate Transbank Webpay in Rails applications
Stars: ✭ 16 (-23.81%)
Mutual labels:  rails-engine

Golden Cobra

Maintainability Test Coverage

Powered by

  • ActiveAdmin

Current versions

Requirements

  • Ruby 2.2+
  • Rails 4.2+
  • Mysql 5.x (tested with e.g. 5.7.10)

Installation

This installation is meant for using Golden Cobra as a gem inside your Rails application. If you would like to contribute to Golden Cobra development, please read this document => Installation instructions for development.

Guided Installation wit rvm, git, capistrano and server deploy

rails new PROJECTNAME -m https://raw.github.com/ikusei/goldencobra-installer/master/template.rb -d mysql

Manual Installation: Create new project

rails new PROJECTNAME -d mysql

Install Golden Cobra gem

Add the following to file "PROJECTNAME/Gemfile":

gem "goldencobra", git: "https://github.com/ikuseiGmbH/Goldencobra.git"
gem "activeadmin", git: "https://github.com/ikusei/active_admin.git", require: "activeadmin"
bundle install

Create database

rake db:create

Install prerequisites for Golden Cobra

rake goldencobra:install:migrations
rails generate goldencobra:install
rake db:migrate db:test:prepare

If you want to use Golden Cobra in a subdirectory

(http://www.domain.de/subdir/), please modify your config/routes.rb and setup your domains in "Settings > Domains" in the backendinterface

Goldencobra::Domain.pluck(:url_prefix).each do |url_prefix|
    scope url_prefix do
        ActiveAdmin.routes(self)
        devise_for :users, ActiveAdmin::Devise.config
        mount Goldencobra::Engine => "/"
    end
end

Setup Golden Cobra

If you want to use Batch Actions in Golden Cobra (set a batch of articles offline), you need to uncomment the line # config.batch_actions = true in config/initializers/active_admin.rb

This would also be the place where you can override stylesheets and javascripts. Just put them inside the block # == Register Stylesheets & Javascripts.

Create new article types

Nearly every site in Golden Cobra is an article. If the default article isn't enough for your needs you can create new article types. There's a generator for that: rails generate goldencobra:articletype Thing name:string

Where "Thing" would be your associated model and "name:string" are the usual ruby attributes.

This will create:

    generate model Thing # Your associated model
    generate /app/views/articletypes
    generate /app/views/articletypes/thing # View folder
    # Necessary view files
    generate /app/views/articletypes/thing/_index.html.erb
    generate /app/views/articletypes/thing/_show.html.erb
    generate /app/views/articletypes/thing/_edit_show.html.erb
    generate /app/views/articletypes/thing/_edit_index.html.erb

The index and show partials are for fronted display of your article type. The "_edit" partials are for the ActiveAdmin.

"Index" is always the index view of articles of this article_type. The _edit_index enables you to set certain tags to filter your index view. Of course everything is customizable by you.

"Show" is an individual article of this article_type. The "_edit_show" gives you control over the models attributes.

Settings

We have a quite flexible settings system in place. In the admin backend you have many values you can customize for your installation.

Important values are

  • goldencobra.url (should be set without http:// in front)
  • Commentator: If you have a different frontend user model (like 'Visitor') you can set this here. Default is User.
  • Bugherd: If you use Bugherd.com for tracking frontend problems for your website you should enter the project's API key here. You can further decide wich User should be logged in to be able to track bugs.
  • You have can enable or disable Solr Search Server and decide wether you want to recreate all menues and widgets after updating them. This might be useful for caching.

When creating articles, a default value is set for open graph image url. Please make sure you provide a default open graph image at "/assets/open-graph.png"

Usage

Basic Headers

call in head-section of any view_template to include stylesheets, javascripts (jquery, jqueryui, jquery.tools ...), bugtracker, metatags, airbrake and article_administration element:

basic_goldencobra_headers(option={})

# option: {:exclude => ["stylesheets", "javascripts", "bugtracker", "metatags", "article_administration", "airbrake"]}

example:

<%= basic_goldencobra_headers(:exclude => ["javascripts","stylesheets"]) %>

##Only Activate Bugtracker in Application Layout place this code in your application layout in header section: <%= bugtracker %>

Navigation Menu

call in any view_template:

navigation_menu(menue_id, option={})

# option: { depth: integer }
#
# 0 = unlimited
# 1 = self
# 2 = self and children 1st grade
# 3 = self and up to children 2nd grade
# default = 0

example: renders menue starting with id 1 and only childs of first grade

<%= navigation_menu(1, :depth => 1) %>

renders menue starting with id 2 and all children as a nested list

<%= navigation_menu(2) %>

renders menue starting with first Menuitem including title 'MainNavigation' and all children as a nested list

<%= navigation_menu("MainNavigation") %>

renders menue starting with first Menuitem including title 'MainNavigation' in the submenue 'Sub' and all children as a nested list

<%= navigation_menu("Sub/MainNavigation") %>

renders menue starting with first Menuitem including title 'MainNavigation' in the submenue 'de' or 'en' depending of your current Locale and all children as a nested list

<%= navigation_menu("#{I18n.locale.to_s}/MainNavigation") %>
<%= navigation_menu("Top-Menue", :submenue_of_article => @article, :class => "ul_submain_nav", :depth => 2, :show_image => false, :show_description_title => false, :show_description => false, :show_call_to_action_name => false) %>

Switching Languages

<%= link_to "Deutsch", switch_language("de") %>
<%= link_to "Englisch", switch_language("en") %>

Named routes outside mounted rails engine

You can call any named route defined in your railsapp inside a goldencobra_view by calling:

  <%= link_to "CustomRoute", application_routes.custom_page_path() %>

Breadcrumb Menue

in your view_templates:

    <%= breadcrumb() %>

Rendering content in layouts

<% # Renders contents of different article types %>
<% if @article %>
  <%= render_article_type_content() %>
<% end %>

<%= yield(:article_content) %>
<%= yield(:article_title) %>
<%= yield(:article_subtitle) %>
<%= yield(:article_teaser) %>

Render widgets

Alle DefaultWidgets UND alle ArtikelWidgets mit dem Tag "sidebar" sortiert nach SorterID:

render_article_widgets(default: true, tagged_with: "sidebar")

Alle ArtikelWidgets mit dem Tag "sidebar" sortiert nach SorterID:

  <%= render_article_widgets(default: false, tagged_with: "sidebar") %>

Alle ArtikelWidgets mit dem Tag "sidebar" sortiert nach SorterID:

  <%= render_article_widgets(tagged_with: "sidebar") %>

Alle DefaultWidgets und alle ArtikelWidgets:

  <%= render_article_widgets(default: true) %>

Alle ArtikelWidgets:

  <%= render_article_widgets() %>

Alle DefaultWidgets:

  <%= render_article_widgets(article: false) %>

Alle DefaultWidgets mit dem Tag "sidebar" sortiert nach SorterID:

  <%= render_article_widgets(article: false, tagged_with: "sidebar") %>

Alle Optionen mit Defaultwerten:

  <%= render_article_widgets(default="false", article="true", tagged_with: "") %>

Render Login and Registration Widgets

in your view_templates:

    <%= render_login_widget(User) %>
    <%= render_login_widget(Visitor) %>
    <%= render_registration_widget(User) %>
    <%= render_registration_widget(Visitor) %>

Include social media sharing buttons where applicable

<div id="social_sharing_buttons" class="bottom_buttons">
  <%= yield(:social_sharing_buttons) %>
</div>

Render an image gallery inside article content

<%= render_article_image_gallery %>

Contributing

See the CONTRIBUTING document. Thank you, contributors!

License

This project uses CC BY-NC-SA 3.0. See License

About

Golden Cobra is maintained by ikusei GmbH in Berlin. We like you.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].