Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mouse77e on
Wow long title…!
Ok here’s my issue. I am adding tagged photos to my site e.g. http://afterthemouse.com/photos/tags/dlp brings up all of the photos tagged with “dlp”. This is the page I want with cropped and resized thumbnails triggering “ThickBox” images.,
My problem is that if you click on another tag on that page it sends you to http://afterthemouse.com/category/photo-tags/wdw adding /category/ into the url and that really ruins my day…
there must be a way of fixing the href?
Here are my exported Views settings for the page:
$view = new stdClass();
$view->name = 'photo_tags';
$view->description = 'Bring up a list of photos by tag';
$view->access = array (
0 => '1',
1 => '2',
2 => '3',
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Photos tagged with %1';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'bonus_grid';
$view->url = 'photos/tags';
$view->use_pager = TRUE;
$view->nodes_per_page = '24';
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'created',
'sortorder' => 'DESC',
'options' => 'normal',
),
);
$view->argument = array (
array (
'type' => 'taxletter',
'argdefault' => '1',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'nolink',
),
array (
'tablename' => 'node_data_field_image_0',
'field' => 'field_image_0_fid',
'label' => '',
'handler' => 'content_views_field_handler_ungroup',
'options' => 'thickbox][thumb',
),
array (
'tablename' => 'term_node_12',
'field' => 'name',
'label' => 'Tagged with:',
'options' => 'link',
),
array (
'tablename' => 'users',
'field' => 'name',
'label' => 'Submitted by:',
'defaultsort' => 'ASC',
),
array (
'tablename' => 'node',
'field' => 'edit',
'label' => '',
'handler' => 'views_handler_node_edit_destination',
'options' => 'Edit Here:',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'image',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node, node_data_field_image_0, term_node_12, users);
$views[$view->name] = $view;
Many thanks for any and all help!
Comments
Correction
Corection
http://afterthemouse.com/photos/tags/dlp
http://afterthemouse.com/category/photo-tags/wdw adding /category/photo-tags/ into the url
there must be a way of fixing the href?