Skip to main content

Home/ Groups/ Drupal 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';  } }
Scott Blackburn

Form Builder | drupal.org - 0 views

  •  
    Wow! This Lullabot contribution has serious potential for developers.
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

Welcome to Code | Code - 0 views

  •  
    developmentseed's code repository
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

Nick Sergeant :: My thoughts on small-scale Drupal development to production environmen... - 0 views

  •  
    Nick Sergeant comes through again by sharing his development and production environments.
Scott Blackburn

Ingredients for an Album/Track page | groups.drupal.org - 0 views

  •  
    A good start discussion about media players for Drupal
Daniel Gregoire

Theming Views In Drupal 6.x | Drupaler | Drupal Blog, Collaborative Drupal Resource - 0 views

  • <?phpfunction garland_preprocess_views_view__my_view(&$variables) {  $variables['foo'] = 'some text';}?>
Fabola smith

Low Cost and Efficient Drupal Development Services - 0 views

  •  
    Drupal development services have come up at the right time when there has been a resurgence of technological advancement. A wider acceptance and likeliness for the Drupal interface, which has now transformed into the most popular open -source Content Management System (CMS) available online today is a key trend which will drive forward internet technology in the times to come.
Scott Blackburn

Content migration: options and strategies » Step Two Designs - 0 views

  •  
    Good article if you need to re-think site migration, especially from a content perspective. This isn't really about Drupal only.
Fabola smith

Mobile Text Messaging Using Drupal | Ebizon NetInfo - 0 views

  •  
    Explore the true power of Drupal when it integrates the SMS functionality with Drupal websites.
Fabola smith

Drupal Blogs,Do It with Drupal,Drupal Development Blogs | Ebizon NetInfo - 0 views

  •  
    Do It With Drupal - 2009 is coming up in New Orleans and is set to be bigger and more fruitful than the event held in 2008.
Scott Blackburn

Introducing Spaces for Drupal | Development Seed - 0 views

  •  
    This looks like a module to watch if you develop intranets and use Organic Groups heavily.
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.
Daniel Gregoire

On RHEL and CentOS. | drupal.org - 0 views

  •  
    Script and explanation of getting Solr setup as a service in RHEL/CentOS.
Daniel Gregoire

forms_api_reference.html | Drupal API - 0 views

  •  
    Drupal 6 Form API Reference
Scott Blackburn

Litenode | Development Seed - 0 views

  •  
    Litenode is a new module that uses Views to replace multiple node_loads() on a page. The concept is simple: Views already knows how to grab any of the fields in a single go that many modules load independently in their hook_nodeapi('load'). Why not have Views grab them all at once (as you would do in a table view, for example) and then have a style plugin map the Views fields to all the places where modules expect them to be on a loaded node?
Scott Blackburn

http://vineyardvoice.org/files/how_tos/groups_walkthrough/index.html - 0 views

  • Ted wrote a theme_breadcrumb() override and called it vv_fix_breadcrumb(). The code is well commented and should be self-explanatory, even to non-phpers.
    • Scott Blackburn
       
      Finally, a breadcrumb solution for group calendars
« First ‹ Previous 61 - 80 Next › Last »
Showing 20 items per page