Archive for the 'Typo3' Category

I am so killing trees this year

Friday, February 26th, 2010

I am officially working on my first dead-tree book. I know I technically spilled the beans on Twitter at the end of last week, but this is my official announcement. I was approached by Packt publishing a couple weeks ago to see if I would be interested in writing a book on building and pimping out (not their words) templates in TYPO3. I decided that I’ll never know how little sleep I can live on until I really push it and accepted the challenge. So, over the next six months, I will be writing, screaming, crying, and having at least a couple breakdowns just so I can officially say that I’m a published author. I can only imagine that as a published author I’ll be able to raise my hourly rates, fly first class, smoke a pipe with gusto, and generally live a life of leisure and self-imposed solitude. I haven’t decided who’s going to play me in the movie, yet, but I’m leaning towards Lyle Lovett or a very disgruntled Randy Newman.

How does this affect this blog that I’ve been trying to write in more consistently? Well, I’m forcing myself to write an extra hour a night, and at least every once in a while that has to mean something other than “the book”. In fact, in the interest of writing a clear instructional book, I will be channeling 90% of my snarkiness, obscure cultural references, and general temperament toward outlets like this and the occasional telemarketer. The remaining 10% will probably make it into the book in a much more palatable dosage. On the side of helpful effects, though, this will give me more experience writing genuinely instructive articles. I’m already planning on blogging my process a little for those who haven’t already read the thousands of blog articles covering the same topic (I promise, I’ll offer something different…  like what word processor and meth dealers I use for late night working).

Book Review: TYPO3 4.3 Multimedia Cookbook

Friday, February 19th, 2010

Typo 4.3 Multimedia CookbookSince Packt successfully owns the English-language market on TYPO3 books, I’ve defaulted to buying about a half-dozen of their books over the years. In fact, I’ve talked to them about my own book that could one day be announced. I’ve had some mixed results with their books at times (non-native English can be scary), but I was still a little giddy when they contacted me and asked if I would write a review for their newest book, TYPO3 4.3 Multimedia Cookbook by Dan Osipov. I mean, I like TYPO3, multimedia, and writing content for my site. Score! So, it got here yesterday, I dutifully read it, and I can definitely say, “yeah, it’s a cookbook.” That’s not good or bad, it just is. If you aren’t going to read this whole review or are already bored with me, here’s the snapshot review: If you have written some extensions and just need a bunch of “recipes” for integration with audio, video, Flickr, S3, and YouTube, then it’s probably not a bad thing to have this on your shelf; if you want to learn the concepts behind the code, I’d check out TYPO3 Extension Development by Dmitry Dulepov.

Now that we’ve eliminated the lazy readers, let’s get down to business. TYPO3 4.3 Multimedia Cookbook is, like you would guess, essentially 200 pages of little extensions, TypoScript tips, and server hacks for sites with audio, video, images, and pretty much everything that’s not text. It says that it’s aimed at “anyone running or starting a website with multimedia” and recommends “prior knowledge of TYPO3”. That’s pretty vague, but it kind of sounds like everybody with a TYPO3 site to me.

In reality, I think the target they hit was a lot smaller. To actually understand what’s going on, you’re going to want some extensions under your belt. One of my only real problems with the book is that it’s supposed to be targeted at people with “prior knowledge of TYPO3”, and that sounds way too broad compared to who will actually get much out of it. Honestly, I would recommend having some real extensions (with actual PHP you’ve written) under your belt before attempting almost anything in the latter half of the book. If you’re only copying and pasting you can probably make it through without a lot of experience, but— hold on, I need my soapbox for this — you should never, never, never (and I mean never) be copying and pasting code that you don’t fully understand into a real site. If you buy this book thinking that it’s going to explain everything you need to know about API integration, you will either react as a good developer or a very bad developer. If you react like a good developer, you’ll be inspired by the power you can wield with a few tricks, spend some time getting caught up and understanding every command Dan uses, setup a test area, and come back to implement some of these later when you’re wiser. If you react very, very wrong, you’ll go ahead and start pasting code with very little explanation (unfortunately) into a site that you care about. That’s the end of my rant. I think they should have specified the target audience a little more judiciously, but we will all live another day.

