I think I'm having the same problem as http://drupal.org/node/628312 (posted for Link module), which is: the actual HREF string is truncated for the URL as well as its display

I have tried without success:
1. setting the URL display cutoff to blank
2. setting the URL display cutoff to a value longer than any URL used
3. swearing

I've exhausted my repertoire of fixes and would be grateful for any advice.

e.g.
Display text: Effects of a school-based intervention on adherence of 7–9-year-olds to food-based dietary guidelines and intake of nutrients
Desired URL: http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid...
Actual URL: http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid...

Link source node: http://sheu.org.uk/content/link/effects-school-based-intervention-adhere...
Misbehaving View: http://sheu.org.uk/research-news-primary-latest-old (about half-way down the food links)

CommentFileSizeAuthor
#5 export.txt5.38 KBiamjon

Comments

dawehner’s picture

As always it would help if you export the view :) There people can see what you have configured in views

DrDaveExeter’s picture

Voila!

$view = new view; $view->name = 'research_news_primary_latest_old'; $view->description = 'Research News Primary Links Latest Old'; $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( 'body' => array( 'label' => 'Display truncated, URL fine', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'body', 'table' => 'node_revisions', 'field' => 'body', 'relationship' => 'none', ), 'tid' => array( 'label' => 'Topic', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => '/research-news-primary-archive', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'separator', 'separator' => ', ', 'link_to_taxonomy' => 1, 'limit' => 1, 'vids' => array( '2' => 2, '3' => 0, '1' => 0, ), 'exclude' => 1, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'relationship' => 'none', ), 'title' => array( 'label' => 'Title fine, URL truncated', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => '[body]', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', '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' => 'ASC', 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'link' => 'link', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'created' => array( 'operator' => '>', 'value' => array( 'type' => 'offset', 'value' => '-200 days', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), 'name' => array( 'operator' => 'contains', 'value' => 'Primary', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'case' => 1, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Research News Links: Primary: Latest'); $handler->override_option('items_per_page', 200); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => 'tid', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'tid' => 'tid', 'body' => 'body', ), 'info' => array( 'tid' => array( 'separator' => '', ), 'body' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'research-news-primary-latest-old'); $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, 'name' => 'navigation', ));

dawehner’s picture

Can you wrap the code in < code >, please :)

iamjon’s picture

$view = new view;
$view->name = 'research_news_primary_latest_old';
$view->description = 'Research News Primary Links Latest Old';
$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(
  'body' => array(
    'label' => 'Display truncated, URL fine',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'exclude' => 0,
    'id' => 'body',
    'table' => 'node_revisions',
    'field' => 'body',
    'relationship' => 'none',
  ),
  'tid' => array(
    'label' => 'Topic',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 1,
      'path' => '/research-news-primary-archive',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'type' => 'separator',
    'separator' => ', ',
    'link_to_taxonomy' => 1,
    'limit' => 1,
    'vids' => array(
      '2' => 2,
      '3' => 0,
      '1' => 0,
    ),
    'exclude' => 1,
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'relationship' => 'none',
  ),
  'title' => array(
    'label' => 'Title fine, URL truncated',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 1,
      'path' => '[body]',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    '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' => 'ASC',
    'id' => 'name',
    'table' => 'term_data',
    'field' => 'name',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'link' => 'link',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'created' => array(
    'operator' => '>',
    'value' => array(
      'type' => 'offset',
      'value' => '-200 days',
      'min' => '',
      'max' => '',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'created',
    'table' => 'node',
    'field' => 'created',
    'relationship' => 'none',
  ),
  'name' => array(
    'operator' => 'contains',
    'value' => 'Primary',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'case' => 1,
    'id' => 'name',
    'table' => 'term_data',
    'field' => 'name',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Research News Links: Primary: Latest');
$handler->override_option('items_per_page', 200);
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => 'tid',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'tid' => 'tid',
    'body' => 'body',
  ),
  'info' => array(
    'tid' => array(
      'separator' => '',
    ),
    'body' => array(
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'research-news-primary-latest-old');
$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,
  'name' => 'navigation',
));
iamjon’s picture

StatusFileSize
new5.38 KB

Also adding the export in a text file

dawehner’s picture

So you embed the body of a node as path of a url?

iamjon’s picture

Status: Active » Closed (cannot reproduce)

Closing this from lack of activity. Please feel free to reopen if you still need help.