<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>browsercms &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/browsercms/</link>
	<description>Feed of posts on WordPress.com tagged "browsercms"</description>
	<pubDate>Sun, 19 May 2013 10:54:24 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[]]></title>
<link>http://productbuilder.wordpress.com/2012/04/30/48/</link>
<pubDate>Mon, 30 Apr 2012 04:35:10 +0000</pubDate>
<dc:creator>Emile Baizel</dc:creator>
<guid>http://productbuilder.wordpress.com/2012/04/30/48/</guid>
<description><![CDATA[We were setting up our own instance of BrowserCMS and it took a few steps to get it up and running.]]></description>
<content:encoded><![CDATA[<p>We were setting up our own instance of BrowserCMS and it took a few steps to get it up and running. In this post I&#8217;m going to recap the steps needed to do this:</p>
<p><strong>Install the basics first</strong><br />
First, get everything up to date first<br />
<code>apt-get update</code></p>
<p>Next, install rvm to manage the Ruby gems and the active environment<br />
<code><a href="http://beginrescueend.com/" rel="nofollow">http://beginrescueend.com/</a></code></p>
<p>The output will tell you that you need to install a few things. You can copy and run the line that lists the packages required for Ruby.<br />
<code>apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion</code></p>
<p>Install a few other things including git, patch, Ruby and Rails.</p>
<p><code>sudo apt-get install git<br />
sudo apt-get install patch<br />
rvm install 1.9.3<br />
apt-get install rails</code></p>
<p><strong>Install BrowserCMS</strong><br />
Installing the browsercms gems installs all the dependent gems as well<br />
<code>gem install browsercms</code></p>
<p>I got an error related to building the mysql2 gem. Don&#8217;t worry, you just need to install a couple other gems. More info on this <a href="http://heatware.net/ruby-rails/solved-installing-mysql-gem-extconf-rb-failed-error/">here</a><br />
sudo apt-get install libmysql-ruby<br />
sudo apt-get install libmysqlclient-dev</p>
<p>At this point you&#8217;ve installed everything.  All that&#8217;s left is to create a new instance.</p>
<p><strong>Create a new BrowserCMS instance</strong></p>
<p>Before you do anything, make sure to set your environment&#8217;s RAILS_ENV property.  I set this in the ~/.bashrc but it may be different for you.  Check where you set your env properties in your home folder <code>ls -a<code> should reveal it.  Then be sure to reload the profile or exit and log back into the shell so the env setting takes place.</p>
<p>Here we set it to the development environment.</p>
<p><code>set RAILS_ENV=development</code></p>
<p>Next, we want to create the instance and tell it do install it on mysql.  Default would be sqlite.</p>
<p><code>bcms new apidocs -d mysql</code></p>
<p>To be sure you've installed everything, let's run <code>bundle install</code> in the newly created app.</p>
<p><code>cd apidocs</p>
<p>bundle install</code></p>
<p>Lastly, we want to seed the database with the tables and seed data.  This can be done in one command with <code>rake db:install</code> but I prefer to run each of the three commands that get called by <code>rake db:install</code>, separately.  That way if an error occurs I know exactly which one caused it.  And in this case, there was an error.  First the commands that you run:</p>
<p><code></p>
<p>rake db:create<br />
rake db:migrate<br />
rake db:seeds</p>
<p></code></p>
<p>When I ran <code>rake db:seeds</code> with my RAILS_ENV=production, I got an error of:<br />
<b>rake aborted!<br />
private method `rand' called for #</b></p>
<p>This is because for the production env it is creating a random password and for some reason the rand function on Array is private. Whatever. An easy workaround is I just edited <code>db/browsercms.seeds.rb</code> and added production to the list of checks (line4).  This allows db:seeds to run and then you can update the cmsadmin password via the app later</p>
<p>You can re-run db:seeds to finish the db:install<br />
<code>rake db:seeds</code></p>
<p>Type in:</p>
<p><code>rake server</code></p>
<p>and you should see your server up and running on port 3000.  Put in /cms and you can get to the cms administration portion with your login of cmsadmin / cmsadmin.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[BrowserCMS from development to production]]></title>
<link>http://giangnguyen.net/2011/08/10/browsercms-from-development-to-production/</link>
<pubDate>Wed, 10 Aug 2011 03:48:40 +0000</pubDate>
<dc:creator>Giang Nguyen</dc:creator>
<guid>http://giangnguyen.net/2011/08/10/browsercms-from-development-to-production/</guid>
<description><![CDATA[There&#8217;re some Rails CMS such as Radiant, Refinery, BrowserCMS&#8230; and I find BrowserCMS the]]></description>
<content:encoded><![CDATA[There&#8217;re some Rails CMS such as Radiant, Refinery, BrowserCMS&#8230; and I find BrowserCMS the]]></content:encoded>
</item>
<item>
<title><![CDATA[Split Special character format asci ]]></title>
<link>http://ahmadramdani.wordpress.com/2010/05/25/split-special-character-format-asci/</link>
<pubDate>Tue, 25 May 2010 04:19:54 +0000</pubDate>
<dc:creator>kuyarail</dc:creator>
<guid>http://ahmadramdani.wordpress.com/2010/05/25/split-special-character-format-asci/</guid>
<description><![CDATA[Ketika saya menemukan huruf ä Ä é ö Ö ü Ü ß &amp; di browsercms sebagai contoh kalimat di bawah ini]]></description>
<content:encoded><![CDATA[<p>Ketika saya menemukan huruf ä Ä é ö Ö ü Ü ß &#38; di browsercms sebagai contoh kalimat di bawah ini</p>
<p>Äyahku seorang insinyur</p>
<p>asci = &#8220;Äyahku seorang insinyur&#8221;</p>
<p>html = &#8220;Äyahku seorang insinyur&#8221; hasil dari CKEDITOR atau editor html lainnya</p>
<p>format ASCI &#124; HTML setelah di CGI::escape</p>
<p>%C3%84 &#124; %26Auml%3B  = Ä</p>
<p>%C3%A4 &#124; %26auml%3B  = ä</p>
<p>%C3%96 &#124; %26Ouml%3B  = Ö</p>
<p>%C3%B6 &#124; %26ouml%3B  = ö</p>
<p>%C3%9F &#124; %26szlig%3B  = ß</p>
<p>%C3%9C &#124; %26Uuml%3B  = Ü</p>
<p>%C3%BC &#124; &#8220;%26uuml%3B  = ü</p>
<p>%26 &#124; &#8220;%26amp%3B = &#38;</p>
<p>dll.</p>
<p>Ketika saya ingin mem &#8211; split judul dari isi, ini biasanya di ckeditor</p>
<p><strong>Title = &#8220;Äyahku seorang insinyur&#8221; &#60;&#8211; asci<br />
</strong></p>
<p>Body = &#8220;Äyahku seorang insinyur Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do  eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad  minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip  ex ea commodo consequat. Duis aute irure dolor in reprehenderit in  voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur  sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt  mollit anim id est laborum.&#8221;   &#60;- ckeditor</p>
<p><strong>helper</strong></p>
<p><strong>def convert_html(asci)</strong><br />
aa = CGI::escape(asci).gsub(/%C3%84/, &#8220;%26Auml%3B&#8221;).gsub(/%C3%A4/, &#8220;%26auml%3B&#8221;).gsub(/%C3%96/, &#8220;%26Ouml%3B&#8221;).gsub(/%C3%B6/, &#8220;%26ouml%3B&#8221;).gsub(/%C3%9F/, &#8220;%26szlig%3B&#8221;).gsub(/%C3%9C/, &#8220;%26Uuml%3B&#8221;).gsub(/%C3%BC/, &#8220;%26uuml%3B&#8221;).gsub(/\+\+/, &#8220;%26nbsp%3B+&#8221;).gsub(/\+%26\+/, &#8220;+%26amp%3B+&#8221;).gsub(/%E2%80%9E/,&#8221;%26bdquo%3B&#8221; ).gsub(/%E2%80%9C/,&#8221;%26ldquo%3B&#8221;)<br />
CGI::unescape(aa)<br />
<strong>end</strong></p>
<p><strong>def strip_content(content)</strong><br />
aa = strip_tags(content)<br />
truncate_html(aa, :length =&#62; 230, <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> mission =&#62; &#8216; &#8230;&#8217;)<br />
<strong>end</strong></p>
<p>&#60;% bb = convert_html(title) %&#62;</p>
<p>&#60;%=  strip_content(body).gsub(/#{bb}/,&#8221;")  %&#62;</p>
<p><strong>Hasil Akhir</strong> &#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><strong>Äyahku seorang insinyur&#8221;<br />
</strong></p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo conseq &#8230;</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Menampilkan pagination Block Content yang kita buat di BrowserCMS]]></title>
<link>http://ahmadramdani.wordpress.com/2010/04/09/menampilkan-pagination-block-content-yang-kita-buat-di-browsercms/</link>
<pubDate>Fri, 09 Apr 2010 07:04:24 +0000</pubDate>
<dc:creator>kuyarail</dc:creator>
<guid>http://ahmadramdani.wordpress.com/2010/04/09/menampilkan-pagination-block-content-yang-kita-buat-di-browsercms/</guid>
<description><![CDATA[Hallo sebetulnya ini hal yang mudah, tapi mungkin buat yang baru mengulik browserCMS akan menemukan]]></description>
<content:encoded><![CDATA[<p>Hallo sebetulnya ini hal yang mudah, tapi mungkin buat yang baru mengulik browserCMS akan menemukan kesulitan pada saat membuat pagination. Pertama saya menambah plugin will_paginate, dan hasilnya yaitu bentrok dengan paginate yang browserCMS punya. Setelah di selidiki eh ternyata si BrowserCMS meng-clone plugin will_paginate.</p>
<p>Untuk mempermudah menampilkan pagination beginilah caranya :</p>
<p>1. controller</p>
<p>def item</p>
<p>@item_all = Item.paginate(:all,<br />
:page =&#62; params[:page],<br />
: order =&#62; &#8216;created_at DESC&#8217;,<br />
:per_page =&#62; 10)</p>
<p>end</p>
<p>2. di View</p>
<p>tinggal tambahkan &#60;%= render_pagination(@item_all, &#8216;items&#8217;) %&#62;</p>
<p>Modulnya bisa di lihat di vendor/gems/browsercms-3.0.6/lib/cms/behaviors/pagination.rb</p>
<p>Semoga bermanfaat <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
</item>

</channel>
</rss>
