Active
Project:
Imce CCK Image
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2008 at 07:20 UTC
Updated:
17 Aug 2008 at 16:35 UTC
Hi there,
I'm not really sure what's wrong here. The View I created suppose to generate a list with an inline thumbnail image, title, body and a link to larger image.
As you can see in the HTML code below href tag opens but it's not closed and there's no text or image itself as the link content.
Is it related with View or Imce CCK Image (6.x-1.x-dev) module?
Thanks for reading.
(Drupal 6.3)
my View:
$view = new view;
$view->name = 'Golden';
$view->description = 'Golden Collection';
$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(
'field_jewelry_thumbnail_imceimage_path' => array(
'label' => '',
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_jewelry_thumbnail_imceimage_path',
'table' => 'node_data_field_jewelry_thumbnail',
'field' => 'field_jewelry_thumbnail_imceimage_path',
'relationship' => 'none',
),
'title' => array(
'label' => '',
'link_to_node' => 0,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'body' => array(
'label' => '',
'exclude' => 0,
'id' => 'body',
'table' => 'node_revisions',
'field' => 'body',
'relationship' => 'none',
),
'field_jewelry_image_imceimage_path' => array(
'label' => '',
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'link',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_jewelry_image_imceimage_path',
'table' => 'node_data_field_jewelry_image',
'field' => 'field_jewelry_image_imceimage_path',
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'title' => array(
'order' => 'ASC',
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'status' => array(
'operator' => '=',
'value' => 1,
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
'type' => array(
'operator' => 'in',
'value' => array(
'jewelry' => 'jewelry',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'field_jewelry_collection_value' => array(
'operator' => 'or',
'value' => array(
'Golden' => 'Golden',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'field_jewelry_collection_value',
'table' => 'node_data_field_jewelry_collection',
'field' => 'field_jewelry_collection_value',
'relationship' => 'none',
'reduce_duplicates' => 0,
),
));
$handler->override_option('access', array(
'type' => 'none',
'role' => array(),
'perm' => '',
));
$handler->override_option('title', 'Golden');
$handler->override_option('header', '<p>Star-spangled with brilliant diamonds, golden collections cast a majestic aura reminiscent of imperial courts in rich, yet simple fashion, adding an extra touch of glamour to a day or night attire.</p>');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 1);
$handler->override_option('items_per_page', 0);
$handler->override_option('style_plugin', 'list');
$handler->override_option('style_options', array(
'grouping' => '',
'type' => 'ul',
));
$handler->override_option('row_options', array(
'inline' => array(),
'separator' => '',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'Collections/Golden');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));
Generated HTML:
<div class="view-content">
<div class="item-list">
<ul>
<li>
<div class="views-field-field-jewelry-thumbnail-imceimage-path">
<span class="field-content"><img src="/sites/default/files/jewelry/thumbnail/Golden_01.jpg" alt="" width="200" height="200" id="imceimage-field_jewelry_thumbnail-" /></span>
</div>
<div class="views-field-title">
<span class="field-content">DS2001</span>
</div>
<div class="views-field-body">
<span class="field-content"></span>
</div>
<div class="views-field-field-jewelry-image-imceimage-path">
<span class="field-content"><a href="//sites/default/files/jewelry/large/Golden_01.jpg" class="imceimage-link"></span>
</div>
</li>
</ul>
</div>
</div>
Comments
Comment #1
merlinofchaos commentedThe IMCE CCK image generates the HTML for that link, so let's file this against that module. (You might also search that module's queue in case this is a dup; I'm not taking the time to do that.)
Comment #2
panis commentedThe "link" formatter does not work currently - use the image formatter instead and either use CSS to reduce the size of the image or override the theme_imceimage_image($srcpath, $width, $height, $alt, $id) in your template file to do what you need.