views

views issue

  1. SELECT node.nid AS nid
  2.  FROM node node
  3.  INNER JOIN content_type_year_type node_data_field_month_1 ON node.vid = node_data_field_month_1.vid
  4.  WHERE (node.STATUS <> 0) AND (node.type IN ('year_type'

I used hook_views_post_render to change the output of a view, I just want to be sure that i didn't do it wrong

  1. function royalty_views_post_render(&$view, &$output, &$cache) {
  2.  if($view->name = 'product_list') {
  3.   $output ='';
  4.   //$cache ='';
  5.   if($view->style_plugin->rendered_fields){
  6.    foreach($view->s

I used hook_views_post_render to change the output of a view, I just want to be sure that i didn't do it wrong

  1. function myview_views_post_render(&$view, &$output, &$cache) {
  2.  //dvm($cache);
  3.  
  4.  if($view->name = 'product_list') {
  5.   dpm($view); //There is a link per image
  6.   $output ='';
  7.   //$cache ='';
  8.   i

Get an unaliased views row object for views for views_view_field preprocess functions

  1. /**
  2.  * Returns a view row object in which the property names are unaliased.
  3.  *
  4.  * This facilitates accessing properties from theme hooks when the
  5.  * field_alias is arbitrary unknown, or just non-t

A basic view for mrchrisadams

  1. $view = new view;
  2. $view->name = 'mrchrisadams';
  3. $view->description = '';
  4. $view->tag = '';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;

im trying to add this view to views. its provided by cooolzine theme from themeforest. but i cant import. keep getting error.

  1. $view = new view;
  2. $view->name = 'front_tops';
  3. $view->description = 'Frontpage view';
  4. $view->tag = 'default';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view

Embedding views exposed widgets within a form

  1. function nrembrowser_build_view(&$options) {
  2.  // Do lots of stuff here...
  3.  
  4.     // Display any exposed filters, but only if called for by the view.
  5.     if ($view->exposed_widgets) {
  6. // Attempted t

view_unless_empty()

  1. // wraps Views' rendering functions to only show view when it has content
  2. function view_unless_empty($view_name, $display, $title, $args = array()) {
  3.   if($view = views_get_view($view_name)) {
  4.    

Fix for Twitter-like paging

  1. function joblist_views_mini_pager($tags = array(), $limit = 10, $element = 0, $parameters = array(), $quantity = 9) {
  2.   global $pager_page_array, $pager_total;
  3.  
  4.   // Calculate various markers withi

Fix for Fix for views de catalogo de produtos

  1. $view = new view;
  2. $view->name = 'produtos';
  3. $view->description = '';
  4. $view->tag = '';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $vi
Syndicate content