liquid_cms 0.2.0 → 0.2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +1 -1
- data/README.rdoc +4 -0
- data/app/models/cms/page.rb +1 -1
- data/app/views/cms/pages/_page.html.erb +2 -1
- data/app/views/layouts/cms.html.erb +1 -1
- data/lib/liquid_cms/version.rb +1 -1
- data/liquid_cms.gemspec +1 -1
- metadata +7 -22
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -6,6 +6,8 @@ If you're using rails 2, use the 0.2.x series of this gem.
|
|
6
6
|
|
7
7
|
If you're using rails 3, use the 0.3.x series of this gem.
|
8
8
|
|
9
|
+
See the {wiki page}[http://github.com/redlinesoftware/liquid_cms/wiki] for additional documentation on usage and customizations... currently a work in progress.
|
10
|
+
|
9
11
|
= Installation
|
10
12
|
|
11
13
|
Install the gem:
|
@@ -48,6 +50,8 @@ Once the engine is configured, you can view the CMS at the <b>/cms</b> path in y
|
|
48
50
|
|
49
51
|
= Customization
|
50
52
|
|
53
|
+
All CMS templates and the layout can be overridden in the main application. Simply create the partial or template at the same path as the engine and your applications template will take priority.
|
54
|
+
|
51
55
|
In order to expose data in your application in the templates, liquid filters, drops, tags and blocks specific to your application can be added to the <b>app/liquid</b> folder. Knowledge of liquid templates and the liquid library is required to do this. Examples of custom filters, drops, tags and blocks can be found in the liquid_cms gem files or in additional documentation on this website or related forums.
|
52
56
|
|
53
57
|
A set of filters, drops and tags are provided in addition to the defaults provided by liquid. The documentation link accessible in the CMS provides additional details.
|
data/app/models/cms/page.rb
CHANGED
@@ -60,7 +60,7 @@ module Cms
|
|
60
60
|
render_options = {} #{:filters => [CmsFilters, AppFilters]}
|
61
61
|
common_assigns = {'params' => ParamsDrop.new((controller.params || {}).except(:controller, :action)), 'site_url' => controller.request.protocol + controller.request.raw_host_with_port}
|
62
62
|
|
63
|
-
context_obj = Cms.context_class ?
|
63
|
+
context_obj = Cms::Context.new(Cms.context_class ? context : nil)
|
64
64
|
|
65
65
|
# render the current page
|
66
66
|
page = self
|
@@ -6,11 +6,12 @@
|
|
6
6
|
<%= delete_page_link page %>
|
7
7
|
<% end %>
|
8
8
|
<%= link_to truncate(page.to_s, :length => 24), edit_cms_page_path(page), :title => "Edit '#{page}'" %>
|
9
|
-
<%= indicator dom_id(page, 'progress') %>
|
10
9
|
|
11
10
|
<%= cms_icon 'house.png', :title => 'Root/Home Page' if page.root? %>
|
12
11
|
<%= link_to cms_icon('magnifier.png', :title => 'View'), page.url, :class => 'external' if page.published? %>
|
13
12
|
|
13
|
+
<%= indicator dom_id(page, 'progress') %>
|
14
|
+
|
14
15
|
<% unless page.content_pages.empty? %>
|
15
16
|
<ul>
|
16
17
|
<%= render :partial => 'cms/pages/page', :collection => page.content_pages %>
|
data/lib/liquid_cms/version.rb
CHANGED
data/liquid_cms.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_dependency 'rubyzip', '~> 0.9.1'
|
22
22
|
s.add_dependency 'will_paginate', '~> 2.3.12'
|
23
23
|
s.add_dependency 'RedCloth'
|
24
|
-
s.add_dependency 'liquid', '~> 2.2.2'
|
24
|
+
#s.add_dependency 'liquid', '~> 2.2.2'
|
25
25
|
|
26
26
|
s.add_development_dependency 'factory_girl', "~> 1.2.3"
|
27
27
|
s.add_development_dependency 'shoulda', "~> 2.10.3"
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 91
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 0
|
10
|
-
|
10
|
+
- 2
|
11
|
+
version: 0.2.0.2
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Andrew Kaspick
|
@@ -129,26 +130,10 @@ dependencies:
|
|
129
130
|
version: "0"
|
130
131
|
type: :runtime
|
131
132
|
version_requirements: *id007
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: liquid
|
134
|
-
prerelease: false
|
135
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
136
|
-
none: false
|
137
|
-
requirements:
|
138
|
-
- - ~>
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
hash: 3
|
141
|
-
segments:
|
142
|
-
- 2
|
143
|
-
- 2
|
144
|
-
- 2
|
145
|
-
version: 2.2.2
|
146
|
-
type: :runtime
|
147
|
-
version_requirements: *id008
|
148
133
|
- !ruby/object:Gem::Dependency
|
149
134
|
name: factory_girl
|
150
135
|
prerelease: false
|
151
|
-
requirement: &
|
136
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
152
137
|
none: false
|
153
138
|
requirements:
|
154
139
|
- - ~>
|
@@ -160,11 +145,11 @@ dependencies:
|
|
160
145
|
- 3
|
161
146
|
version: 1.2.3
|
162
147
|
type: :development
|
163
|
-
version_requirements: *
|
148
|
+
version_requirements: *id008
|
164
149
|
- !ruby/object:Gem::Dependency
|
165
150
|
name: shoulda
|
166
151
|
prerelease: false
|
167
|
-
requirement: &
|
152
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
168
153
|
none: false
|
169
154
|
requirements:
|
170
155
|
- - ~>
|
@@ -176,7 +161,7 @@ dependencies:
|
|
176
161
|
- 3
|
177
162
|
version: 2.10.3
|
178
163
|
type: :development
|
179
|
-
version_requirements: *
|
164
|
+
version_requirements: *id009
|
180
165
|
description: A context aware Rails CMS engine using the Liquid template library.
|
181
166
|
email:
|
182
167
|
- andrew@redlinesoftware.com
|