April 1st, 2009

Introducing pkMediaPlugin (no foolin')

Hey pkMediaPlugin! I see you hiding back there behind your big brother, pkContextCMSPlugin. Come on out and show yourself.

Let's choose an image to use as a logo.

We don't have any media in here yet, so let's add some.

I feel like uploading four images as I have an idea for the other three as well.

Yep, that's the right one. Let's save it and...

... Choose it for the logo slot.

There it is automatically cropped and scaled to fit the size we chose for this layout. (Gee, I bet a real logo would look better here. You get the idea.)

Let's add a slideshow slot to the page.

I'll pick a few... they fade so I can tell I've done that...

Here they are. Drag them into the order I want and...

Here they are on the page (note the arrows; you can also click for the next image).

Navigated to the next.

Let's add a video to the page.

None in our repository yet. Even though we use YouTube for video hosting, the repository is still a convenient way to manage relevant videos. Let's add some.

We could paste in a YouTube URL but that would be painful. Let's use the integrated YouTube search instead.

Mrrowrrt.

Ready to go. We could also tag the kitty and add a description that explains its relevance to our site.

Now it's in the repository. Let's pick it for our page...

There we go.

A note to geeks: our pkMediaPlugin Symfony plugin is available today on the Symfony plugins site. We strongly recommend installing it together with pkContextCMSPlugin via the cmstest project, as explained in the pkContextCMS README (aka full fledged manual). Installing this stuff with pear or from tarfiles is a lot more work and leads to needless chasing-down of dependencies.

Check out another article
March 27th, 2009
Make That Scrilla
March 26th, 2009
IDES 322: Forming & Storming
By