Skip to main content

Home/ Drupal for Developers/ Group items matching "nodes" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
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

Views Help: How to get a field to "Link this field to its user" besides username | drupal.org - 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

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

  •  
    A good start discussion about media players for Drupal
Scott Blackburn

maintaining Drupal sites using version control | drupal.org - 0 views

  •  
    Good post for seeing how others are using version control for their development
Scott Blackburn

Making additional variables available to your templates | drupal.org - 0 views

  •  
    Making additional variables available to your templates
Scott Blackburn

Insert Subscribed Organic Groups List | drupal.org - 0 views

  •  
    You can add a list of groups that the user has subscribed to with the following snippet.
Scott Blackburn

Allow nodeprofile to take over view tab of user | drupal.org - 0 views

  •  
    I spent a little time looking at the bio module last night. I was impressed with it as compared to the previous nodeprofile version. This morning, I looked at the new nodeprofile version and it looks like it's nearly as good.
« First ‹ Previous 41 - 60 of 174 Next › Last »
Showing 20 items per page