Skip to main content

Home/ Drupal for Developers/ Group items matching "need" 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
1More

Making Subversion/SVN recognize CVS Id and Revision tags | 2bits.com, Inc. - Drupal Dev... - 0 views

  •  
    One annoying aspect though is that almost all Drupal files use CVS style tags, such as the $Id$ one. Subversion does not recognize these by default. However, there is a way to make Subversion recognize these tags. This post describes the steps needed to achieve this goal.
2More

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
1More

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);
1More

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.
1More

Boost | drupal.org - 0 views

  •  
    For sites that need to completely cache certain pages for anonymous users.
4More

Creating a Compound Field Module for CCK in Drupal 6.x, from Poplar ProductivityWare Ar... - 8 views

  •  
    Create a new CCK field.
  • ...1 more comment...
  •  
    This is a nice foray into defining your own custom field types in CCK. Thanks for sharing. However, as regards "multi-groups" in CCK, I've used CCK version 6.x-3.x-dev and it's worth a look.
  •  
    Oh, really? I'm just needing to use multi-groups. Well, multiple-fields field group, or whatever. For example a recipe with ingredients where you can enter: amount (textfield), unit (option field), ingredient name (textfield). Thanks.
  •  
    when your ready to go to drupal 7 here is the article for that http://www.phase2technology.com/node/1495

Great Remote Computer Support Services - 3 views

started by hansel molly on 06 Jun 11 no follow-up yet

Reliable Online Computer Repair - 3 views

started by cecilia marie on 06 Jun 11 no follow-up yet

One on One Professional Online Tech Support - 3 views

started by shalani mujer on 06 Jun 11 no follow-up yet

Two Thumbs Up For Computer Assistance Services - 2 views

started by seth kutcher on 06 Jun 11 no follow-up yet

The Best Remote PC Support I Ever Had - 1 views

started by seth kutcher on 12 Sep 11 no follow-up yet

The Best Remote PC Support I Ever Had - 1 views

started by Rem PC on 12 Sep 11 no follow-up yet
6More

Theming the User Registration Form in Drupal 6 | Trellon - 0 views

  • <?phpfunction themename_theme($existing, $type, $theme, $path) {  return array(    ...    // tell Drupal what template to use for the user register form    'user_register' => array(      'arguments' => array('form' => NULL),      'template' => 'user-register', // this is the name of the template    ),    ...  );}?>
  • <div id="registration_form">  <div class="field">    <?php      print drupal_render($form['account']['name']); // prints the username field    ?>  </div>  <div class="field">    <?php      print drupal_render($form['account']['pass']); // print the password field    ?>  </div>  <div class="field">    <?php        print drupal_render($form['submit']); // print the submit button      ?>    </div>  </div></div>
  • <?php  print '<pre>';  print var_export($form);  print '</pre>';?>
  • ...3 more annotations...
  • Don't forget to render hidden fields or it won't work ;) echo drupal_render($form['timezone']); echo drupal_render($form['form_build_id']); echo drupal_render($form['form_id']);
  • you also have to print the "token" in order to make the form work print drupal_render($form['form_token']);
  • From my own experience using a form tpl.php, you need to print the whole $form at the very end of the template to ensure that the form will validate upon submission. <?php print drupal_render($form); ?> Just adding the hidden form_build_id and the form_id fields will not mean the form will work. Printing the entire form at the end, however, will mean that all the stuff you wanted to hide in making the template will show. For those fields, include "unset" statements for each one: <?php unset($form['field_to_hide']); ?> Please correct me if I'm wrong or if there is a better way to do this.

They Are the Best Computer Tech Specialists - 1 views

started by shai edrote on 13 Jul 11 no follow-up yet

They Are the Best Computer Tech Specialists - 0 views

started by shai edrote on 13 Jul 11 no follow-up yet

Enjoying Worry-Free Computer Use - 1 views

started by shalani mujer on 08 Jul 11 no follow-up yet

Easy Access to Computer Support Professionals - 1 views

started by hansel molly on 08 Jul 11 no follow-up yet
‹ Previous 21 - 39 of 39
Showing 20 items per page