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;
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | views_feed.patch | 1.02 KB | killes@www.drop.org |
| #1 | views_feed.patch | 726 bytes | killes@www.drop.org |
Comments
Comment #1
killes@www.drop.org commentedhere's patch for this.
Comment #2
killes@www.drop.org commentedThe patch was not complete.
Comment #3
catchWorks for me.
Comment #4
rmpel commentedThis patch is not complete, check here for the full patch; http://drupal.org/node/180776
Comment #5
merlinofchaos commentedhttp://drupal.org/node/180776
as rmpel said, more complete patch is there.