Code Monkey home page Code Monkey logo

refinerycms-multisite's Introduction

Simple Multisite-Plugin for refinery-cms

Idea

With this Plugin you can have Multiple Site in one Refinery-Instance by switching the Menu-Tree and the Style-Sheet based on the hostname.

Integrate in your own Refinery Project

Add following line to your Gemfile:

gem "refinerycms-multisite"

And update your Project by executing the following commands

bundle
rails g refinerycms_multisite
rake db:migrate

Stylesheet

Write your site-specific stylesheet to public/stylesheets.

Entring Site-Data

Go to the Page refinery/sites and add a Start-Site. You have to select the Root-Page and enter the stylesheet-name and all valid hostnames for this site.

How to test

call script/test.sh

refinerycms-multisite's People

Contributors

jasontrue avatar koa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

refinerycms-multisite's Issues

refinerycms/multisite (LoadError)

While following the installation instructions I get the following error while I run the command: rails g refinerycms-multisite

/Users/richardt/.rvm/gems/ruby-1.9.2-p290@rails323/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in require': no such file to load -- refinerycms/multisite (LoadError) from /Users/richardt/.rvm/gems/ruby-1.9.2-p290@rails323/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:inrescue in block in require'
from /Users/richardt/.rvm/gems/ruby-1.9.2-p290@rails323/gems/bundler-1.1.3/lib/bundler/runtime.rb:62:in block in require' from /Users/richardt/.rvm/gems/ruby-1.9.2-p290@rails323/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:ineach'
from /Users/richardt/.rvm/gems/ruby-1.9.2-p290@rails323/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in require' from /Users/richardt/.rvm/gems/ruby-1.9.2-p290@rails323/gems/bundler-1.1.3/lib/bundler.rb:119:inrequire'
from /users/richardt/rails_apps/verhagen-website/config/application.rb:15:in <top (required)>' from /Users/richardt/.rvm/gems/ruby-1.9.2-p290@rails323/gems/railties-3.2.3/lib/rails/commands.rb:24:inrequire'
from /Users/richardt/.rvm/gems/ruby-1.9.2-p290@rails323/gems/railties-3.2.3/lib/rails/commands.rb:24:in <top (required)>' from script/rails:6:inrequire'
from script/rails:6:in `

'

I'm using ruby 1.9.2 and rails 3.2.3 and refinerycms 2.0

cannot load such file

I just did a fresh heroku install of refinery (2.0.9) and added the gem to my gemfile, bundled ok but then:

rails g refinerycms_multisite
/Users/me/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:74:in `require': cannot load such file -- refinerycms/multisite (LoadError)
    from /Users/me/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:74:in `rescue in block in require'
    from /Users/me/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:62:in `block in require'
    from /Users/me/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `each'
    from /Users/me/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `require'
    from /Users/me/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler.rb:119:in `require'
    from /Users/me/Sites/herofinery/config/application.rb:13:in `<top (required)>'
    from /Users/me/.rvm/gems/ruby-1.9.3-p194@refinery/gems/railties-3.2.9/lib/rails/commands.rb:24:in `require'
    from /Users/me/.rvm/gems/ruby-1.9.3-p194@refinery/gems/railties-3.2.9/lib/rails/commands.rb:24:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.