diff -r /tmp/views_datasource_edited/theme/views-views-json-style-exhibit.tpl.php /tmp/views_datasource/theme/views-views-json-style-exhibit.tpl.php 18c18 < if (property_exists($view, 'override_path') && $view->override_path) { --- > if ($view->override_path) { Only in /tmp/views_datasource_edited/theme: views-views-json-style-jqgrid.tpl.php diff -r /tmp/views_datasource_edited/theme/views-views-json-style-simple.tpl.php /tmp/views_datasource/theme/views-views-json-style-simple.tpl.php 17c17 < if (property_exists($view, 'override_path') && $view->override_path) { --- > if ($view->override_path) { 24d23 < // var_dump($rows); 35c34 < drupal_add_http_header("Content-Type", "$content_type; charset=utf-8"); --- > drupal_set_header("Content-Type: $content_type; charset=utf-8"); diff -r /tmp/views_datasource_edited/theme/views_views_json_style.theme.inc /tmp/views_datasource/theme/views_views_json_style.theme.inc 17c17 < function template_preprocess_views_views_json_style_simple(&$vars) { --- > function template_preprocess_views_views_json_style_simple($vars) { 21d20 < //var_dump($view); exit; 31d29 < //echo "Field: "; var_dump($field); 43d40 < //echo "Label is: $label\n"; 59,60c56 < < //echo " template preprocess" ;var_dump($objects); --- > 64c60 < function template_preprocess_views_views_json_style_exhibit(&$vars) { --- > function template_preprocess_views_views_json_style_exhibit($vars) { 108,168d103 < function template_preprocess_views_views_json_style_jqgrid(&$vars) { < //debug_print_backtrace(); exit; < $view = $vars["view"]; < $rows = $vars["rows"]; < $options = $vars["options"]; < //var_dump($view->query->pager); exit; < $base = $view->base_table; < $root_object = $options["root_object"]; < $top_child_object = $options["top_child_object"]; < $plaintext_output = $options["plaintext_output"]; < $objects = array(); < < foreach($rows as $row) { < $object = array(); < foreach ($row as $field) { < //echo "Field: "; var_dump($field); < if ($options["field_output"] == "normal") { < if ($field->label) < $label = $plaintext_output ? strip_tags($field->label) : $field->label; < else < $label = $plaintext_output ? strip_tags($field->id) : $field->id; < < if (!$field->is_multiple) { < $content = $plaintext_output ? strip_tags($field->content) : $field->content; < } < else { < $content = array(); < foreach($field->content as $n=>$oc) $content[$n] = ($plaintext_output ? strip_tags($oc) : $oc); < } < //echo "Label is: $label\n"; < } < elseif ($options["field_output"] == "raw") { < $label = $plaintext_output ? strip_tags($field->id) : $field->id; < if (!$field->is_multiple) { < $content = $plaintext_output ? strip_tags($field->raw) : $field->raw; < } < else { < $content = array(); < foreach($field->raw as $n=>$oc) $content[$n] = $plaintext_output ? strip_tags($oc) : $oc; < } < } < $object[$label] = $content; < } < $objects[] = $object; < } < < if (isset($view->query->pager)){ < // var_dump($view->query->pager); exit; < global $pager_total, $pager_total_items; < < $pagerId = $view->query->pager->options['id']; < // echo "Page: ".$pager_page[$pagerId].", pages: ".$pager_total[$pagerId].", items: ".$pager_total_items[$pagerId]; < $very_top['page'] = $view->query->pager->current_page + 1; < $very_top['records'] = $pager_total_items[$pagerId];//100;//$view->query->pager->total_items; < $very_top['total'] = $pager_total[$pagerId];//$view->query->pager->options['total_pages'] != '' ? $view->query->pager->options['total_pages'] : 1; < $very_top['rows'] = $objects; < } < < //echo " template preprocess" ;var_dump($objects); < $vars["rows"] = $very_top;//array($root_object => $objects); < } \ No newline at end of file diff -r /tmp/views_datasource_edited/theme/views-views-rdf-style-doap.tpl.php /tmp/views_datasource/theme/views-views-rdf-style-doap.tpl.php 57c57 < if (property_exists($view, 'override_path') && $view->override_path) { // inside live preview --- > if ($view->override_path) { // inside live preview diff -r /tmp/views_datasource_edited/theme/views-views-rdf-style-foaf.tpl.php /tmp/views_datasource/theme/views-views-rdf-style-foaf.tpl.php 18c18 < if (empty($header) || !$header) { //build our own header --- > if (!$header) { //build our own header 54c54 < if (property_exists($view, 'override_path') && $view->override_path) { // inside live preview --- > if ($view->override_path) { // inside live preview 61c61 < drupal_add_http_header("Content-Type", "$content_type; charset=utf-8"); --- > drupal_set_header("Content-Type: $content_type; charset=utf-8"); diff -r /tmp/views_datasource_edited/theme/views-views-rdf-style-sioc.tpl.php /tmp/views_datasource/theme/views-views-rdf-style-sioc.tpl.php 99c99 < // if (property_exists($view, 'override_path') && $view->override_path) --- > // if ($view->override_path) 110c110 < if (property_exists($view, 'override_path') && $view->override_path) { // inside live preview --- > if ($view->override_path) { // inside live preview diff -r /tmp/views_datasource_edited/theme/views-views-xhtml-style-hcalendar.tpl.php /tmp/views_datasource/theme/views-views-xhtml-style-hcalendar.tpl.php 84c84 < if (property_exists($view, 'override_path') && $view->override_path) { // inside live preview --- > if ($view->override_path) { // inside live preview diff -r /tmp/views_datasource_edited/theme/views-views-xhtml-style-hcard.tpl.php /tmp/views_datasource/theme/views-views-xhtml-style-hcard.tpl.php 118c118 < if (property_exists($view, 'override_path') && $view->override_path) { // inside live preview --- > if ($view->override_path) { // inside live preview diff -r /tmp/views_datasource_edited/theme/views-views-xml-style-atom.tpl.php /tmp/views_datasource/theme/views-views-xml-style-atom.tpl.php 41c41 < if (property_exists($view, 'override_path') && $view->override_path) --- > if ($view->override_path) 76c76 < if (property_exists($view, 'override_path') && $view->override_path) { // inside live preview --- > if ($view->override_path) { // inside live preview diff -r /tmp/views_datasource_edited/theme/views-views-xml-style-opml.tpl.php /tmp/views_datasource/theme/views-views-xml-style-opml.tpl.php 35c35 < if (property_exists($view, 'override_path') && $view->override_path) --- > if ($view->override_path) 54c54 < if (property_exists($view, 'override_path') && $view->override_path) { // inside live preview --- > if ($view->override_path) { // inside live preview diff -r /tmp/views_datasource_edited/theme/views-views-xml-style-raw.tpl.php /tmp/views_datasource/theme/views-views-xml-style-raw.tpl.php 13,14c13,14 < */ < if (property_exists($view, 'override_path') && $view->override_path) { // inside live preview --- > */ > if ($view->override_path) { // inside live preview