
<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Ankit Ahuja &#187; extension</title>
	<atom:link href="http://ankitahuja.com/blog/tag/extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://ankitahuja.com</link>
	<description>Personal Website and Blog of Ankit Ahuja</description>
	<lastBuildDate>Sun, 04 Dec 2011 01:39:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing the Front End Editor extension on Joomla 1.5</title>
		<link>http://ankitahuja.com/blog/development/installing-the-front-end-editor-extension-on-joomla-1-5/</link>
		<comments>http://ankitahuja.com/blog/development/installing-the-front-end-editor-extension-on-joomla-1-5/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 15:18:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Front End Editor]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[project]]></category>
		<guid isPermaLink="false">http://ankitahuja.com/?p=304</guid>
		<description><![CDATA[Many of you already know that I created the “Front End Editor” aka &#8220;Enhanced Front End Editing&#8221; extension for Joomla! as part of Google Summer of Code 2009. The extension only works in 1.5.x right now. Even though I tried to make it easy to adopt the extension by making it easy to setup, the [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you already know that I created the “<strong>Front End Editor</strong>” aka &#8220;<strong>Enhanced Front End Editing</strong>&#8221; extension for Joomla! as part of Google Summer of Code 2009. The extension only works in 1.5.x right now. Even though I tried to make it easy to adopt the extension by making it easy to setup, the extension does rely on the template quite a bit. I thought if I explain the installation process, all the hacks the extension makes and the underlying dependencies in a blogpost, it should help in getting rid of confusion to some degree.</p>
<p>You can download the <a href="http://extensions.joomla.org/extensions/news-production/content-submission/9838">extension</a> from JED.</p>
<h2 id="installation">Installation</h2>
<ol>
<li>Install ‘<strong>com_frontendeditor</strong>’, ‘<strong>plg_frontendeditor</strong>’ and ‘<strong>plg_articleeditor</strong>’ from <a href="http://joomlacode.org/gf/project/frediting/frs/?action=FrsReleaseBrowse&amp;frs_package_id=4870">here</a>.</li>
<li>Enable the plugins “System &#8211; Frontend Editor” and “Content &#8211; Frontend Article Editor”.</li>
<li>Go to “Components-&gt;Enhanced Frontend Editor” at the backend and click on “<strong>Apply Changes</strong>”. You can modify the settings there to suit your template and needs.</li>
</ol>
<h2 id="hacks_applied_when_you_click_on_8220apply_hack8221">Hacks ( applied when you click on “Apply Changes”)</h2>
<ol>
<li>Adds the module chrome &#8220;<strong>modChromefreditor</strong>&#8221; to the “<strong>html/modules.php</strong>” file of the current template. Before doing this, it creates a backup file ‘html/modules.php.backup’.</li>
<li>After creating a backup of “<strong>index.php</strong>” as “<strong>index.php.backup</strong>”, it modifies the following statements in the “index.php” of the current template:
<ul>
<li>All the jdoc statements get the style “<strong>freditor</strong>”. Example:
<pre class="brush: xml; title: ;">&lt;jdoc:include type=&quot;modules&quot; name=&quot;top&quot;&gt;</pre>
<p> gets changed into
<pre class="brush: xml; title: ;">&lt;jdoc:include type=&quot;modules&quot; name=&quot;top&quot; style=&quot;freditor&quot;&gt;</pre>
</li>
<li>Surrounds the jdoc statements with a DIV that has class in the format
<pre class="brush: xml; title: ;">frpos.position-name</pre>
<p> Example: </p>
<pre class="brush: xml; title: ;">
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user3&quot; style=&quot;freditor&quot;&gt;</pre>
<p> gets changed into
<pre class="brush: xml; title: ;">
&lt;div class=&quot;frpos.user3&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user3&quot; style=&quot;freditor&quot;&gt;
&lt;/div&gt;
</pre>
</li>
</ul>
</li>
<li>Replaces the existing “<strong>/html/com_content/article/form.php</strong>” file with a custom “<strong>form.php</strong>” ( after creating a backup file i.e. “<strong>form.php.backup</strong>”)</li>
</ol>
<p>The backup files are created so that you can undo the changes anytime by clicking on “<strong>Revert Changes</strong>”. You would probably want to revert the hack if you choose to uninstall the extension.</p>
<p>You’ll also need to apply the hack separately for each template you want to use.</p>
<h2 id="dependencies_limitations">Dependencies and Limitations</h2>
<ol>
<li><strong>Mootools 1.2</strong><br />
Perhaps the biggest limitation of this extension is that it uses mootools 1.2 instead of 1.1 which is used in Joomla! 1.5. Consequently, some of your javascript that uses mootools 1.1 may not work properly when you’re logged in. Mootools 1.2 will only replace 1.1 when you’re logged in at the front-end and have the plugins enabled. The reason I chose 1.2 is that Joomla! 1.6 will use mootools 1.2.</li>
<li><strong>Menu-item title editing</strong><br />
The menu-item titles must be enclosed in LI elements with the class in format
<pre class="brush: plain; title: ;">item&lt;menu-id&gt;</pre>
<p> Eg.:</p>
<pre class="brush: xml; title: ;">
&lt;li class=&quot;item13&quot;&gt;
&lt;span&gt;Joomla! Documentation&lt;/span&gt;
&lt;/li&gt;
</pre>
<p>If your template uses a different layout, you may want to modify it a little to support menu-item title editing. In case you don’t, you need not worry as each of these features degrade gracefully, without affecting the functionality or presentation of your site.</li>
<li><strong>Default article edit icons are hidden</strong><br />
The default edit icons are hidden and the extension displays its own edit icons. You can specify their selector in the admin component. In case your template uses a different selector than the default one and you don’t specify it, a pair of edit icons can appear for each article which will lead to confusion.</li>
<li><strong>Selectors for article and page titles</strong><br />
If they are not the default, you can modify them in the admin so that editing of article and page titles works.</li>
</ol>
<h2 id="future_versions">Future Versions</h2>
<p>You can report any bugs <a href="http://joomlacode.org/gf/project/frediting/tracker/?action=TrackerItemBrowse&amp;tracker_id=9019">here</a>. Since my college semester has now begun, any updates to the extension will probably come slowly. I plan to remove any trivial withstanding bugs, add new features with time and improve the extension in general. I would love to spend any free time in fixing bugs of the overall Joomla! project as well.</p>
<p>As far as Joomla! 1.6 is concerned, I did create a patch for 1.6 but due to time constraints, it wasn’t included in the feature-set for 1.6. So, when a stable version of 1.6 is released, I’ll port this extension to support 1.6.</p>
<p>I will love to know if the extension worked for you and any suggestions or feedback you want to give. You can either contact me via the <a href="http://ankitahuja.com/contact">Contact page</a> or send me an <a title="Me on Twitter" href="http://twitter.com/ahujaankit">@reply</a> on twitter.</p>
<p><strong>Update:</strong></p>
<p>This is a common recurring problem for version 0.3.7 of the extension. If you&#8217;re getting the following error:</p>
<p>Parse error: syntax error, unexpected &#8216;&#038;&#8217;, expecting T_VARIABLE or &#8216;$&#8217;<br />
in your-install/administrator/components/com_frontendeditor/controller.php<br />
on line 99</p>
<p>it means you&#8217;re probably using a version of PHP earlier than 5. Unfortunately, this piece of code only works in PHP 5. You&#8217;ll either need to update to PHP 5 or get the patch from <a href="http://joomlacode.org/gf/download/frsrelease/11233/44798/99line.patch">here</a>. You&#8217;ll need to apply the patch to 
<pre class="brush: plain; title: ;">your-install/administrator/components/com_frontendeditor/controller.php</pre>
<p>In case you&#8217;re not familiar with applying a patch, you&#8217;ll have to execute the following command from the shell:</p>
<pre class="brush: bash; title: ;">patch -p1 -i 99line.patch controller.php</pre>
<p><strong>Update 2</strong>:<br />
If you would like to promote the development of this extension and make a contribution, please go to the <a href="http://ankitahuja.com/front-end-editor">project page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankitahuja.com/blog/development/installing-the-front-end-editor-extension-on-joomla-1-5/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
	</channel>
</rss>

