Author Archives: Pol
Llistes ul multicolumna amb jQuery
Interessant plugin que trenca les llistes ul/ol en vàries columnes http://archive.plugins.jquery.com/node/4786 http://codeasily.com/jquery/multi-column-list-with-jquery
Usar Jquery 1.4 / 1.5 a Drupal 6
Drupal 6 ve per defecte amb JQuery 1.2, en un projecte he necessitat usar Jquery 1.4 com a mínim, i si substitueixes el fitxer hi ha coses de la interfície d’administració que deixen de funcionar. Per resoldre-ho, cal fer que … Continue reading
Usar un theme per les views (D6 Views2)
Si volem ussar fitxers tpl per personalitzar les views i necessitem saber les variables de que disposem: http://views-help.doc.logrus.com/help/views/using-theme <?php drupal_set_message(‘<pre>’ . var_export($row, true) . ‘</pre>’); ?> Només cal posar això al tpl i ens mostrarà les variables com a missatge … Continue reading
Millorar rendiment d’Eclipse a OSX
http://www.kineticklink.com/speeding-up-eclipse-on-os-x-leopard/ eclipse.ini ) which contols the minimum and maximum size of the heap. If you’re using a OS X based Eclipse you’ll find this file by showing the content of Eclipse.app by right clicking (Ctrl+click) on the file and selecting … Continue reading
Crossbrowser javascript history.back
http://just-another-coder.blogspot.com/2009/08/javascript-historygo-cross-browser-back.html <a href=”#” onclick=”if(document.referrer) {window.open(document.referrer,’_self’);} else {history.go(-1);} return false;”>link</a>
Alineació vertical dins un DIV
http://phrogz.net/css/vertical-align/index.html <div style=”display:table-cell; vertical-align:middle”> … </div> Method 1 The following example makes two (non-trivial) assumptions. If you can meet these assumptions, then this method is for you: You can put the content that you want to center inside a block … Continue reading
Mostrat títol d’un node a una view en fer mouseover a una imatge
Només cal fer un rewrite de la sortida i afegir el títol que hem carregat prèviament. http://drupal.stackexchange.com/questions/4959/how-to-show-node-title-when-mouseover-on-image-in-the-node-by-drupal-views I don’t think you can do that using views. However you can “hack” a way to add title element to a div, for … Continue reading
Activar còpies de OSX Time Machine a la xarxa
Per defecte TimeMachine només permet fer còpies a unitat de disc connectades directament. Per poder fer-les a una unitat de xarxa cal escriure això a un terminal: defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 Font: http://www.engadget.com/2007/11/10/how-to-enable-time-machine-on-unsupported-volumes/