Drupal
In spite of our undying affection for both Drupal and WordPress, we recognize that there are situations in which one is better suited than the other.
We split our time roughly in half between the two platforms, and our experience in so many different fields has given us a deep understanding of the benefits and drawbacks of both.
This article goes in-depth, but it should help anyone decide whether WordPress or Drupal is better for their needs.
Let's quickly introduce the two contestants before delving into the meat of the comparison. They are both CMSes, or content management systems.
As the name suggests, this means that they provide you with a means to host your own website, where you can then create and administer all of the content yourself.
I recently setup a products feed from Drupal 7 to Google Merchant Center, and it took quite a bit of work. I am expecting it to be worth the effort. Maybe it will not be right now, but in the future. I decided to go with xml because it was the simplest to me, and I am not a spreadsheet guy.
I have done a lot of Drupal theming with Omega 3, and I have been trying to figure out a way to have my themes look good after an install without much customization. Also, I want my features to come themed, such as some views, or slideshows, etc. Then I realized someone has already done this. Its called Bootstrap 3. I love the way the grid works, to me it is better then the Omega grid. I often had trouble trying to put grids inside of grids and so on, but with Bootstrap it is a peice of cake. Also, the documentation for Bootstrap is really good. So if I want to make a change with a Bootstrap site, I go look at the documentation first and usually there is a class made for that already. I have a few features, and before, I would install them, then theme them. This doesn't make sense to do this, but I was so inconsistent with my different themes there was no way to have them look good out of the box. Now, I can add Bootstrap classes to them and I know they are going to look good.
So I'm not great at PHP. I don't really understand Drupal hooks all that well, but I have been wanting to work on a module for a while now. So I took on the project of making a module that connects drupal with TeamworkPM, which is our task management system we use.
My files are teamwork.info, teamwork.module, teamwork.rules.inc, and teamwork.install. I am going to show how I set up the admin settings in this blog
Admin Settings Form
Originally i was using drupal's admin form system_settings_form for the settings, whcih was easy to set up, and used set_variable for the API key and the Company name which I can than grab using get_variable. I had to change this later though, because I wanted each user to be able to enter their own API key and Company name. So I had to add a table in the database, then populate that table with the form values using db_insert. I can then grab those values using db_query. Here is my code:
- 1 of 8
- next ›