Installing the Front End Editor extension on Joomla 1.5
Many of you already know that I created the “Front End Editor” aka “Enhanced Front End Editing” 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.
You can download the extension from JED.
Installation
- Install ‘com_frontendeditor’, ‘plg_frontendeditor’ and ‘plg_articleeditor’ from here.
- Enable the plugins “System – Frontend Editor” and “Content – Frontend Article Editor”.
- Go to “Components->Enhanced Frontend Editor” at the backend and click on “Apply Changes”. You can modify the settings there to suit your template and needs.
Hacks ( applied when you click on “Apply Changes”)
- Adds the module chrome “modChromefreditor” to the “html/modules.php” file of the current template. Before doing this, it creates a backup file ‘html/modules.php.backup’.
- After creating a backup of “index.php” as “index.php.backup”, it modifies the following statements in the “index.php” of the current template:
- All the jdoc statements get the style “freditor”. Eg.:
<jdoc:include type="modules" name="top">
gets changed into
<jdoc:include type="modules" name="top" style="freditor" /> - Surrounds the jdoc statements with a DIV that has class in the format
frpos.position-name
Eg.:
<jdoc:include type="modules" name="user3" style=" freditor" >gets changed into
- All the jdoc statements get the style “freditor”. Eg.:
- Replaces the existing “/html/com_content/article/form.php” file with a custom “form.php” ( after creating a backup file i.e. “form.php.backup”)
The backup files are created so that you can undo the changes anytime by clicking on “Revert Changes”. You would probably want to revert the hack if you choose to uninstall the extension.
You’ll also need to apply the hack separately for each template you want to use.
Dependencies & Limitations
- Mootools 1.2
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. - Menu-item title editing
The menu-item titles must be enclosed in LI elements with the class in formatitem<menu-id>Eg.: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.
- Default article edit icons are hidden
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. - Selectors for article and page titles
If they are not the default, you can modify them in the admin so that editing of article and page titles works.
Future Versions
You can report any bugs here. 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.
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.
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 Contact page or send me an @reply on twitter.
Update:
This is a common recurring problem for version 0.3.7 of the extension. If you’re getting the following error:
Parse error: syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’
in your-install/administrator/components/com_frontendeditor/controller.php
on line 99
it means you’re probably using a version of PHP earlier than 5. Unfortunately, this piece of code only works in PHP 5. You’ll either need to update to PHP 5 or get the patch from here. You’ll need to apply the patch to your-install/administrator/components/com_frontendeditor/controller.php
In case you’re not familiar with applying a patch, you’ll have to execute the following command from the shell:
Update 2:
If you would like to promote the development of this extension and make a contribution, please go to the project page.

