In the attached view, I want to show the blog's RSS feed at username/blog/feed. This actually works, however the URL in the HTML is '$arg/blog/username/feed' and thus does not link to the right page.

  $view = new stdClass();
  $view->name = 'blog_user';
  $view->description = 'user blogs';
  $view->access = array (
  0 => '5',
  1 => '1',
  2 => '2',
  3 => '6',
  4 => '3',
  5 => '4',
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = '';
  $view->page_header = '';
  $view->page_header_format = '2';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '2';
  $view->page_type = 'node';
  $view->url = '$arg/blog';
  $view->use_pager = FALSE;
  $view->nodes_per_page = '10';
  $view->sort = array (
  );
  $view->argument = array (
    array (
      'type' => 'username',
      'argdefault' => '1',
      'title' => 'Blog von %1',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
    array (
      'type' => 'node_feed',
      'argdefault' => '2',
      'title' => 'Blog von %1',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array (
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'weblog',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node);
  $views[$view->name] = $view;

Comments

killes@www.drop.org’s picture

Status: Active » Needs review
StatusFileSize
new726 bytes

here's patch for this.

killes@www.drop.org’s picture

StatusFileSize
new1.02 KB

The patch was not complete.

catch’s picture

Status: Needs review » Reviewed & tested by the community

Works for me.

rmpel’s picture

This patch is not complete, check here for the full patch; http://drupal.org/node/180776

merlinofchaos’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

http://drupal.org/node/180776

as rmpel said, more complete patch is there.