Skip to content

Commit

Permalink
Updated UI to be based on BrowserCMS 3.1 or later. Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
peakpg committed Jun 29, 2010
1 parent d812501 commit 2f8305e
Show file tree
Hide file tree
Showing 397 changed files with 96,814 additions and 1,571 deletions.
243 changes: 0 additions & 243 deletions README

This file was deleted.

42 changes: 42 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Event Module for BrowserCMS

An Event Module for BrowserCMS. Allows contributors to create and post new upcoming events.

## Features

* Events - Contributors can create Event content that represent Single or Multiday Events.
* Events Lists - Allows a complete listing of all published events in a reverse chronological order along with names and descriptions.
* Event Details - Allows visitors to see the complete details for each Event, including the ability link to external Event Registration pages.
* SEO Friendly URLs - Each event will have its own custom URL to display itself.
* Customizable Views - Event listings and detail pages can be styled using editable Portlet views.

## Installation

The Event module installs like other BrowserCMS modules.

gem install bcms_event

See http://guides.browsercms.org/installing_modules.html for further details.

### What's installed

When installing this module, it will create the following new pages/blocks.

* Events Page - A new Page 'Event' will be created at the root of the site, with an 'Event' portlet added. (Allows this page to display any Event)
* Events Route - A dynamic route to allow specific events to be shown by the Event page using a route like /events/:year/:month/:day/:slug

## Event Details

This module includes a new Event Content Type, with the following fields:

* Name
* Start and End Dates
* Location
* Contact Email
* Description - Used on the Event listing to summarize the Event.
* More Info URL
* Registration URL - Allows a link to external sites for registration.
* Category
* Tags
* Body - For the detailed view page.

3 changes: 2 additions & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
config.gem 'browsercms'
config.gem 'browsercms', :version=>">= 3.1.0"

# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
Expand Down
29 changes: 0 additions & 29 deletions db/migrate/20081114172307_load_seed_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,6 @@ def self.up
create_html_block(:server_error, :name => "Server Error", :content => "<p>The server encountered an unexpected condition that prevented it from fulfilling the request.</p>", :publish_on_save => true)
pages(:server_error).create_connector(html_blocks(:server_error), "main")
pages(:server_error).publish!
create_page_template(:default,
:name => "default", :format => "html", :handler => "erb",
:body => <<-HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title><%= page_title %></title>
<%= yield :html_head %>
</head>
<body style="margin: 0; padding: 0; text-align: center;">
<%= cms_toolbar %>
<div id="wrapper" style="width: 700px; margin: 0 auto; text-align: left; padding: 30px">
Breadcrumbs: <%= render_breadcrumbs %>
Main Menu: <%= render_menu %>
<h1><%= @page_title %></h1>
<p>BrowserCMS has been installed successfully.</p>
<h2>Getting Started</h2>
<p>To start building your site, you can either <%= link_to "alter this template", edit_cms_page_template_path(PageTemplate.find_by_file_name("default.html.erb")) %> or <%= link_to "create a new one", new_cms_page_template_path %>. You will be prompted to login with the credentials provided during the install process. To change which template the pages use, you can click the 'Edit Properties' button above, and choose a different template. After all pages in the site, use the new template, you can safely delete this one.</p>
<%= container :main %>
</div>
</body>
</html>
HTML
)
pages(:home).publish!
puts "*************************************************"
Expand Down
9 changes: 9 additions & 0 deletions db/migrate/20091109175123_browsercms_3_0_5.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class Browsercms305 < ActiveRecord::Migration
def self.up
add_column :users, :reset_token, :string
end

def self.down
remove_column :users, :reset_token
end
end
Loading

0 comments on commit 2f8305e

Please sign in to comment.