It’s been a while since I last posted about my progress on the first milestone of my project, i.e. editing of titles at the frontend. The last week has pretty much been about bug-fixes, adding new features ( like editing of page titles, a more cleaner UI, etc. ) and testing everything against a number of templates. After testing it against about a dozen or more templates, I finally feel it’s ready for you guys to give it a go ;)

You will have to manually install the extensions via their XML files as this consists of one component and two plugins.

Once you download the archive, please make sure you do the following to get everything working:

  1. Install the component “FrontEnd Editor”.

  2. Install the system plugin “Frontend Editor” and enable it.

  3. Install the content plugin “Frontend Article Editor” and enable it.

  4. For editing module titles, you will need to perform a small hack:

Copy the chrome file ‘/module_chrome/modules.php' from the archive to 'your-joomla-directory/templates/your-template/html/' if it doesn’t already exist. If it already exists, copy the module chrome ‘modChromeeditor’ in the file to the existing ‘modules.php’ file of your template.

Next, in ‘your-joomla-directory/templates/your-template-name/index.php’, add ‘style=editor’ to wherever the modules are included. Eg:

jdoc:include type="modules" name="user3" style="editor"

and if a style already exists, then:

jdoc:include type="modules" name="left" style="rounded editor"

If you do all of the above, you should be able to edit module, menu-item, article & page titles.

However, there are certain restrictions at the moment ( a bit developer oriented :| ), which you should know of. They might interfere with certain templates which might not allow you to edit some titles.

  • Menu-item title editing: If the template is overriding the layout of mod_mainmenu,  the menus should be contained in the ‘.menu’ class and each li element should have ‘item’ in it’s class attribute ( as in default layout of mod_mainmenu)

  • Article Editing: The article title should be contained in an element with class ‘contentheading’ ( as in default layout of com_content )

  • Page title editing: Should be contained in element with class ‘componentheading’ ( as in default layout of com_content )

I’m going to try and restrict the limitations as much as possible. Also, it has few bugs in IE at the moment and doesn't work in it. So please try this in any other browser.

This is pretty much a beta release of this feature. However, I will still be tweaking things around for a few days. I will love to know your views and get your feedback! Also, you can report back any bugs or inconsistencies to me at the forum thread.

You can always hop on to the demo at http://ankitahuja.com/playground/joomla to take a sneak peak at what’s cooking :) I changed the template in case you got bored of the good ol’ rhuk_milkyway.

If you are the developer kind, you can directly keep track of my progress by checking out my code via SVN:

svn checkout "http://labs.joomla.org/svn/labs/playground/people/ankit"