drupal7

Problem with Views Pager

Published by burgerboydaddy on Wed, 01/30/2013 - 15:30

Tags 

This one is funny.
Today I discovered that my page, created with multiple views, and each view with its own pager works weird. Clicking on one pager will affect all other pagers on the page --> click on one pager change value of all of them.

Little research and I found that I need to change pager ID inside my view.

Drupal 7 Open File attachment Links in New Window

Published by burgerboydaddy on Wed, 11/07/2012 - 13:21

Tags 

For requests like: Open attachment in new window code bellow should be placed inside template.php file:
Also return statement is wrapped with span/class that allows extra theming options.


function THEMENAME_file_link($variables) {
  $file = $variables['file'];
  $icon_directory = $variables['icon_directory'];

  $url = file_create_url($file->uri);
  $icon = theme('file_icon', array('file' => $file, 'icon_directory' => $icon_directory));

  // Set options as per anchor format described at

Remove node from search

Published by burgerboydaddy on Fri, 10/05/2012 - 19:15

Tags 

Quickly one.
Today I was tasked to remove node from search results on our side.
It looks like easy but it is not if you are using basic Drupal 7 search engine.
Options are:

Change just one page CSS params

Published by burgerboydaddy on Tue, 09/25/2012 - 15:45

Tags 

Uh,
just received request to change just for one page CSS elements (like h1, h2,...). No matter how easy that looks it is not.
Fortunately there is module named CSS Injector (drupal.org/project/css_injector) that fix exactly what I needed.
Just install it, and go to configuration. Add new rule (call it by your page name, for example), add new CSS rules and select to be
visible only for a given node.

Thanks Eaton (@eaton)
all done.

Drupal 7 and mongoDB

Published by burgerboydaddy on Fri, 06/22/2012 - 22:45

Slides for "optimize Drupal using mongoDB" presentation...

Pages