Test & preview - a better solution
Recently whilst visiting a client they were moaning about the lack of true content preview in joomla.
There are plenty of tricks you can employ to preview content in hidden categories etc but its still not the same as previewing the content exactly where it will appear.
The same is also true when adding a new component or plugin to a live site. Will it work properly in the site configuration, what will it look like, will it needed styling to match the site etc and all in an environment where the casual site visitor will not see it.
In the past I have typically maintained two versions of a site, one live and one private, so that I can test and evaluate on the private site first.
But of course this means that I will have to the repeat all the setup and content creation on the live site manually once I am satisfied. Not only is this a waste of time but it allows user error to creep in.
For the first time the client had really stumped me and I couldn't propose a simple solution.
I like simple solutions!!!!
Travelling on the train home, I got to thinking and realised that what was needed was a one click method to move all the updates from the private site to the live site.
The biggest issues would be how to cope with content being created on two sites at once, live and private, and how to deal with conflicts.
On a fairly simple, non-interactive site, where there is no end user content creation this should not be too difficult but on a web 2.0 site, oh boy!! Methods such as simply copying all the files and the database from the preview to the live site were just not going to work.
Life is never simple!
As I regularly repeat "I am not a programmer" so even if I have the idea and can write the specification that is all it's only ever going to be, an idea on paper. Unless I can convince another developer to write the code nothing is going to happen.
(This is a great reason to maintain friendly relationships with good extension developers. They are often looking for new ideas and if your idea tickles their fancy you might even get the development work done for free.)
So by the time I got off the train at my final destination I had filled several pages in my notebook with ideas, problems and solutions. My intention was to sit down with a large steaming cup of strong black coffee and condense all my notes into a more solid specification before showing it to a few developers.
But before I did that I thought I would give the joomla extensions directory
a quick double check to make sure I hadn't missed an extension that would do exactly this. (I like to pride myself on having a very good memory, mainly for useful facts, and I was fairly sure that nothing existed)
My first few searches produced nothing but as can be so often the case one final search with a different term produced a shocking answer there was a component that did what I wanted. The developer had even considered and addressed all the various issues I had scribbled in my notepad.
Fearing that I must have missed something obvious I asked my usual crowd of fellow joomla users (we're developers, designers, trainers, authors) and no one had come across this component.
I wonder how we had all missed it?
Replication
Replication can, as the name suggests, replicate the web site (the file, folder) and/or database. In effect it allows you to create both a pre-production and production site on a server so you can mirror one to another.
The French developer appears to have considered all possibilities and there are numerous options to exclude tables and directories from the replication.
The component is really just a joomla front end to the "rsync" linux programme that should be installed on all servers. (Note that whilst all the shared hosts I have access to allow you to use rsync some hosts may not)
I'm no going to waste any more of your time describing it's functions the best thing to do is to hop over to http://composant.gires.net
grab your own copy and give it a whirl.
Make sure you make a good backup first!!
This is a very powerful component and with power comes danger if you're not careful.
Guido Jansen - regenerate
Name
Officially: Guillaume Xavier Jansen (but please just call me Guido :))
On-Line name (Skype:Twitter:Joomla forums)
skype: dutchopensource
twitter: gxjansen
joomla forums: regenerate
Website
http://www.guidojansen.nl
, http://www.dutchopensource.org


Location
Utrecht, The Netherlands
Job
I have my own company (Dutch Open Source) in providing research and consultancy services around open source webapplications.
If I weren't talking to you right now I'd be ...
At the moment I'm quite busy on organizing the Dutch Joomladays (www.joomladays.nl) and working on a great project integrating Magento (an open source e-commerce platform) into Joomla, creating possibilities never seen before within open source webapplications. Take a look at www.yireo.com for more information.
I wish people would take more notice of ...
using open source! Really, it's not that hard..
A phrase I use far too often is ...
I should be sleeping...
The most suprising thing that has happened to me is ...
I'm not easily surprised
I'm good at ...
working late
I'm very bad at ...
waking up
The ideal night out is ...
...one with my closest friends, starting of with playing some poker or pool and then going for a dance in a club.
The best age to be is ...
The one I am right now (didn't I say that last year too...?)
What did you dream of becoming as a child?
What, you're telling me I'm not a dreaming child anymore? Crap... :(
My philosophy on life is ...
- that you should always try to improve yourself (whatever that may be),
- that you should help others and
- that you don't enforce your opinion on others (the latter is kind of my grudge against (any) religion).
How did you get involved in Joomla?
Well I needed something to replace a simple, custom made website/ blog somewhere back in 2003. I tried several systems until I met Mambo. I've been using it ever since (well, I did 'switch' tot Joomla of course). In 2005 I founded a Dutch community for the product and the website became very populair in a short time providing the local community with it own news, translations and forum support. I've been involved with the local Joomladays and this year I'm the main organizer for the event.
I am involved in Joomla because ....
...I love being part of the open source ecosystem and contributing to it.
What one feature would you like to see in Joomla?
I really can't make a choice between an advanced ACL and a replacement of the current sections/categories system (tagging!)... Joomla will need both (fast) if it wants to stay on top of it's competitors.
What is the first extension you install in Joomla?
JCE
. Not really any competition here is there...?
Complete the sentance "Joomla rocks the world because ..."
.... of its huge community that supplies us with great support, extensions and all those other other additional resources"
