I have a view I created for the top-level (parent) category. I have a separate view for sub-categories that is working fine. This view works fine when you click "view" under views (to see if it works right). When I go the url I specify for the view, it doesn't work right (my-gallery-shop):

The URL in the browser looks like: http://www.whatever/catalog/my-gallery-shop. The listing in the nav (on the left) shows "My Gallery Shop" at the parent, and all of the subcategories expanded. Click on any subcategory, and you get an apporpriate view (not listed here). Click on the top "parent", and you get a blank page (with only the navigation and other page stuff - just no view).

What am I doing wrong?

Thanks for any help - this is really driving me nuts.

$view = new stdClass();
$view->name = 'Category';
$view->description = 'view of random items in subcategories.';
$view->access = array (
);
$view->view_args_php = '$view->gridcount = 3;';
$view->page = TRUE;
$view->page_title = '';
$view->page_header = '';
$view->page_header_format = '3';
$view->page_footer = '';
$view->page_footer_format = '3';
$view->page_empty = '';
$view->page_empty_format = '3';
$view->page_type = 'bonus_grid';
$view->url = 'my-gallery-shop';
$view->use_pager = TRUE;
$view->nodes_per_page = '9';
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'random',
'sortorder' => 'ASC',
'options' => '',
),
array (
'tablename' => 'node',
'field' => 'title',
'sortorder' => 'ASC',
'options' => '',
),
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node_data_field_image_cache',
'field' => 'field_image_cache_fid',
'label' => '',
'handler' => 'content_views_field_handler_group',
'options' => 'cart_default',
),
);
$view->filter = array (
array (
'tablename' => 'uc_products',
'field' => 'is_product',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node_data_field_image_cache',
'field' => 'field_image_cache_fid_not null',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
);
$view->exposed_filter = array (
);
$view->requires = array(node, node_data_field_image_cache, uc_products);
$views[$view->name] = $view;

Comments

fang27’s picture

I've tried changing the URL to 'catalog/$arg', but that doesn't seem to work.....

domesticat’s picture

Status: Active » Closed (fixed)

Closed while closing all Views support requests with no activity for 6 months. If you still need help, you may re-open this issue at any time.