Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.x-dev
Component:
Views Integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2007 at 01:50 UTC
Updated:
13 Jan 2010 at 23:17 UTC
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
Comment #1
amitaibuWhat is the URL your using for the page view?
it should be
list/mylistComment #2
patricksettle commentedI'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.
Comment #3
catchOK 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?
Comment #4
sethcohn commentedI'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")
Comment #5
sethcohn commentedAfter 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?
Comment #6
HaraldB. commentedhas anyone solved this problem yet or does somebody have more hints in the right direction?
Comment #7
HaraldB. commentedUntil this problem is solved you can use something like that in your views argument code:
if(arg(1) != '') $view->argument[0]['title'] = arg(1);Comment #8
drupalnesia commentedLook like this issue has solved on views-5.x-1.6.
Comment #9
rmpel commentedIm running 5.x-1.6 and have the same issue still
Comment #10
soyarma commentedI'm running 1.7 and not using CCK for this and also getting the same problem.
Comment #11
doublejosh commentedThis problem may have come back in D6 V2.