The Views module can be broken down into three main parts: the query builder, the display builder and the user interface. Usually, we use the interface to control the other two parts, but sometimes situations call for query and display logic that the interface cannot provide.
A good introduction to dynamic views is the function views_embed_view(). [...]
Continue Reading...
Next post
Previous post
There are a lot of things to consider when making the decision to go with Drupal 7 or Drupal 6. I will provide some general advice, but many factors will be specific to your project. So my first piece of advice is to do a lot of research on what modules are available. This means [...]
Continue Reading...
Next post
Previous post
Just got through an epic struggle with Xdebug. It ended in victory! Some one had demonstrated this software at the last Ann Arbor Drupal Users Group meeting and it looked sweet. Xdebug provides a standard set of debugging features, like breakpoints, watch expressions, step into/through/over/out, etc. It integrates well with Netbeans and one of my co-workers [...]
Continue Reading...
Next post
Previous post
Recently I had to build this. It’s a simple little app that uses the forms API. Think w3schools.com “try it yourself.”
function sg_games_menu(){
$items[‘html-sandbox’] = array(
‘title’ => t(‘HTML sandbox’),
‘page callback’ => ‘sg_games_html’,
‘access arguments’ => array(‘access [...]
Continue Reading...
Next post
Previous post
Recently, I needed to do some statistical tests on data from within a Drupal Module. Having found no PHP libraries suitable for the task, I decided to try and run code in R from within PHP. This post helped out a great deal.
As far as I can tell, the only way to do this is [...]
Continue Reading...
Next post
Previous post
User interface:
Drupal’s user interface has a steeper learning curve than that of WordPress. Users of WordPress are mostly bloggers, so the interface emphasizes a small set of the things bloggers need to do most frequently, like writing new posts, editing/deleting old posts and viewing statistics. The dashboard aggregates these high-use panels as a default landing [...]
Continue Reading...
Next post
Previous post