Skip to content

Commit 325d415

Browse files
committed
Version bump to 0.0.0
1 parent 56e3194 commit 325d415

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

VERSION.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
:patch: 0
3-
:major: 3
2+
:major: 0
43
:minor: 0
4+
:patch: 0

doc/guides/html/developer_guide.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h1>BrowserCMS Developer Guide</h1>
127127
<div id="subCol">
128128
<h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />Chapters</h3>
129129
<ol class="chapters">
130-
<li><a href="#content-blocks">Content Blocks</a><ul></ul></li><li><a href="#creating-a-custom-content-block">Creating A Custom Content Block</a><ul></ul></li><li><a href="#creating-a-custom-portlet">Creating A Custom Portlet</a><ul></ul></li><li><a href="#page-routes">Page Routes</a><ul></ul></li></ol></div>
130+
<li><a href="#content-blocks">Content Blocks</a><ul></ul></li><li><a href="#creating-a-custom-content-block">Creating A Custom Content Block</a><ul></ul></li><li><a href="#creating-a-custom-portlet">Creating A Custom Portlet</a><ul><li><a href="#rendering-portlets-views-from-the-file-system">Rendering Portlets views from the file system</a></li><li><a href="#choosing-a-handler-ahead-of-time">Choosing a handler ahead of time</a></li></ul></li><li><a href="#page-routes">Page Routes</a><ul></ul></li></ol></div>
131131
</td>
132132
<td class="guides">
133133
<h2>BrowserCMS Developer Guide</h2>
@@ -217,7 +217,8 @@ <h3 id="creating-a-custom-portlet">3 Creating A Custom Portlet</h3>
217217
<p>If you look back at the form partial that was generated, you&#8217;ll see:</p>
218218
<div class="code_container"><code class="html">&lt;%= f.cms_text_area :template, :default_value =&gt; @block.class.default_template %&gt;</code></div>
219219
<p>What this does is preload the template with whatever you entered into the render template. The user is free to change it as they see fit and even have different values from one portlet instance to the next.</p>
220-
<p>If you do not want to have the portlet&#8217;s render template entered in the <span class="caps">CMS</span> and would rather have it just render the file from the file system, simply add this to your portlet code:</p>
220+
<h4 id="rendering-portlets-views-from-the-file-system">3.1 Rendering Portlets views from the file system
221+
If you do not want to have the portlet&#8217;s render template entered in the <span class="caps">CMS</span> and would rather have it just render the file from the file system, simply add this to your portlet code:</h4>
221222
<div class="code_container"><code class="ruby">class RecentProducts &lt; Portlet
222223

223224
render_inline false
@@ -229,8 +230,11 @@ <h3 id="creating-a-custom-portlet">3 Creating A Custom Portlet</h3>
229230
end</code></div>
230231
<p>The key line being the <code>render_line false</code>. Also, you will probably notice this line in the form that was generated:</p>
231232
<div class="code_container"><code class="html">&lt;%= f.cms_drop_down :handler, ActionView::Template.template_handler_extensions, :default_value =&gt; &quot;erb&quot; %&gt;</code></div>
232-
<p>This generates a drop-down menu for the user creating the portlet to select from the various portlet handlers installed in your Rails app. The default is erb, but you could install haml and use haml instead, for example.</p>
233-
<p>If you would rather not have the user select the handler type, or maybe you are using the file system instead of entering the template into the <span class="caps">CMS</span>, you can set the handler to a different value like this:</p>
233+
<p>This generates a drop-down menu for the user creating the portlet to select from the various portlet handlers installed in your Rails app.
234+
The default handler for portlet views is erb, but you could use alternative ones, like Haml. To do that, install the <span class="caps">HAML</span> gem and set the default_value to &#8216;haml&#8217; like so:</p>
235+
<div class="code_container"><code class="html">&lt;%= f.cms_drop_down :handler, ActionView::Template.template_handler_extensions, :default_value =&gt; &quot;haml&quot; %&gt;</code></div>
236+
<h4 id="choosing-a-handler-ahead-of-time">3.2 Choosing a handler ahead of time
237+
If you would rather not have the user select the handler type, or if you are using the file system instead of storing the template code in the <span class="caps">CMS</span>, you can set the handler to a different value like this:</h4>
234238
<div class="code_container"><code class="ruby">class RecentProducts &lt; Portlet
235239

236240
handler &quot;haml&quot;

doc/guides/source/developer_guide.textile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ If you look back at the form partial that was generated, you'll see:
148148

149149
What this does is preload the template with whatever you entered into the render template. The user is free to change it as they see fit and even have different values from one portlet instance to the next.
150150

151+
h4. Rendering Portlets views from the file system
151152
If you do not want to have the portlet's render template entered in the CMS and would rather have it just render the file from the file system, simply add this to your portlet code:
152153

153154
<ruby>
@@ -168,9 +169,15 @@ The key line being the <code>render_line false</code>. Also, you will probably
168169
<%= f.cms_drop_down :handler, ActionView::Template.template_handler_extensions, :default_value => "erb" %>
169170
</erb>
170171

171-
This generates a drop-down menu for the user creating the portlet to select from the various portlet handlers installed in your Rails app. The default is erb, but you could install haml and use haml instead, for example.
172+
This generates a drop-down menu for the user creating the portlet to select from the various portlet handlers installed in your Rails app.
173+
The default handler for portlet views is erb, but you could use alternative ones, like Haml. To do that, install the HAML gem and set the default_value to 'haml' like so:
172174

173-
If you would rather not have the user select the handler type, or maybe you are using the file system instead of entering the template into the CMS, you can set the handler to a different value like this:
175+
<erb>
176+
<%= f.cms_drop_down :handler, ActionView::Template.template_handler_extensions, :default_value => "haml" %>
177+
</erb>
178+
179+
h4. Choosing a handler ahead of time
180+
If you would rather not have the user select the handler type, or if you are using the file system instead of storing the template code in the CMS, you can set the handler to a different value like this:
174181

175182
<ruby>
176183
class RecentProducts < Portlet

0 commit comments

Comments
 (0)