Closed (fixed)
Project:
Views (for Drupal 7)
Version:
4.7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2007 at 02:05 UTC
Updated:
21 Jan 2007 at 16:30 UTC
http://kldp.org/minipage/cwryu shows what I am trying to talk. (Sorry this is Korean but you will easily notice.)
At the center, it says
%1 님의 mini page
cwryu 님의 mini page
Here, the %1 is username and I added text at the page but it does not properly show the username at the breadcrumb trail place.
Below is the views export
$view = new stdClass();
$view->name = 'homepage';
$view->description = 'user page';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = '%1 님의 mini page';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '아직까지 새 글타래로 올리신 글이 없네요. 답글만 올리지 마시고 새로운 글타래를 올려 주시면 어떨까요? :-)';
$view->page_empty_format = '1';
$view->page_type = 'teaser';
$view->url = 'minipage/$arg';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'nid',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array (
array (
'type' => 'username',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'rss_feed',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'created',
'label' => '글쓴시각',
'handler' => 'views_handler_field_date_small',
),
array (
'tablename' => 'node',
'field' => 'title',
'label' => '제목',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node_comment_statistics',
'field' => 'last_comment_timestamp',
'label' => '마지막 답글',
'handler' => 'views_handler_field_date_small',
),
array (
'tablename' => 'node_comment_statistics',
'field' => 'comment_count',
'label' => '답글 수',
'handler' => 'views_handler_comments_with_new',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'blog',
1 => 'forum',
2 => 'story',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node, node_comment_statistics);
$views[$view->name] = $view;
Comments
Comment #1
webchickThe "Page" Title field is only for static pages (or what they page title should be when an argument isn't specified).
If you want the page title to be dynamic when an argument is specified, you should put the %1 in the "Title" field under "Argument Type" instead.
I was screwed up by this before too. :)
Comment #2
ksoonson commentedOh, thank you very much! I fixed it right now. :-)
Comment #3
(not verified) commented