I have read many post about creating arguments for Quick tabs. Either I am not able to find a post that helps me, or I am not understanding what I am reading.

I have a content type, Hotels, with QT block on the node page. The QT block has a tab showing another content type called ,rooms, which is more or less generated with views. Rooms is a child node of hotels via the Node Relativity Module.

I am unable to show only the rooms of the assigned parent ,hotels,. I have a URL argument in views but that just seems to produce a blank tab.

Any help would great...

Comments

pasqualle’s picture

you need to use the same argument what you put into view preview on the view edit page. You really need to know how to show the view in preview on the view edit page, otherwise you won't be able to show it in quicktab.

---
the argument could be probably something like hotel_nid/room_node_relativity, in this case as the hotel_nid is changing with every hotel you will have to grab the argument from url. So if you show this quicktab on the hotel nodes, then you will need %1/room_node_relativity. as %1 is the second part of the url in node/nid. If you show the quicktab on some other pages, you may need different view argument.

weblance’s picture

yes well, I have an argument which node relativity, parent node, NID from the url set. This is not working for me.

weblance’s picture

Title: Views Argument » Quick Tab Views Node Relativity Argument

Adding more detail here. A solution has not presented itself.

Basically, I have a hotel page with quicktabs. One tab shows all rooms that are the child node of hotel through node relativity. I have created an argument in views to accomplish this. However, it does not seem to produce the desired result. Often showing nothing at all.

All other tabs seem to handle the same argument to display only child node content except the rooms content type. FYI - Rooms content type is part of the UC hotel booking module.

To see the page with no arguments:

http://bookangeles.com/content/hotels/bourbon-street-condotel

My argument was:

Node Relativity: Parent Node ID
filter by parent
Provide default argument
Node ID from URL

Any assistance would be great. Thanks

Export of views:
<$view = new view;
$view->name = 'room_view_for_hotelnode_page';
$view->description = 'room_view_for_hotelnode_page';
$view->tag = '';
$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', 'Defaults', 'default');
$handler->override_option('fields', array(
'title' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
'field_image_cache_fid' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 0,
'ellipsis' => 0,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'feature_block_image_linked',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_image_cache_fid',
'table' => 'node_data_field_image_cache',
'field' => 'field_image_cache_fid',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'field_bestrate_value' => array(
'label' => 'Best Rate',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'custom',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_bestrate_value',
'table' => 'node_data_field_bestrate',
'field' => 'field_bestrate_value',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'tid' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'type' => 'ol',
'separator' => ', ',
'empty' => '',
'link_to_taxonomy' => 0,
'limit' => 1,
'vids' => array(
'9' => 9,
'6' => 0,
'10' => 0,
'5' => 0,
),
'exclude' => 0,
'id' => 'tid',
'table' => 'term_node',
'field' => 'tid',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
'body' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'exclude' => 0,
'id' => 'body',
'table' => 'node_revisions',
'field' => 'body',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'parent_nid' => array(
'default_action' => 'default',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'node',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'empty',
'id' => 'parent_nid',
'table' => 'relativity',
'field' => 'parent_nid',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
'3' => 0,
'4' => 0,
),
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'flashnode' => 0,
'product' => 0,
'hotel_room_type' => 0,
'barvenue' => 0,
'date' => 0,
'event' => 0,
'grandopening' => 0,
'happyhour' => 0,
'hotel' => 0,
'livemusic' => 0,
'node_gallery_gallery' => 0,
'node_gallery_image' => 0,
'page' => 0,
'pagent' => 0,
'party' => 0,
'poker' => 0,
'raffle' => 0,
'show' => 0,
'sports' => 0,
'story' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'6' => 0,
'14' => 0,
'12' => 0,
'5' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'validate_argument_php' => '',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'hotel_room_type' => 'hotel_room_type',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('header_format', '3');
$handler->override_option('header_empty', 0);
$handler->override_option('style_plugin', 'fluid_grid');
$handler->override_option('style_options', array(
'advanced_layout' => array(
'align' => TRUE,
'margins' => TRUE,
'css3' => TRUE,
),
'items_width' => '',
'items_height' => '',
'list_alignment' => 'left',
'items_alignment' => 'left',
'items_h_margin' => '2px',
'items_v_margin' => '6px',
'box_shadow' => '1',
'border_radius' => '1',
));
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
'relationship' => 'none',
'build_mode' => 'full',
'links' => 0,
'comments' => 0,
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
>

pasqualle’s picture

the argument for the views tabpage should be: %1
as that contains the node id on hotel pages, which should be the parent nid of rooms..

weblance’s picture

yes but where to put %1

pasqualle’s picture

open the quicktab edit page
switch to the tab which contains the view
set the view arguments to %1

weblance’s picture

Thanks for the reply. Yea, I tried placing that into the quciktab. Once with no argument in views, then with NID in URL with views, and lastly node relativity NID in url in views. Nothing seems to work.

Strange one. I think it might have more to do with the UC hotel booking module than anything else.

netw3rker’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)