Hello,
this is a great idea for a component – perhaps the missing link for designers who want to build a site then hand the content management to their clients.
However it didnt work for me. At installation it failed installing the ‘com_frontendeditor’ with the following error ::
Warning: zip_entry_read() [function.zip-entry-read]: The bytes parameter must greater then zero in /home/xpgcomsa/public_html/libraries/joomla/filesystem/archive/zip.php on line 238
although it said it was a successful install so I continued installing and enabling the “System – Frontend Editor” and “Content – Frontend Article Editor”.
when I select “enhanced frontend editor” from the components editor I get the following error:
Parse error: syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in /home/xpgcomsa/public_html/administrator/components/com_frontendeditor/controller.php on line 99
Personally I think this is a killer tool and generally think most devs build tools for other devs – but when the bugs are ironed out (maybe v1.6) it will be in all versions!
thank
cheers Steve
Hi Steve
I think you tried to install the component via the URL, right?
Although, I tried to do the same and it worked perfectly for me, I will suggest you try uninstalling and then reinstalling the component. This time around, you can download the component from here and install it via XML file. See if that works.
Also, which version of PHP are you using? There is a piece of code that works only on PHP 5. Let me know and I’ll send over a patch.
Hi Ankit,
thanks for the reply. I am using:
Apache version 2.2.11 (Unix)
PHP version 5.2.9
MySQL version 5.0.81-community
I actually downloaded from where you sent me and the files appear exactly the same.
Also I see that the com_ file includes a _Macosx file ???
How do I do a XML install?
Do I unpack and reference the XML file in the installer field??
again thanks for your support a great product and good luck with your studies!
cheers Steve
Hi Again Ankit,
I just checked re XML install – in Joomla help – and I did a “upload package file” install.
ta Steve
Oh, the mac OS X file(s) must be there because when I created the separate packages I must’ve forgotten to get rid of the hidden files.
Anyways, did this work for you with the XML install (yes you unpack it and reference the XML manifest file)?
You can always drop me an email at ahuja DOT ankit AT gmail DOT com
The jsn_epic_free template covers the editor icon on the article. How can I change this?
Trying to use this on a rockettheme website (Nexus Template) and I can’t get the “Turn Editing On” link in the upper right hand corner to show. Is this based on the “module chrome” addition in the component that gets added to the template? Is there a way to change the position of this module if in deed it does get created by this component?
I can tell that this would be a WONDERFUL addition to any joomla site.
The “Turn Editing On” link is created using JavaScript. So, unfortunately there is no way that you can actually reposition that link. The module chrome is used to make the modules on the site editable i.e. give them the edit icons and make them draggable.
Is this extension otherwise working for you? Did you try to toggle editing by pressing ‘e’?
The version of this extension for 1.5 will always be a little if-fy with certain templates due to the mootools issue.
Thanks for such a quick response. I tried pressing ‘e’ after logging in and did not notice the editing functions appear/disappear as they do in your demo site. The basic Joomla front end editor icons stay enabled the entire time after logging in via the front end. However, I did notice that your editor seems to have taken place of the old one via the front end.
I have a feeling that this template might have some conflicts due to the javascript and such, but that is just a guess since I know little about it. I am just guessing the javascript of the RokNavMenu maybe gets in the way?
I just tried that same exact install on one of my other site that used a very basic template and everything worked except the ability to move modules around. I am going to assume this is a template issue and not anything to do with your product.
Yes, I just looked at a demo of the Nexus template and it is quite possible that the Javascript of the menu maybe causing conflicts.
As I mentioned earlier, this is a sad issue with this version of the extension. A lot of Joomla! templates use mootools based JS. I had to keep the future 1.6 version of Joomla! in mind and so there wasn’t really any other way to go about it other than using mootools 1.2. Unfortunately, mootools 1.1 and 1.2 have serious compatibility issues.
I am planning on creating a Wiki where people can list the templates with which this extension is working properly, not working properly or the changes that need to be made to make it work with a particular template.
Good idea?
Yeah that would be a great idea. I would agree to plan to aim this product towards 1.6 as most active Joomla users I would gather update fairly quickly to the new releases. This is the type of thing that would be great to build directly into a Joomla release, but is nice enough on its own. You did a great job on this regardless of me not being able to use it for my own personal use.
Hi,
just a post because I have the parse error too : syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in /home/xpgcomsa/public_html/administrator/components/com_frontendeditor/controller.php on line 99
… and my PHP version is the 4.4.9
Thanks for you help.
JM
Ah, this is a common problem. That piece of code only works in PHP 5. Please either update to PHP 5 or download the patch from here.
I’m going to update the blog post since this is a common recurring issue.
Hi,
I installed the 2 plugins and the component, activated the plugins and then tried to go to the component page but all i get is a blank screen.
Are there other dependencies with other plugins/ modules?
Best regards, Sacha
Hi,
I have installed the component and plugins and have added the chrome files and the content form (The modify button made the changes to my active template but did not create a backup file and did not create the form.php or modules.php files that were not already there).
I have also used the plugin to diasble mootools but find that the turn editing link only appears on certain pages, when it appears it seems to work OK.
These are all the dependencies and limitations I know of. I will add to the list anytime I get to know of any other dependency.
There is no reason that you should be getting a blank component page. Did you try installing the extension on a fresh Joomla! installation?
Hello,
I get this error on an article (only on one): Notice: Undefined index: Itemid in …/www/plugins/system/frontendeditor.php on line 185
The main problem is that I can’t edit modules (they are costum html modules. The one on the left on the homepage for example).
Also when I try revert changes it says that the backup file doesn’t exist.
Please let me know as it would be great if it worked!!
thanks in advance
Awesome extension! Thanks alot for your time!
There is one problem i cannot seem to get around — I am only able to edit the articles on the home page, as soon as I navigate to another page there is no more option to edit the articles. Any thoughts on why this may be happening?
Great extension! One question… I know that there are conflicts using this with other Javascript elements on a page. When I have email cloaking on and try to use the Front End Editor, I do not get directed to back to the page I am editing when I hit save. I just see a blank screen and any Javascript elements on the page including the email addresses. Any thoughts on how to get around this? I am reluctant to turn email cloaking off. Thanks so much!!!
Might be due to the JavaScript conflicts. Are you using some other JS on the other pages? I cannot be completely sure.
Thanks Stephanie for the appreciation!
I didn’t test this extension with email cloaking on…I will try it and get back to you. Btw, does the article/module get saved when that happens?
First, bravo for making this extension. I’m looking forward to trying it.
I’m having a serious problem. I uploaded the zip files above and they installed successfully. I’m able to get into the Enhanced Frontend Editing Manager. I think it is set up right but don’t see anything on my main page.
I had tried to use the demo- http://ankitahuja.com/playground/joomla/ to see how it was supposed to work. I signed in with the correct info, but I can’t see any type of edit button there at all. Do you know why that is?
I have been having the same problem with my site http://www.wewillrise.net. NO MATTER WHAT I DO, I can’t even set it up to post on the front end myself (Even before I uploaded the FEE extensions). This is driving me mad, can you give me some advice on what I’m doing wrong?
Looks like someone messed up the demo, it isn’t working for me either. I’ll fix the demo and let you know.
Are you using any mootools 1.1 based JavaScript on the main page of your site?That might be a reason why the extension might not be working with your site.
Do you mean that even before you installed FEE, the default front end editing doesn’t work on your site?
I’m sorry for the double post. I didn’t see it at first so I redid it because I thought it was a problem with my internet.
I’m not sure about Mootools. I use a Rocket Theme template and I have mod_rokslideshow, which is a slideshow type module that RT does. How do I know if I’m using Mootools?
Sorry, no, I couldn’t figure out how to use the front end editor before I uploaded FEE, but I may have been doing something wrong.
Almost all Rocket Theme templates use mootools 1.1 based JavaScript and that’s why many people using rockettheme templates are having problems using FEE. Try opening another page where there is no module like mod_rokslideshow visible…
This problem will be solved once Joomla! 1.6 comes out ( which uses moo1.2 ). There is also discussion on updating J! 1.5 to use moo1.2, http://www.alltogetherasawhole.org/profiles/blogs/should-joomla-15-be-upgraded
Btw, demo is now working. You can go over and try it out!
I see. I tried to disable the rokslideshow and tried another page but don’t see anything. I guess I’ll have to wait since I don’t know enough about 1.5 to try upgrading.
So do you know when J1.6 is to be released? Can you tell me how to set up my front end editor until I’m able to use FEE? Going to check the demo now. Thanks!
That is a fantastic extension and I’m looking forward to trying it. So let me come from another angle. I don’t know what I’m doing wrong with my front end editor. I had designated the users as frontend publishers, but is there something else I need to do? Since I’ll have to wait to use FEE, do you know of a tutorial or something that will explain how to use my default frontend editor for now? Can you give me a hint?
Also, is there any way to get email notifications when someone responds to my posts here? Thanks.
I’m having the exact same problem. I can’t get the article editor to work either! I am using a template created in Artisteer – could this be anything to do with it?
Perhaps you should try posting on the Joomla! forums? http://forum.joomla.org/ . I’m not sure what might be causing the problems.
You can check the “notify of follow up comments on this post” box to recieve email updates of any future comments on this post.
Hi,
I have a peculiar problem.. I cannot install the component on one of the site. And if I do a manual install [unzip n push all files in /tmp] i get the error: Please enter a package directory
Is there a way I can manually install the entire thing. not sure if there is some issue on my server
I am having the same problem as a couple of earlier users in that my default edit icons have all disappeared – as they should, but there are no edit icons showing at all anymore. I get the ‘turn editing on/off’ toggle but no option to edit any content items or modules anywhere save one exception which is the home page content. There is an edit icon on home page – but oddly, not on other menu items that display the exact same content page. Did anyone get anywhere with this problem. I have no modules on the pages showing anything but html.