Thursday, December 9, 2010

Drupal For Facebook Application Recipes

Building Facebook Applications can be a complicated process. We couldn't possibly write a one-size-fits-all description of how to configure all apps. So, in this section we describe a few commonly-required features and how to implement them with Drupal for Facebook.

Begin with the general installation and setup. Then, follow the instructions here to implement additional features.

Note: In general, if you plan on creating any kind of Facebook application (which we assume you are!), you must enable the fb_app.module (listed as Drupal for Facebook Applications in /sites/all/modules) and fb_user.module (Drupal for Facebook User Management).

To support applications beyond simple social plugins, you must enable clean URLs by going to admin/settings/clean-urls on your site. If you don't, some links that Drupal creates will not work properly on FB Application (canvas) pages.

To support Drupal websites integrating FB features (FB Connect), enable the fb_connect.module.

To support FB Application (Canvas) pages, enable the fb_canvas.module.

For more information about Drupal Development, Drupal Expert, Drupal Developer and Drupal Programmer visit at http://www.dckap.com

Source: http://drupal.org/node/932690

Wednesday, December 8, 2010

Using Drupal Creating patches with Eclipse

Please review this useful article at http://docs.moodle.org/en/Development:Setting_up_Eclipse that includes instructions on creating a cvs patch while in Eclipse. It says:

Creating a patch

In the synchronise view, right click on an item (file or folder) and choose Create Patch.... Or in the navigator, right click on an item and choose Team -> Create Patch....

This brings up a two-page wizard. On the first page you can select where you want the patch made. For small patches it can be useful to create them on the clipboard, but normally you will want to save them in a file.

On the second page, use Unified diff format, and set the patch root most likely to your (Eclipse) project -- assuming you set up your Eclipse projects by core installs (6.18, 6.19, etc) and contrib/custom modules.

If you are creating a patch to post to an issue queue, it is common practice to name your patch file with the node id of the issue along with a word or two for context. This make it much easier to refer back to the issue after the patch has been applied.

There is a corresponding apply patch wizard that you can use to apply a patch to a project.

For more information about Drupal Development, Drupal Expert, Drupal Developer and Drupal Programmer visit at http://www.dckap.com

Source: http://drupal.org/node/427082

Tuesday, December 7, 2010

Drupal Starter Themes Comparison

There are a couple Drupal starter themes. Zen, Sky, Fusion, and Framework are the four most widely used starter themes. 

Zen
Zen is the most widely used starter theme for Drupal. It has lots of good quality documentation and won the "Best Drupal Theme" title. Zen has a lot of flexibility built in which means you can build off of it to create even better themes. Other starter themes such as Zen NineSixty and Basic, were originally highly modified versions of Zen.
  • Reported Installs: 45,001
  • Versions Supported: 5,6,7
  • Layout Types: 1, 2, and 3 column layouts

 

Fusions

Fusion is a theme used for creating advanced Drupal themes such as Acquia Prosper and Mix and Match. This theme can be based on a grid and has all the defaults already set. Fusion also has lots of support and can also skinnr for easy block style editing.
  • Reported Installs: 18,438
  • Versions Supported: 6,7
  • Layout Types: 1, 2, and 3 column layouts

 

Sky

Sky is a center aligned theme, which is almost completely css based. It has many configurable colour options and supports some of the more popular contributed modules. Although there is no Drupal 7 support yet, the development team is hoping to have a compatible release ready by the time Drupal 7 is released.
  • Reported Installs: 4,315
  • Versions Supported: 5,6
  • Layout Types: 1, 2, and 3 column layouts

 

Framework

Framework is a grid based theme, and is almost completely blank as well. It is very clean and simple, and works nicely in mobile browsers. Framework is good for general placements and basic theme designs.
  • Reported Installs: 3,285
  • Versions Supported: 5,6
  • Layout Types: 1, 2, and 3 column layouts
Note: Statistics last updated: 07/12/2010

For more information about Drupal Development, Drupal Expert, Drupal Developer and Drupal Programmer visit at http://www.dckap.com

Source: http://drupal.org/node/991278

Monday, December 6, 2010

Variable Styling

This page describes how to do variable styling in OpenLayers 2.x module.

Attribute Replacement

The OpenLayers library allows you to use a specific syntax, ${variable_name}, to easily style a feature based on its attributes. The most direct use of this is with the OpenLayers Views Display plugin.
  1. Setup your Views Display according to Getting Started with OpenLayers.
  2. Add fields to your view that you want to use for styling (the 'attributes'). These attributes may be used as radius or color, or even icon URL later on.
  3. The values of these attributes are included in the OpenLayers Data view based Overlay layer that you can add to any preset.
  4. You need to reference each attribute by its machine-readable ID. Lookup the ID trough the Theme:Information link in the basic settings of your view. They have names like field_myfield_value.
  5. In the style associated with your preset, you can apply your attribute as a style like this:
    • pointRadius: ${field_radius_value}
    • fillColor: ${field_color_value}
  6. Finally, create your map with your Views layer and assign it your new style; then when your map is rendered, OpenLayers will replace these values per feature.
More ways of variable styling to come.

For more information about Drupal Development, Drupal Expert, Drupal Developer and Drupal Programmer visit at http://www.dckap.com

Source: http://drupal.org/node/754480