Learning Joomla! Extension Development 92
Michael J. Ross writes "One of the most powerful and popular content management systems (CMSs) is Joomla, a superior derivative of Mambo. Out of the box, Joomla makes it relatively easy to build Web sites that allow collaborative editing of content, attractive styling via prebuilt templates, and many more features. A Joomla-based site can be further improved by adding custom modules, components, and other extensions to the CMS, without any modification to the core Joomla code. A resource that explains how to do this, is Learning Joomla! 1.5 Extension Development: Creating Modules, Components, and Plugins with PHP, by Joseph L. LeBlanc." Read on for the rest of Michael's review.
Learning Joomla! 1.5 Extension Development | |
author | Joseph L. LeBlanc |
pages | 176 |
publisher | Packt Publishing |
rating | 8 |
reviewer | Michael J. Ross |
ISBN | 1847191304 |
summary | A practical tutorial for creating Joomla! 1.5 extensions |
The book is put out by Packt Publishing, under the ISBNs 1847191304 and 978-1-847191-30-4. The publisher maintains a page on their site dedicated to the book, where visitors can read summaries of the chapters and the overall book, order the e-book version (in PDF format) at a discount, download the book's sample source code, read and submit errata and feedback, and download a sample chapter, namely, "Chapter 1: Joomla! Extension Development: An Overview" (also in PDF format). Note that, as of this writing, the errata and feedback do not have their own links, but are located on the page accessible via the link "Code download," which should be clarified.
The book's title page bills it as "A practical tutorial for creating your first Joomla! 1.5 extensions with PHP," and that is exactly what the book is. Rather than organizing the information in a cookbook style — which is quite popular in programming books nowadays — this particular one uses a narrative approach, in which the author illustrates the concepts by stepping the reader through an example project. He begins with a clean install of Joomla, without any of the sample data, and shows how to "build extensions to create, find, promote, and cross-link restaurant reviews."
The nine chapters of the book are organized in a logical manner, and in the order that the typical developer would go about extending a Joomla-based site: overview; Joomla's component structure and registration; backend and front-end development; module development; using the model-view-controller design pattern (MVC); creating plug-ins; adding configurability for the extensions that you have created; packaging the extension elements for use by other Joomla developers.
In explaining the key concepts and procedures for building custom extensions to a Joomla site, the author takes a methodical approach, with a healthy balance between exposition, sample code, and illustrative figures. The chapters read quickly, and the code changes from one section to the next are helpfully bolded. The chapter summaries, as with most programming books, add no value, and could be beneficially dropped, thereby saving space.
The author states in the first chapter that there are three types of extensions within Joomla: components, modules, and plug-ins. This could be confusing to anyone who has read the articles that help introduce Joomla to the new developer, and are contained in the sample data found in Joomla version 1.5. Those articles include one titled "Extensions," which lists two additional extension types — templates and languages — not considered such by LeBlanc. However, that article does not make clear as to why templates and languages should even be considered extensions, which seems counterintuitive at first glance.
The presentation of all of the material in LeBlanc's book is not perfect, but it is certainly more than adequate. It is unfortunate that the book does not have a lay-flat binding, which tends to be more of a problem with slender volumes such as this one (176 pages), since much thicker books have more weight to keep both sides down on the table at the same time when the book is open. All of the screenshots have a bit too much pixelation, which makes the smallest text within the screenshots more difficult to read. However, none of that text is unreadable. The book's text outside of the screenshots is quite easy to read, with a generously-sized font and a logical layout of each page's material. Almost every page has two horizontal lines, one at the top, and one at the bottom; they serve no purpose, and could be eliminated to save ink and space, as could the brackets around every page number. The same is true for the much larger and thicker brackets used to delineate warnings, notes, tips, and tricks. There were a few other very minor flaws in the book. For instance, in the information about the reviewer, "MySQL" is misspelled. In the Table of Contents, the "Available Toolbar Buttons" line appears to be one font size too small, and thus inconsistent with the other subsection heads. All of these weaknesses are of little consequence and could be fixed in the next edition.
Even if a reader initially had no interest in developing their own extensions to Joomla, this book could easily spark their interest, given that the book shows just how powerful those extensions can be, as well as how doable they are, by any competent programmer familiar with PHP and MySQL. In fact, even if the reader were to later decide that they had no interest in creating any extensions, they could still benefit from the book's discussion of how components are structured within Joomla — a more clear explanation than anything I have seen in the official Joomla documentation. Joomla may be an excellent CMS, but the documentation quality does not come close to the value of Joomla itself. That is why there is such a great need for books such as this one.
Although Learning Joomla! 1.5 Extension Development: Creating Modules, Components, and Plugins with PHP has some weaknesses — as do most if not all technical books nowadays — for any developer interested in getting the most out of Joomla by building custom extensions, LeBlanc's contribution should prove especially informative and useful.
Michael J. Ross is a Web developer, freelance writer, and the editor of PristinePlanet.com's free newsletter.
You can purchase Learning Joomla! 1.5 Extension Development from amazon.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
Ending your product name with an explanation point (Score:4, Funny)
Re:Ending your product name with an explanation po (Score:1, Funny)
Re:Ending your product name with an explanation po (Score:3, Funny)
Re:Ending your product name with an explanation po (Score:3, Interesting)
Re:Ending your product name with an explanation po (Score:5, Funny)
Re: (Score:1, Insightful)
Re:Ending your product name with an explanation po (Score:5, Informative)
Re:Ending your product name with an explanation po (Score:2, Informative)
Re: (Score:2)
Re: (Score:3, Funny)
Re:Ending your product name with an explanation po (Score:1)
Q: Why is starting in the Subject: line annoying? (Score:1)
Never used it myself. (Score:2)
Re:Never used it myself. (Score:5, Informative)
I've used Typo3, Joomla, and Drupal. I would say that Joomla is the easiest to set up and use, but it also less customizable (although it seems to have more e-commerce plugins than some of the others). If it does what you need it to, Joomla is great. I haven't used PHP-Nuke in years but my impression is that (again) Joomla is superior in ease of use and inferior in flexibility.
The CMS Matrix [cmsmatrix.org] has a summary of features (which can be compared against other CMS systems in its list).
Re: (Score:3, Informative)
Thanks for the link to the CMS Matrix site. I'd been looking for something like this.
Re: (Score:3, Informative)
I was going to play around with Joomla! and SMF, but the bridge had been discontinued.
Re: (Score:2)
Re: (Score:2, Informative)
Re: (Score:3, Informative)
Re: (Score:2)
I'm a pretty big fan of Drupal myself (the only thing I've got against it is I don't care for PHP much), but I've got to agree with you that the Drupal forum module, while basically functional, is really ugly.
I like SMF [simplemachines.org] for a forum app, and there is a pretty good SMF bridge Drupal module [vgb.org.ru] that handles user synchronization between the two, and gives you few nifty blocks for showing recent posts and other SMF information in Drupal sidebars. It's worked pretty well for me in a couple projects.
Re: (Score:1)
I've switched a couple of forums from PHPBB to SMF and haven't had many complaints from people using the site apart from the "it doesn't look like phpbb" type of complaint
Re:Never used it myself. (Score:4, Informative)
I haven't used Joomla!, but I'm absolutely in love with Drupal. It's very easy to administer (if you're at least a little tech-savvy) and has modules available for just about anything [drupal.org] you might ask of it.
For example, at my personal site [honeypot.net], I have a personalized home page [honeypot.net] with all the content I would normally have on iGoogle or My Yahoo!. If you were actually logged in as me, that page would also have my stock quotes and weather information.
I liked it well enough to convert most sites I host to it (and it has great support for virtual hosting) because I found that I was spending more time managing the management system than the content in my old setups, where Drupal just gets out of the way and makes it easy maintain. Again, I love it.
Oh, and there are plenty of nice themes floating around. I really don't like the ones that come with it any more than some of the other posts, but it's easy enough to drop in another.
Drupal (Score:2)
Basically, Joomla is easier to setup and add modules... but nowhere near as customizable or as extensible as Drupal. If you don't mind doing a little bit more l
OK, seriously. (Score:3, Funny)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Longhorn is a codename.
SAP and Oracle are company names, and products inherit from that.
Access makes sense. Think about it.
Vista, Silverlight, Excel, Delphi - OK maybe you have a point. Vista conjures up certain thoughts and feelings (or it is supposed to). Not sure about silverlight or Delphi (but wasn't there an oracle at the last one?
Re: (Score:3, Interesting)
"Excel" is a pun on "cell", as in a spreadsheet cell.
I'd used to think it was a clever name, but given that it invariably comes up in these "Why does every open-source project have such a stupid name?" "Oh yeah, what does 'Excel' have to do with spreadsheets?" arguments, the pun seems to be lost on pretty much everyone.
That said, one doesn't have insist that software be named something like "Content Management System" to agree that "Joomla!" is a
Re: (Score:3, Interesting)
Well if we are talking about product names...
Longhorn is a codename.
Point of trivia: the Longhorn Saloon and Grill is the name of the bar that used to be (or still is, haven't worked there in 18 years) at the base of Whistler [wikipedia.org] and Blackcomb [wikipedia.org]. The bar is right between the two mountains, so it's a pretty good pun... though it implies that Vista was conceived and coded under the influence.
Anyway, give me goofy names like drupal or dabbledb over iNames like iWork, iLife, iLose, Pages, Numbers, etc. (non-troll disclaimer: iUse all of the above).
Re: (Score:1)
Re: (Score:2)
Sort of: the company that originally produced the Oracle RDBMS was named "Software Development Laboratories", and then "Relational Software", before ultimately renaming itself after its flagship product.
Re: (Score:2)
"SAP and Oracle are company names, and products inherit from that." Actually Oracle was the product name the company changed it's name to that of it's flagship product. It is a Greek mythology reference so I put that high up on the geek scale.
Access is just annoying since it is the second Microsoft product to use that name. The first was a terminal emulator.
And yes there was an Oracle at Delphi.
Re: (Score:2)
-> Silverlight
That's a very visual name so to speak, inspiring thoughts of majesty and beuty, isn't silverlight a visually oriented tech?
-> Oracle
Hmm, getting information. Nope, don't see what that has to do with oracles...
-> Access
Data accession, and access... Nope, don't see a pater there either
-> SAP
That's an acronym:
SAP [wikipedia.org]
Re: (Score:2)
That's a very visual name so to speak, inspiring thoughts of majesty and beuty, isn't silverlight a visually oriented tech? "
Please it sounds like an super hero. "Hey Sliverlight you and Yellowjacket go cover the bank while Dr. Magic and I take care of the super tanker."
"-> Oracle
Hmm, getting information. Nope, don't see what that has to do with oracles..."
Greek mytholgy reference? Yea that isn't geeky.
"-> Access
Data accession, and access... Nope, don't see a pater there either".
Yea
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Are "Ubuntu" and "Vista" and "Fedora" any better?
Re:OK, seriously. (Score:4, Informative)
As for the exclamation mark, well I have no idea!
Re: (Score:2)
-E
Re: (Score:2, Funny)
Re: (Score:2)
Re: (Score:2)
Re: (Score:3, Insightful)
Aw, come on, do you have a dog? If so, what did you name him (or her)? "Dog?"
I feel sorry for your kids.
"Hi there, little girl, what's your name?"
"Daughter."
If you owned an automobile company, we'd be driving Cars that come in imaginative models like the Red Car and the Gray Car.
Point is, hardly anything is simply given a descriptive name of what it is. It's boooring. These days in the age of "Cingular" and "Accenture" [rpi.edu], it's the rare exception that they are. Good or bad, it's the way it is.
Re: (Score:2)
"Hi, we're the JOHNSONS....WHAT'S HIS NAME?"
"Ball sniffer."
Cutefulness vs. Usefulness (Score:3, Interesting)
Case in point, we have a product named "Joomla". The Joomla administration has links to sections ambigously titled "Modules" and "Components". What's the difference between the two? Don't they refer to the same thing? And "mambots"--need I say more?
Re: (Score:1)
don't forget the idiot mascots (Score:1)
Re: (Score:1)
Vulnerabilties for all. (Score:2)
I.E.
Makes it relatively easy to put together a website that allows lots of attackers to inject their data into the system, exploiting vulnerabilities you are completely unaware of, embedded in the guts of a multi megabyte codebase you downloaded and threw into cgi-bin.
Re: (Score:1)
Re: (Score:2)
Re: (Score:1)
Who hasn't? I'd dare to say you're less likely to get SQL injections on a Rails app than on a Joomla installation, though. Rails is also pretty young. Perhaps it'd be equally common for rails app to get injected if you saw Rails apps as often as you saw Joomla installations, though. And, of course, a not-so-advanced rails developer might think that this - SomeModel.find(:all, :conditions => "foo = #{params[:bar]}") - is a good idea, and screw every effort the Rails framework made to prevent injections.
Re: (Score:2)
I came in here to post similar snark, however parent did it way better than I ever could.
I get approached by "developers" wanting to put Joomla on my server periodically.
I always tell them "until the fundamental security flaws of PHP and CMS in general are fixed, that crap is not getting put on a web server I am responsible for running".
All those technologies just hide the security responsibilities, or shove them off on some poor server admin when the "developer" in question is too ignorant to deal wit
Re: (Score:2)
Which security flaws are these?
Re: (Score:2)
Search "PHP security" for several sites that lay it out in detail, including the "Month of PHP bugs blog". Same with Joomla, people wondering about the lack of easy security in the product are not hard to find.
Joomla! version list had "criti
Re: (Score:2)
http://developers.slashdot.org/article.pl?sid=06/
Re: (Score:1)
Wow, I would so not hire you to run my web servers
Drupal (Score:3, Informative)
Over the security mailing list, I haven't seen an SQL injection attack in as long a I can remember. Lately, it's all been XSS. Anyhow, they're good about getting the word out to Drupal admins whenever anything is discovered in Drupal core or contributed modules.
Joomla probably has something similar, but I don't know about su
Re: (Score:2)
Re: (Score:3, Informative)
Yes, I've done my share of PHP. It can go in cgi-bin as much as it can go anywhere else.
If computer security is your profession (as it is mine) then you might be aware that a not uncommon technique is to configure the web server to disallow the execution of any code, including PHP, outside of a specific place such as cgi-bin. Thus reducing the attackable footprint.
EXCUSE ME! CMS IS RESERVED FOR VM/CMS! (Score:3, Funny)
CMS is part of VM/370 AKA VM/CMS
PLEASE DO NOT use this term for your crummy microcomputer "products".
TIA.
Re: (Score:1)
Re: (Score:1)
Lord Baltimore someone else has heard of Centers for Medicare and Medicaid Services (CMS)! NPI! :)
Re: (Score:1)
Level of detail (Score:2)
These are problems, but jeez -- why mention them in a book review? And he left out whether or not the colors in the logo were 100% ac
Powerful! Popular! Superior! (Score:3, Insightful)
I mean, it's great that the reviewer has found their soulmate and everything, but I'm having a hard time expecting much in the way of objectivity from this review...
Re: (Score:2)
Re: (Score:2)
Saving space? (Score:1)
Your review could be beneficially dropped, thereby saving space.
I'm the guy who writes those chapter summaries, you insensitive clod!
Re:Saving space? (Score:5, Funny)
Re: (Score:1)
Touché.
You are so right (Score:5, Funny)
Oh, completely. I started writing i18n add-ons for Zope and Plone the same way. I was on the BART train, heading to Oakland to catch an A's game, and I wanted something to read, so I looked under the seat and the Zope book was there. I had absolutely no interest in Python-based content management systems -- seriously, I didn't even have a Web site -- but I scraped the gum off the front cover and started reading anyway, and after a few stops I was hooked. I ended up taking the book into the Coliseum with me and had my first ZPT code written before the 4th inning.
Re:You are so right (Score:5, Funny)
Re: (Score:2)
Re: (Score:1)
Reminds me of that scene in "Blazing Saddles" in the town meeting where everyone agrees with the preceeding spe
If its so popular... (Score:2)
Re: (Score:1)
fatally flawed (Score:3, Insightful)
Very happy with Drupal now. The default install is bare-bones, by design, but you can duplicate all the Joomla functionality with a few of the modules on drupal.org and you're up and running, without the absurd restrictions, underpowered plugin hooks (something like nine in 1.x?) and godawful ugly outputted code.
What the hell... (Score:1)
Re: (Score:2)
Framework fatigue (Score:2)
Spring, Struts, Ruby on Rails, AJAX, JavaServer Faces and on and on. I'm starting to feel framework fatigue. Yet another book, on yet another framework. Before you've even mastered the current frameworks, there's another one. Sorry, I'm suffering from framework fatigue.
Re: (Score:1)