I’d been looking at easy CMS systems and was turned off by the steep learning curves untile I came across Website Baker. It lacks the flexibility of most of the more powerful cousins, but more than makes up for it in simplicity. And simple is what you want for a simple, low-traffic site.
The app looks pretty cool, but some of the UI is not very repsonsive, so I decided to fix my major peeves with it. I’d been looking for some real project to use some of the Yahoo! UI Library components, and this was the perfect opportunity.
Adding JS functionality to an Existing App
Fixing up bad HTML
One problem I had to work around was the invalid HTML being generated for the CMS UI. Specifically, in the pages listing, WB uses non-unique element IDs (both an UL and a LI use the same Id “p1”, for example). I fixed that by replacing the duplicates with unique IDs generated by the script. I also had to add IDs to some elements (TRs) to be able to access them in my script.
Another problem on the same page was that the nested list was malformed and contained ULs as childring of other ULs (rather than as children of an LI). Interestingly, some — but not all — browser I tested on automatically moved the bad ULs inside the IL element they belonged to. So I had to pre-process the page to make sure the ULs were being parented by LIs.
Using the Yahoo! User Interface Library
The YUI is very nice and works quite well. For this project, I used the Dom, Event, Connection Manager and Drag and Drop scripts. I did come across an issue with Drag and Drop where a drag seems to get started while another one is still in progress, but I think I worked around it. All the APIs are very clean and easy to use.
Hmmmm. I hope that ends up somehow making me money by improving BBX. ;-)Posted by: Yo Buddy on June 10, 2006 9:31 PM
I always like to practice new skills on other people’s apps before applying them to my own.
It’s amazing how much you can learn from your own (and other people’s mistakes).
:-)Posted by: stepan on June 12, 2006 7:59 AM
What’s BBX?Posted by: Bad Baker on June 15, 2006 7:46 AM