Once upon a time there was a project that needed the functionality of Drupal, but had to be made with Wordpress. Before going into detail: yes … there is a happy ending to this story. The project in question and Wordpress lived happily ever after.

What does Drupal have over Wordpress?

Custom fields and content types, thats it! With those 2 extra options you can do a lot of fancy stuff.

Pods

Pods lets you create, manage, and display custom content types using WordPress. Like Drupal CCK, these content types can relate to one another, allowing for sites packed with interconnectedness. Automatic pagination, filtering, public forms, access control, menu editing and more are possible with the Pods CMS plugin.

Here’s a basic overview of the features:

With this plugin for Wordpress you can do stuff like you would do in Drupal, but in the Wordpress way of working. Everything is in one place, you don’t have to change options on several locations like you have to  in Drupal for instance.

You can relate content

For our project we needed images, videos and mp3s for each content type. So I made all those content types, and later on I made a new content type which allows me to pick those images, videos and mp3s. That is called Pod-relationship.

Templating system

You can specify what the list view or detail view should look like by typing the HTML directly in the list view or detail view field. O wait, that’s not all … You can easily bypass all those built-in templating systems by specifying each field and the value you want to show on the page.

Helpers

A display helper’s purpose is to modify a column’s value before outputting it to the user.

In our case, we needed the date of the event to be translated into Dutch. The days of the week had to be spelled completely, as well as the months. That’s where helpers come in.
Helpers are snippets of PHP-code. You can add those helpers to your field value and Pods will take care of parsing the code.

Also because at Nascom we want to go for correct XHTML (The intern wysiwyg editor still needs to be fixed to output correct code), we needed the embedded youtube movies code to be transformed into correct crossbrowser XHTML code. I simply made a helper to do that.

Search

That was the difficult part I must admit, because that is one thing the developers of Pods haven’t done yet, or haven’t thought about. The standard Wordpress search doesn’t search in the Pod database.
Hacking into the core of Wordpress is of course not an option (if you update your Wordpress, hacks are bye bye)

Together with a colleague we found a way to use the Pod system itself to perform the search functionality. This means that if you are planning a Pod site, you don’t need the Wordpress search anymore.

Ever dreamed about doing this kind of stuff with Wordpress? Now you can!

Written on April 30th, 2009 at 15:30 in Blog, Technology
Avatar of Mark
Written by
Mark

Line
Comments

Fijne tip, Mark! Bedankt! Ik vroeg mij al af of er zoiets niet bestond.

O ja, gezien dat je me al voor was met de vraag om de nederlandse vertaling te doen ;-)

Written on May 4th, 2009 at 14:51
Avatar of Matthias
Written by

Line

Great post, Mark.

If you have some time, maybe you could create a tutorial of some of the things you’ve done for the Festival site. Specifically, people would benefit from seeing how the template system or helpers are used. Keep up the good work!

Written on May 5th, 2009 at 21:00
Avatar of Matt
Written by

Line

Great job! I agree with Matt, you’ve done some great stuff with the Gergiev Festival site!

Written on May 14th, 2009 at 15:48
Avatar of Scott Kingsley Clark

Line

Thanks for the positive feedback. @ Matt: I’m working on that tutorial. :)

Written on May 14th, 2009 at 16:21
Avatar of Mark
Written by

Line

Would you mind sharing with us how you managed to perform the search functionality within pods?

Thanks a lot!

Written on October 6th, 2009 at 5:10
Avatar of Andres
Written by

Line

[...] avoir cherché la solution pour intégrer les contenu pods dans la recherche, je suis tombé sur ce message qui ‘a dissuadé d’utiliser pods pour des projets complexes Search : That was the difficult [...]

Written on November 8th, 2009 at 15:25
Avatar of 31 DESIGN, Studio Web, Paris » Gestion avancée de contenu dans WordPress

Line

I, also, would love to hear how you overcame the lack of search functionality for Pods.

Written on January 22nd, 2010 at 23:18
Avatar of Jeff Byrnes
Written by

Line

This was great. Thanks

Like the others reading this post, I would also like to know how you resolved the search issue. You may not realise how much of a hero you would be!

Written on January 23rd, 2010 at 13:57
Avatar of cathy
Written by

Line

use pods system to make search work, build a query that performs a search to all off the pods specified content type’s.
On a normal site there would be no performance issue, on a big site however …

Written on January 24th, 2010 at 15:05
Avatar of Mark
Written by

Line
Share your thoughts: