In the argument group-box, I enter "List of %1" on the Title field.

But when I enter this url "http://domain.com/list/mylist/friend" then this view only show "List of" as Page Title without the value of %1 ("friend"). please advise.

Comments

amitaibu’s picture

What is the URL your using for the page view?
it should be list/mylist

patricksettle’s picture

I'm running into this problem as well.

Simple view, one argument.

/testview/foo

Should return foo as %1, thus in the title box of the argument, "List of %1" should return "List of foo"

Unless there's a checkbox, or some other step not outlined in the documentation, I'm at a loss. Specially since I'd assume lots of people are using this basic function.

catch’s picture

Status: Active » Postponed (maintainer needs more info)

OK this works for me with taxonomy term name arguments. Which specific arguments are you using provided by which modules?
What's the url for your view in view settings?

sethcohn’s picture

I'm seeing this as well.

%1 isn't showing up as it should, and is returning nothing instead.

Setting the title on Argument to "My %0 %1 %2 Items" when only one argument is given (and not the wildcard) returns "My %0 %2 Items" which shows pretty conclusive it's broken. (When a wildcard IS given, the wildcard sub DOES show up, all "My %0 All %2 items")

sethcohn’s picture

Project: Views (for Drupal 7) » Content Construction Kit (CCK)
Version: 5.x-1.6 » 5.x-1.x-dev
Component: Views Data » Views Integration
Category: support » bug
Status: Postponed (maintainer needs more info) » Active

After playing with this more, I'm pretty convinced the problem lies within content_views.inc in CCK, so I'm changing the issue to point there.

Particulars: the argument in question is a CCK taxonomy.

During views_get_title, it checks for, and then call $arginfo[$argtype]['handler']
which turns out to be, in this case:

content_views_argument_handler in content_views.inc

Yet, the returned value, instead of being correct (ie text which is then substituted for %1), is empty...

Ideas?

HaraldB.’s picture

has anyone solved this problem yet or does somebody have more hints in the right direction?

HaraldB.’s picture

Until this problem is solved you can use something like that in your views argument code:

if(arg(1) != '') $view->argument[0]['title'] = arg(1);

drupalnesia’s picture

Status: Active » Closed (fixed)

Look like this issue has solved on views-5.x-1.6.

rmpel’s picture

Im running 5.x-1.6 and have the same issue still

soyarma’s picture

I'm running 1.7 and not using CCK for this and also getting the same problem.

doublejosh’s picture

This problem may have come back in D6 V2.