Skip to main content

Home/ Drupal for Developers/ Group items tagged views

Rss Feed Group items tagged

Hendy Irawan

Drupal Development - 0 views

  •  
    Drupal Development - Presentation Transcript Drupal Code: Day 1 where am i, and how did i get all these arrays Hi. I'm eaton. Drupal is... http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Drupal Core http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Theme Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Theme Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ name = Demo description = Just a simple demo module. core = 6.x function demo_nodeapi(&$node, $op) { global $user; if ($op == 'view') { if ($node->uid == $user->uid) { $node->title . ' [YOUR ARTICLE]'; } } } demo.info demo.module name = Tricky description = A slightly trickier module. core = 6.x function tricky_form_alter(&form, $form_state, $id) { if ($id == 'node_form') { $title['#required'] = FALSE; } } function tricky_install() { drupal_set_message('You just installed Tricky!'); } tricky.info tricky.module tricky.install views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install sprout.install sprout.admin.inc sprout.inc CHANGELOG README views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install sprout.install sprout.admin.inc sprout.inc CHANGELOG README views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install
Daniel Gregoire

Searchlight: A Views-driven Approach to Pluggable Search in Drupal | Development Seed - 5 views

  •  
    Write-up and video on Development Seed's new "Searchlight" module, which brings the power of Solr or Sphinx as Views backends. A la Views 3.x, but with some differences. Also nice demo of Health Market Innovation's site which Dev. Seed did.
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?
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

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';}?>
Csaba Kovács

Perform bulk operations on a custom database table with views | Wunderkraut - 0 views

  •  
    "/** * Implementation of hook_action_info(). */ function mymodule_action_info() { return array( 'mymodule_mytype_delete_action' => array( 'description' => t('Delete mytype'), 'type' => 'mytype', 'configurable' => FALSE, 'hooks' => array( 'mytype' => array('delete'), ), ), ); }"
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
Bensan George

Step by Step Setup of Calendar View | drupal.org - 0 views

  •  
    Setting up a calendar view in Drupal
Scott Blackburn

Drupal Performance Tuning and Optimization for large web sites | 2bits.com, Inc. - Drup... - 0 views

  • articles discuss performance tuning and optimization of Drupal as it pertains to web sites with a large number of visits and page views.
  •  
    Great list of articles that "discuss performance tuning and optimization of Drupal as it pertains to web sites with a large number of visits and page views."
Scott Blackburn

Views Arguments | drupal.org - 0 views

  •  
    Views Arguments
Hendy Irawan

More info | Social Networking - 0 views

  •  
    "Essentially, this website is built around the Facebook-style Statuses module and the Facebook-style Micropublisher extension for it. These two modules (plus the ubiquitous Views module) are what power the "streams" of status updates, links, and images that you see on this site. The rest is mostly fluff. Cool fluff, but fluff nonetheless. My name is Isaac Sukin, a.k.a. IceCreamYou. I frequently blog and tweet about social networking, and I'm planning a blog series about topics I covered in my DrupalCamp presentation in the coming days and weeks. I wrote the Facebook-style Statuses suite, and I am mentoring the Micropublisher initiative for Google's Summer of Code. I've been working on social networking in Drupal since 2007."
Hendy Irawan

Social Networking in Drupal: my SouthEast LinuxFest Drupal Day presentation | Isaac Sukin - 0 views

  •  
    " * I gave a presentation on Social Networking at DrupalCamp South Carolina on June 13th, 2010 (hosted by the SouthEast LinuxFest). Here are the slides I presented (complete with my notes on them) in various formats, as well as a link to the demo site (feel free to play around) and the downloadable Feature I exported based on the demo site. Demo site: http://sndemo.dev3.webenabled.net/ Feature: http://community.featureservers.org/project/self-social-network (also attached) View slides online: http://www.slideshare.net/mediacurrent/social-networking-in-drupal-isaac... If you want to download the slides, I recommend the PPTX. Finally, thanks to Mediacurrent and Doug Vann for making it possible for me to give this presentation."
Scott Blackburn

Limit Views-created block content by node author or current node | Geeks & God - 0 views

  •  
    Scenario One: Limit by author of current node Scenario Two: Limit source to CCK fields in the current node
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);
anonymous

Free your content of PHP: Moving PHP code out of blocks, views and nodes | 2bits.com, I... - 2 views

  • From the early days, Drupal had the ability to embed PHP code in its content. This provides flexibility and functionality, most importantly, nodes and blocks can contain dynamically fetched data from the database using custom queries and displayed them in other content. This is an easy approach to get such data without writing a module. All you need to do is assign the PHP input format filter to the node or block and paste your PHP code in it, and voila, you have dynamic content. Code in Content: the issues However, this approach is suboptimal and has serious drawbacks, including:
  •  
    From the early days, Drupal had the ability to embed PHP code in its content. This provides flexibility and functionality, most importantly, nodes and blocks can contain dynamically fetched data from the database using custom queries and displayed them in other content. This is an easy approach to get such data without writing a module. All you need to do is assign the PHP input format filter to the node or block and paste your PHP code in it, and voila, you have dynamic content.
1 - 20 of 48 Next › Last »
Showing 20 items per page