Code Monkey home page Code Monkey logo

radiant-multi-site-extension's Introduction

Multi Site

Build Status

Created by Sean Cribbs, November 2007. Inspired by the original virtual_domain behavior.

Multi Site allows you to host multiple websites on a single Radiant installation.

Each site has its own independent sitemap/page-tree and these attributes:

name: Whatever you want to call the site domain: A Ruby regular expression (without the //) to match the request against base_domain: A canonical domain name for doing quicker matches and for generating absolute URLs against homepage_id: The numerical database ID of the root page (usually you can just leave this alone).

Included images are slightly modified from FamFamFam Silk Icons by Mark James: http://www.famfamfam.com/lab/icons/silk/

Installation

  1. Unpack/checkout/export the extension into vendor/extensions of your project.

  2. Run the extension migrations.

    $ rake production db:migrate:extensions

  3. Run the extension update task.

    $ rake production radiant:extensions:multi_site:update

  4. Restart your server

Other Extensions

Multi Site allows you to customize routes within your other extensions. To restrict a route to a particular site, pass the site's name into the conditions hash:

map.resources :things, :conditions => { :site => 'My Site' }

You can also scope a route to multiple sites with an array:

map.resources :things, :conditions => { :site => ['My Site', 'Your Site'] }

Acknowledgments

Thanks to Digital Pulp, Inc. for funding the initial development of this extension as part of the Redken.com project.

Also, thanks to our contributors Josh French, Clinton R. Nixon, Nick Plante, Gert Goet, and Johannes Fahrenkrug.

radiant-multi-site-extension's People

Contributors

cndreisbach avatar eval avatar jfahrenkrug avatar seancribbs avatar zapnap avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

radiant-multi-site-extension's Issues

'Page.find_by_url should alias methods' FAILED

'Page.find_by_url should alias methods' FAILED
expected Page(id: integer, title: string, slug: string, breadcrumb: string, class_name: string, status_id: integer, parent_id: integer, layout_id: integer, created_at: datetime, updated_at: datetime, published_at: datetime, created_by_id: integer, updated_by_id: integer, virtual: boolean, lock_version: integer, allowed_children_cache: text) to respond to :find_by_url_with_sites

'Page#url should alias default' FAILED

expected #<Page id: 652238563, title: "Home", slug: "/", breadcrumb: "Home", class_name: nil, status_id: 100, parent_id: nil, layout_id: nil, created_at: "2012-05-08 14:43:31", updated_at: "2012-05-08 14:43:31", published_at: "2012-05-08 14:43:31", created_by_id: nil, updated_by_id: nil, virtual: false, lock_version: 0, allowed_children_cache: ""> to respond to :url_with_sites

Ugliness in view

The admin view appears to be referencing old images not available in Radiant 9.1, so it looks ugly.

I have patched the view to clean this up, if someone could give me a couple of tips on the appropriate process to store back the changes.

How does multi-site extension work?

How does the multi-site extension enforce a relationship between a site and a given set of pages, from the user's perspective?

It is not clear just from looking at the UI ("Sites screen").

Thanks,
Wes

undefined method `tab' for

undefined method tab' for #<MultiSiteExtension:0x10344dfa0> /Users/ram/work/projects/git/radiant/vendor/extensions/multi_site/multi_site_extension.rb:28:inactivate'

Radiant multi-site flopping between sites and pages not updating upon saving

I'm noticing an inconsistent bug when I'm logged as an admin in radiant. When navigating from page to page, saving documents that re-direct me to it's parent page, switching from tab to tab etc, I often get redirected to the wrong site.

For instance, I'll be working on this page: http://[mywebsite_AAA]/admin/pages/37/edit

I will save it

and upon save, I get redirected here: http://[mywebsite_BBB]/admin/pages?root=37

but instead of being on the [mywebsite_AAA] site, I'll be looking at the ../admin/pages view of the [mywebsite_BBB] site

Any thoughts? This is a fairly serious issue if users outside of my company are working on [mywebsite_BBB] and are getting re-directed to our [mywebsite_AAA] site.

We have also recieved complaints from our customer with admin access to only one of the sites. In this case [mywebsite_BBB]

This is their complaint:
"As we discussed, there is a glitch when attempting to save changes/updates to the website. Eventually I am able to save, but it takes 4/5 times before the system accepts the change."

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.