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'; } }
Form Builder | drupal.org - 0 views
Welcome to Code | Code - 0 views
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 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';}?>
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.
Introducing Spaces for Drupal | Development Seed - 0 views
clarify difference from Private Upload module or merge projects | drupal.org - 0 views
-
I created a manual page, http://drupal.org/node/540754
SmartOptimizer | Farhadi.ir - 0 views
On RHEL and CentOS. | drupal.org - 0 views
forms_api_reference.html | Drupal API - 0 views
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?
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.
« First
‹ Previous
61 - 80
Next ›
Last »
Showing 20▼ items per page