-
Building a nice slideshow with Drupal views and jQuery
Thursday, January 22nd, 2009
For one of my projects at One-Agency, i had to build a slideshow with images of one of my content types.
I started to make my promotions content type with CCK and make it possible to upload an image and add extra information on the promo.
After that, i could start with the real work.I made a block-view with the settings to show only promotions that are published, and show the nodes in this view as a node. Once you have this set up, you can start to prepare you’re template file.
-
Hooking drupal s’ logout button with jquery
Tuesday, September 30th, 2008
In a project I am working on, I had to hook the login and logout of drupal, so that an extra action would be taken. More specific to my case: when logging in and/or out of a drupal, the same action should be taken for another session to a second server.
As drupal login and logout are buttons that are built in Drupal, It had to work around it. The most common solution would be to add an extra class attribute to the links that performed the logout. This class then could be triggered with Jquery to override the logout button to handle things differently. You could think of it as branching the logout task. In stead of going to a different page to perform logout, we call two pages with Jquery’s AJAX methods.
-
Introduction to Jquery @ Drupalcon Szeged2008
Saturday, September 6th, 2008
Because i am considerably new to drupal, I learned a big deal at the DrupalCon in Szeged. I am also new to jquery because untill now I preferred prototype with scriptaculous to do the fancy javascript in Onegana’s content management system. A couple of sessions handled jquery, jquery in drupal and even advanced javascript techniques and patterns in javascript.
Javascript has always been a lot of fun when writing, although programmers have to make sure that different browsers give the user the same nice experience they want.