Closed (cannot reproduce)
Project:
Views (for Drupal 7)
Version:
6.x-2.8
Component:
page displays
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2010 at 13:49 UTC
Updated:
26 Aug 2010 at 18:15 UTC
I have created a view based using published nodes and a content type I have created myself (using CCK/Taxonomy).
The live preview works fine but when going to the path on the server nothing is shown.
What parameters I should look at as well ?
thank you.
eG
Comments
Comment #1
dawehnerYou should read http://drupal.org/node/571990 first.
There it is said that you should export your view, is this hard?
Comment #2
dagmarDid you click on "Save"?
Comment #3
elgwiedo commentedI looked into http://drupal.org/node/63230
Save your View!
Now, go to Blocks and you'll see your Views Block listed in the inactive blocks. Enable it and put it where you want. In Drupal 4.7 you can put it in lots of places, but for this excersise, put it in the right column.
...
Problem is that after saving my view, it does not appear in my blocks...
Comment #4
dawehnerSadly you still not read the above handbook page. You could alternative read my last post :)
But you still lacks of one info.
Comment #5
elgwiedo commentedHopefully this is what you want ?
# Version: 6x-2.8
# Component: Display.
# Category: Support request,
# Priority: Normal,
# Title: After saving and exporting the view , I don't have any output.
Am I mssing something as other -older - views seem to work fine ?
Comment #6
dawehnerClick the "export" link. There will be a textarea with some text.
Comment #7
elgwiedo commentedThis is the output:
$view = new view;
$view->name = 'all_traffiworks';
$view->description = 'lijst wegenwerken';
$view->tag = 'trafficwork';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Wegenwerken', 'default');
$handler->override_option('fields', array(
'title' => array(
'label' => '',
'link_to_node' => 0,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'created' => array(
'label' => '',
'date_format' => 'small',
'custom_date_format' => '',
'exclude' => 0,
'id' => 'created',
'table' => 'node',
'field' => 'created',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'body' => array(
'label' => '',
'exclude' => 0,
'id' => 'body',
'table' => 'node_revisions',
'field' => 'body',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'created' => array(
'order' => 'DESC',
'granularity' => 'second',
'id' => 'created',
'table' => 'node',
'field' => 'created',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'name' => array(
'order' => 'DESC',
'id' => 'name',
'table' => 'term_data',
'field' => 'name',
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'trafficwork' => 'trafficwork',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'language' => array(
'operator' => 'in',
'value' => array(
'***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***',
'nl' => 'nl',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => 'language_op',
'label' => 'Node translation: Taal',
'use_operator' => 0,
'identifier' => 'language',
'optional' => 1,
'single' => 1,
'remember' => 1,
'reduce' => 0,
),
'id' => 'language',
'table' => 'node',
'field' => 'language',
'relationship' => 'none',
),
'status' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('title', 'MyTitle');
$handler->override_option('header', '
');
$handler->override_option('header_format', '4');
$handler->override_option('header_empty', 0);
$handler->override_option('items_per_page', 5);
$handler->override_option('use_pager', '1');
$handler->override_option('use_more', 1);
$handler->override_option('use_more_always', 0);
$handler->override_option('use_more_text', 'lees verder');
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
'relationship' => 'none',
'build_mode' => 'teaser',
'links' => 1,
'comments' => 0,
));
$handler = $view->new_display('page', 'Pagina', 'page_1');
$handler->override_option('path', 'wegenwerken');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
));
$handler = $view->new_display('feed', 'Feed', 'feed_1');
$handler->override_option('style_plugin', 'rss');
$handler->override_option('style_options', array(
'mission_description' => FALSE,
'description' => '',
));
$handler->override_option('row_plugin', 'node_rss');
$handler->override_option('row_options', array());
$handler->override_option('path', 'rss_verkeersnieuws_nl');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
));
$handler->override_option('displays', array(
'page_1' => 'page_1',
'default' => 0,
));
$handler->override_option('sitename_title', 0);
Comment #8
dawehner.
Comment #9
elgwiedo commentedIs it possible to let me know if/what exactly I need to post to solve my problem ?
thank you
Comment #10
esmerel commentedIs this still a problem? I'm unable to replicate this, and I've tried it a number of times.
Comment #11
esmerel commented