Now that I’ve ranted, I’ll say that the rest of the book delivers for anybody with the right experience (or willingness to read other books for understanding). Like I said, it’s very spotty on when it decides to explain more about any subject, but you really can’t expect much more from a cookbook. The first chapter explains setting up a web server from scratch, multithreaded servers, and some concepts that would probably be best studied elsewhere, but the next half of the book really explains file management, editing in the RTE (rich text editor), and basic work with audio and video in good detail. Part of the dichotomy is that those chapters are well-written and complete, but anybody with the experience to read the last few chapters probably doesn’t need help adding images. For the experienced, though, the last few chapters provide some good code for S3, Flickr, YouTube, OpenOffice, services, automation, and even geolocation.

Overall, I’ll be happy to have it on my bookshelf. I will use it to help generate some ideas, grab the occasional snippet of code, and I’ll be happy. If that’s the book you need and you’ve hacked your way through some real TYPO3 extensions before, I’d probably recommend it. It’s “bookshelf candy” for me: not general enough for my desk, but specific enough be necessary when I need to reach for it. The price seems a little high for 200 pages; but remember that, like most cookbooks, you’re paying for the fact that it’s been collected and compiled. No single chunk is worth much more than a free Google search, but a whole collection is just plain handy. You can check it out on Packt’s website (I get no kickbacks).

New TYPO3 book on it’s way

Wednesday, February 10th, 2010

Typo 4.3 Multimedia Cookbook

Packt Publishing released a new TYPO3  book, TYPO3 4.3 Multimedia Cookbook, and it looks interesting. Dan Osipov, the author, is evidently on the team for the DAM (Digital Asset Management) TYPO3 extension, so I’m looking forward to it (even though I don’t use DAM anymore). I know I’ve already solved a lot of these problems for sites I’ve worked on, but I’m interested to see somebody else’s solutions. I’ll have to wait to until my review copy gets here to dive into it, but you can check out more information at Packt.com.

Magento and TYPO3

Tuesday, August 5th, 2008

There’s a new project on “the Forge” that’s connecting Magento and TYPO3, and you can see their progress here. I’m pretty excited, and it looks like we will probably end up switching to Magento in the future for the ministry. Now that they have “virtual products” working, I’m sure I’ll be able to get donations and downloads (our two highest priorities). I’ve spent the past couple weeks learning how to make better forms and checkout processes, and I’ve been slowly working on a new donation form for our FishCart installation that will use dojo library for validation and accordion-style layout collapsing (is that how you say it?). Anyway, this looks like good news for the TYPO3 sites out there that really have been wanting a good, powerful integrated store.

How to swap images in TYPO3 templates (great for internationalization)

Tuesday, June 24th, 2008

I was re-building the templates for a quick international website last week and wanted to swap the logos for the different languages. There are, of course, a plethora of manual ways to do this, but I cater to the lazy webmaster. I mean, isn’t laziness at least partially the point of using a CMS (and paying somebody an hourly rate to tweak the crap out of your templates)? This should have been easier (like five minutes), but either my searching skills suck or the final hack I did was not well-documented (it took fifteen minutes). Either way, I wanted to post instructions for using your Typoscript template to swap images in a TemplaVoila template you’re using (that’s right, you’re combining technologies… how Web 2.0 is that?). So, obviously you need to have a place in your HTML template to map a logo (or other image) to dynamically. I used a div tag. That took 3 seconds, and I’m pretty sure you know how to do that if you’re building a template for TemplaVoila to begin with. Next, I put the following XML into the TemplaVoila Data Structure to create a TypoScriptObject:
<field_logo type="array">
<tx_templavoila type="array">
<title>Logo</title>
<description>map to logo</description>
<sample_data type="array">
<numIndex index="0">(logo)</numIndex>
</sample_data>
<eType>TypoScriptObject</eType>
<TypoScriptObjPath>lib.logo</TypoScriptObjPath>
</tx_templavoila>
</field_logo>

Then, at the beginning of the Template Setup for the website, I just added these two little lines to fill in a default image:
lib.logo = IMAGE
lib.logo.file = fileadmin/template/june_2008/images/logo.jpg

Then, the last (still really easy step) was to add the following line to my language setup in the Template Setup under the non-default languages:
lib.logo.file = fileadmin/template/june_2008/images/logo_es.jpg
You can see this line in context where it will replace the logo image when somebody loads the Spanish language:
#Setting up spanish language:
[globalVar = GP:L=1]
config {
sys_language_uid = 1
language = es
}
lib.logo.file = fileadmin/template/june_2008/images/logo_es.jpg

If you want to see this in action, you can just go to FulfillingDestiny.com in English or Spanish (or just go to the page and switch languages when you’re there, obviously).