Daniele Cruciani
Programmatore Developer PHP/MySQL Freelance
mobile: +39 3489215204

icq skype msn linkedin fb t ff youtube picasa google me on github

Advertisement

You are here

drupal

    Drupal 7: Views, view modes, templates and conditional field formatting

    Using drupal 6 I had chosen contemplate module for theming a contenttype, I also thought it was the right thing.

    But the problem was the need to have another place where to storetheming files, or put it in db, that is a practice I do not like.

    Also there could be a number of Views in a website, with differentvisualization, and choosing field view mode for a view is something Ido not like, because there is a better way, in my opinion.

    Defer javascript execution using data

    Due to page performance you should load javascript at the end of page (see http://developer.yahoo.com/performance/rules.html), at least all javascript you can defer to load. There are script that have to load at the very begin of page. But are you sure there is no option?

    Well, actually this is a critical consideration on my own js script. When I wrote imagedata drupal example module I replaced {'imagedata ...} with a direct call to jquery plugin.

    jQuery context menu

    Ok, I admit I do not search to much out there if this is available..

    A simple jquery plugin that permit to show context menu

    I take inspiration from yahoo library: here is an example

    But I want it as jquery plugin and also I want to have option to choose the way it should work, for example I also want to fire context menu on hold down left mouse button for 1 second, or just hover on element.

    Fix SEO problem in drupal (give 301 to node/xx request)

    this was a problem with www.tecnomagazine.it :

    http://www.tecnomagazine.it/recensioni/casio-exilim_ex-z60/442

    could be accessed from /node/442

    Solution is to redirect all /node/[0-9]* url to the aliased one
    ... and is very simple in code:

    includes/path.inc :

    Tags: 
    Subscribe to RSS - drupal