Skip to main content

Home/ Groups/ Drupal for Developers
Scott Blackburn

Drupal Performance and Scalability | Tag1 Consulting, Inc. - 0 views

  •  
    Obtaining Optimal Performance From Drupal And The LAMP Stack. This book is written by Jeremy Andrews and licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License.
Scott Blackburn

GIDZipTest: Web Page Compression (Deflate / Gzip) Test - GIDNetwork - 0 views

  •  
    is your server using gzip compression? This tool will tell you and show you the savings by compression.
Scott Blackburn

SmartOptimizer | Farhadi.ir - 0 views

  •  
    So far I have this running on a development site, and have to say that it does a great job and was simple to install and use.
Scott Blackburn

Views Help: How to get a field to "Link this field to its user" besides username | drup... - 0 views

  • Though one would think the $field object is what we wanted-- the actual object we needed is $row (even though we're only looking at one field in the row). Put the following into the field tpl file to see what the necessary info is: <?phpprint '<pre>';print_r($row);print '</pre>';?> Then, to actually make the link, put the following in your field tpl file: <?php$account = user_load($row->uid);print l($row->profile_values_profile_fullname_value, 'users/' . $account->name);?> Change 'profile_values_profile_fullname_value' to the proper field alias (based on the $row output). Also, be sure to change 'users' to whatever the path is for your user accounts. I also had another thought-- given your use case, you may want to consider the http://drupal.org/project/realname module as well. It will replace usernames with whatever field(s) you designate all over the site. EDIT: I had another thought. I'm not sure of the performance implications of doing a user_load in the template file. Another option is to add the 'User: name' field to the view but exclude it from display. Then you could avoid the user_load and change the code in the tpl file to: <?phpprint l($row->profile_values_profile_fullname_value, 'users/' . $row->users_name);?>
  •  
    theming the field tpl files for Views2
Scott Blackburn

Getting node path for theming list view | drupal.org - 0 views

  •  
    I recently need to theme a node path in a list view. Comment #1 did the trick: $node = node_load($nid); $path = drupal_get_path_alias('node/'.$node->nid);
Scott Blackburn

Form Builder | drupal.org - 0 views

  •  
    Wow! This Lullabot contribution has serious potential for developers.
Scott Blackburn

How to have a content type use a different page layout? | drupal.org - 0 views

  • function newsflash_preprocess_page(&$variables) {  if ($variables['node']->type == "static") {       $variables['template_files'][] = 'page-node-static';  } elseif ($variables['node']->type == "news") {        $variables['template_files'][] = 'page-node-news';  } elseif ($variables['node']->type == "codes") {        $variables['template_files'][] = 'page-node-codes';  } elseif ($variables['node']->type == "jokes") {        $variables['template_files'][] = 'page-node-jokes';  } }
« First ‹ Previous 181 - 200 of 456 Next › Last »
Showing 20 items per page