Submitted by enzo on Mon, 12/31/2012 - 10:45
In some occasions you need to replace or attach new files to nodos who has a field of type archive, using a control default or well an image as it shows.
Submitted by enzo on Tue, 09/18/2012 - 15:38
Straight to business here. This is the code to display the current branch in parenthesis.
Submitted by enzo on Wed, 05/30/2012 - 11:20
A few days ago I started with a self-training for Symfony 2 just to start getting ready for when it gets implemented in Drupal 8.
In the process I had to deal with some weird issues explained below.
1. DB Connection
Submitted by enzo on Wed, 05/09/2012 - 15:21
If you are new in Drupal 7 and you need to deal with text formats (format input filters in D6), you will notice a big difference between D6 & D7. We don't have the radio button to set our default text format.
If you are wondering how we can set this default format, the answer lies in the order since Drupal 7 handles the text format with less weight as the default format.
As a reminder, it all depends on the roles assigned to the current user, the default order could be different depending on the role.
Submitted by enzo on Fri, 04/27/2012 - 15:15
If you are a fan of omega theme or you are still deciding whether to start using it, the best way to start quickly is using drush commands. Here's a quick guidance.
1. Install omega theme & omega_tools module
#drush dl omega, omega_tools
2. Enable omega theme & omega_tools module.
Submitted by enzo on Sun, 04/15/2012 - 15:03
Sometimes we require to collect information from users, and a webform is a good option for that, but the problem comes when you need to present a variable list of options.
Imagine you want to allow user to request a role promotion, that means the user can fill out a form and select from a list the role he wants to get.
In an ideal world, this list of roles must be dynamically, to shrink or grow, when you delete or add new roles in your system. This simple task could be a nightmare in webforms.
Submitted by enzo on Mon, 03/26/2012 - 15:39
Today I will share with you how to build a jQuery client to consume REST resources created with Drupal 7 & Services 3.x.
In the following example we will authenticate against drupal and after that get a specific user information.
1. Configure Services.
You must enable in your endpoint the resources for user and node. see image attached #2
Also you must enable authentication for your endpoint. see image attached #3
Submitted by enzo on Thu, 03/22/2012 - 14:36
Today I will share with you my experience restoring a Backup created with the module Backup & Migrate using drush.
0. Create your backup
You must use the Backup & Migrate module to genereate a new backup and copy it to your new instance where you plan to restore your backup.
1. Allocate the backup in the proper location.
Submitted by enzo on Mon, 03/19/2012 - 14:12
Submitted by enzo on Tue, 03/06/2012 - 14:08
Today I will share how to create a new entity/content type from code in a custom module.
To start you need to create a new module, lets call this new module staff.
1. Implement module.install
We need to create a file inside our module folder staff called staff.install