Skip to main content

Home/ Drupal for Developers/ Group items tagged theming

Rss Feed Group items tagged

Daniel Gregoire

Nick Sergeant :: Drupal 6ers… register your theme functions! Here's how. - 3 views

  • <? function name_of_module_theme() { return array( 'name_of_theme_function' => array( 'arguments' => array('items' => NULL) ) ); }
  • <? function theme_name_of_theme_function($items = NULL) { $output = 'hey, this is some output that gets generated when theme_name_of_theme_function($items) is called from somewhere'; return $output; }
anonymous

Smarter Theming with SASS (Syntactically Awesome StyleSheets) on Drupal | Steve Krueger - 0 views

  •  
    Currently there are 2 Drupal projects, by Steve Krueger, which focus on development with SASS on Drupal: Basic (SASS Optimized) and SASS API.
paresh sagar

Premium Drupal Development Company in USA, India - 0 views

  •  
    Excellent WebWorld is the best Drupal Development services Company in USA, India and surrounding the area. Whether it is the complete end-to-end Drupal solution or assistance with custom Drupal theme development, our expertise is here for you.
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

How to make CCK fields do some of the same tricks as taxonomy terms | !&# - 0 views

  • In Drupal, taxonomy.module implements hook_term to provide links among content which shares a given term. Site builders often use this feature to provide indexes and RSS feeds of their content. Taxonomy.module's purpose is to support the creation of controlled vocabularies which we can use to classify our site's content. If taxonomy.module were a prescription drug, this would be its "on-label" or indicated use. Using taxonomy.module vocabularies and terms to store essential data about our content is what I call an "off-label" use. You're not really creating a controlled vocabulary, and the term-node relationship in these cases isn't always classificatory. However, a clever web developer will use the tools that get the job done, and often taxonomy.module is the perfect tool for making this happen. Because this information is essential to your node's content, CCK fields are indicated for this use. However, CCK fields don't have built-in linking among nodes which share values for the same field. Also absent is any built-in RSS feed for a CCK field's value. This requires some theming and Views.
M .

Speed Up and Version Your Views | Tree House Agency | Enterprise-level web development,... - 0 views

  •  
    This is actually a bit old now, but since I managed to ignore it for so long, I guess others could benefit from this. Put your views in modules, put your modules in version control, track what changed in views, track who changed it, easily share views on different (dev, qa, prod) servers...
Daniel Gregoire

Apache Solr and Drupal Default's Search | Trellon - 0 views

  • One issue that comes up from ApacheSolr being a separate search page is that the search form does not go to it by default. This is the $search_box in the page.tpl.php template. The way we change this behavior is to add a new submission handler to that form. You can create a custom module for this or put it in your custom theme. <?php/*** Implementation of hook_form_alter()*/function custommodule_form_alter(&$form, $form_state, $form_id) {  // Add submission handler to redirect to apachesolr  if ($form_id == 'search_theme_form') {    // Add a submit, because the search form redirects to a specific place    $form['#submit'][] = 'custommodule_search_submit';  }}/*** Implementation of form submit function*/function custommodule_search_submit($form, &$form_state) {  // Get form ID  $form_id = $form['form_id']['#value'];  // Create new redirect  $form_state['redirect'] = 'search/apachesolr_search/'. trim($form_state['values'][$form_id]);}?>
Fabola smith

Drupal Web development ,Drupal theming,Drupal Services Blogs | Ebizon NetInfo - 0 views

  •  
    This post enlists the benefits associated with adapting the Drupal technology and also shares examples of popular drupal powered websites on the internet.
‹ Previous 21 - 38 of 38
Showing 20 items per page