i'have udated my website with the version 6.x-2.14 of views and now an option have disapeared.
in my view " my topics menu" > "Arguments" > "taxonomy: id of term" > "Action to do if argument is not present " > "give defaut argument"
the option "Taxonomy Term ID from URL" is not available anymore.
Why?
I suppose it s not a bug? but how now i can use that type of arguments now?
PS: sorry for my poor english
Thank you
Comments
Comment #1
hizard commentedComment #2
tom.camp commentedYeah, I noticed the same thing. I can fix it by changing the Action to take to PHP code and using return arg( 2 );. This makes the view work correctly, but it isn't exactly ideal.
Comment #3
tom.camp commentedIt also appears that the Hide if empty checkbox is no longer working.
Comment #4
dawehnerSo about the empty checkbox, there is another issue for this, which said that this is commited now in 6.x-2.x
So about the taxonomy term id from url, this didn't worked before, so we removed it until we have time to fix it.
Sadly i can't find the other issue which has as far as i remember a patch to add it back, but working.
Comment #5
hizard commentedThank you all for yours comment. Actualy i solved the problem by moving to views-6.x-3.0-rc2.
I had to fix some views tought because the "use pagination" have changed. but it s only a mather of a few click.
@ Tom.Camp
can you please give me the exact PHP code of "return arg( 2 )" that i have to past in my view " my topics menu" > "Arguments" > "taxonomy: id of term" > "Action to do if argument is not present " > "PHP code"
@dereine
i've noticed that the "taxonomy term id from url" does'nt work in the view preveiw but it works in the website.
Comment #6
avantwaves commentedYes the "taxonomy term id from url" was working for me just fine in the website. Actually I have a view that depends entirely of this feature.
@ Tom.Camp if you can post the php snippet would be awesome.
Ok, the php is only
return arg(2);That is working for me :)
Comment #7
dawehnerSee #684608: Default Argument for taxonomy tids