Drupal

editing acquia theme

For the spotmouth.com site, I started by writing a new theme, but in the end, decided to just edit the acquia theme.  One issue that I had was that this theme uses some background images.  While I could  (and initially did) just edit the images to match the color scheme for my design, it didn't feel right.

I wanted to way a way in CSS to remove the background-image that the theme was setting.  I added the following to my local.css and VOILA, it worked:

 

post registration redirect

For spotmouth, the user management is in Drupal.  When a user registers, they are by default redirected to the Drupal front page.  For spotmouth, this automatically redirects the user to the grails portion of the app, so a) user does not see the "check email" message that drupal provides.
What I wanted to do was direct the users when they register to a thank you page.  This was easy, I just created my "thank you" page in the CMS and installed the "Rules" modules.
I created a new rule for when users are created, and did a page redirect to my Thank you page.

Apache solr and drupal gotcha!

 
I setup a 2nd solr instance for spotmouth.com for my drupal instance.  Anytime I tried to run cron.php to get drupal to index my content, I got an error:
Cron run exceeded the time limit and was aborted.
No content was ever indexed.
The problem was that I had a Drupal page that contained php content (do redirect to the spotmouth.com application). Once I changed it to use a different input filter than PHP, the cron job functioned perfectly.

Do not forget to make your module blocks Configurable

 

We needed to perform some regression testing on a production server of a Drupal module.  The Drupal module output a block and we needed to display this block on a simple Testing page so as not to affect other parts of the site.  I uploaded my changed module and proceeded to configure the block so it would only appear on this specific page.  ERROR.  Total white screen of Drupal death.

Syndicate content