? .DS_Store ? .morelink.patch.swp ? morelink.patch ? includes/.plugins.inc.swp ? theme/.DS_Store Index: includes/plugins.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views/includes/plugins.inc,v retrieving revision 1.36 diff -u -p -r1.36 plugins.inc --- includes/plugins.inc 16 Mar 2008 03:14:46 -0000 1.36 +++ includes/plugins.inc 16 Mar 2008 19:51:00 -0000 @@ -1473,6 +1473,19 @@ class views_plugin_display_block extends 'title' => t('Admin'), 'value' => $block_description, ); + + if ($this->get_option('block_more_link')) { + $path = $this->get_path(); + $block_more_link = ($path) ? check_plain($path) : t('Page does not have url'); + } + else { + $block_more_link = t('No'); + } + $options['block_more_link'] = array( + 'category' => 'block', + 'title' => t('More link'), + 'value' => $block_more_link, + ); } /** @@ -1491,6 +1504,16 @@ class views_plugin_display_block extends '#default_value' => $this->get_option('block_description'), ); break; + + case 'block_more_link': + $form['#title'] .= t('Provide more link'); + $form['block_more_link'] = array( + '#type' => 'checkbox', + '#title' => t('Create more link'), + '#description' => t('Add a \'more\' link to the block. This will link to the full page display.'), + '#default_value' => $this->get_option('block_more_link'), + ); + break; } } @@ -1521,6 +1544,18 @@ class views_plugin_display_block extends case 'block_description': $this->set_option('block_description', $form_state['values']['block_description']); break; + case 'block_more_link': + $this->set_option('block_more_link', $form_state['values']['block_more_link']); + break; + } + } + /** + * Render the more link + */ + function render_more_link() { + $link = $this->get_path(); + if ($this->get_option('block_more_link') && $link) { + return l('View more', $link); } } Index: theme/views-view.tpl.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views/theme/views-view.tpl.php,v retrieving revision 1.5 diff -u -p -r1.5 views-view.tpl.php --- theme/views-view.tpl.php 20 Feb 2008 01:08:25 -0000 1.5 +++ theme/views-view.tpl.php 16 Mar 2008 19:51:01 -0000 @@ -12,6 +12,7 @@ * - $pager: The pager next/prev links to display, if any * - $exposed: Exposed widget form/info to display * - $feed_icon: Feed icon to display, if any + * - $more: A link to view more, if any * * @ingroup views_templates */ @@ -43,6 +44,10 @@ + + + +