Closed (won't fix)
Project:
Viewfield
Version:
5.x-1.5
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2007 at 21:57 UTC
Updated:
30 Apr 2010 at 20:08 UTC
apologies if posting this here annoys anyone, but
I'm struggling to find the correct argument handling code for a viewfield view - the problem is that all the snippets, etc I can find are designed for views in blocks and I can get them to work in viewfields ...
my specific question is here http://drupal.org/node/112871#comment-203553
but I would welcome any general pointers ...
Comments
Comment #1
mfredrickson commentedI posted a follow in your forum post. Basically, viewfield has some basic token handling. You can use %nid in your viewfield arguments to get the data you want.
Asking questions in this queue is fine. That's what it's here for. :-)
Feel free to reopen this ticket if you need more support.
Cheers,
-Mark
Comment #2
JohnG-1 commentedDamn! that was quick :)
It works too! Now that's what I call customer care :)
Thankyou so much, I was getting very confused :P
John
Comment #3
(not verified) commentedComment #4
socialnicheguru commentedhas passing an argument to a viewfield ever worked?
I cannot get it to work on any view.
argument is [nid]
I see it in the content template but the value is not substituted and thus no view. The view works fine with an argument in the url.
Chris
Comment #5
socialnicheguru commentedi created a view that takes nid as an argument
I specify
force default
select only one allowed view
specify [nid] as argument
I have token installed.
If I specify an actual number like 100 instead of [nid] the argument is passed and a value is attribted to viewfield. I can see it in content template and in devel module.
If i use [nid], [vargs] = [nid] in devel and devel render. there is no substitution made for [nid].
any help out there?
Chris
Comment #6
that0n3guy commentedI am also having this problem as activelyOUT. If use an actual number I get it to work, but when I look at devel it shows only [vargs] = [nid]. Shouldn't this show [vargs]=24 (or whatever number?
I use token for imce so I know its working.
Any ideas?
Comment #7
that0n3guy commentedOh... I got it to work... no idea how, it just started to work... I must have been doing something simple and causing it to not work.
check out this post http://drupal.org/node/112871#comment-1049858 he shows all his setting for doing it.
Just to note, devel still shows [vargs] => [nid] so I'm guessing its not supposed to actually show the nid.
Comment #8
socialnicheguru commentedI just found this. I hoep this helps you all.
hi. i have been having problems with passing the current node as an argument in a viewfield. The current node is excluded because of recursion issues. I am using D5, but the solution was mentioned in an issue against D6 version of viewfield. It has taken me months to find this. I hope it helps someone else: http://drupal.org/node/165321
This particular comment worked like a charm
http://drupal.org/node/165321#comment-1033909
This SHOULD BE INCLUDED IN THE HANDBOOK OR README FOR VIEWFIELD SPECIFICALLY.
Comment #9
socialnicheguru commentedIs there a safe way to use viewfiled if you are passing in the nid of the node that you are calling viewfield from? there was a patch for 6, but nothing for 5.
Comment #10
sunI'm sorry, but there is no maintainer for Viewfield for Drupal 5 and D5 is EOL very soon (with the release of D7).