Closed (fixed)
Project:
Viewfield
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2006 at 23:30 UTC
Updated:
25 Jan 2008 at 19:49 UTC
I quickly gave your module a try. Quite mindblending indeed.
I'm not quite sure I grasp all the possibilities, so I'm not sure if it's a bug or an intended feature :
Your module does not declare 'formatters', so you can't include a node's 'viewfield' in a view (well, you can, but it does not display anything).
Side note : we already had vocabulary issues between cck fields and view fields, but I guess this module brings us to the next level of hairtearing discussions. Devilish, you said ? :-)
Comments
Comment #1
mfredrickson commentedI think formatters should be implemented. I think the proper behavior should be to show how many items are in the query. That way you could do a sort based on the size of queries.
Eg, in table mode, a view might look like (with a viewfield of a tracker of the posts author)
[Title] [Posted] [Other Posts by Author]
Foo 20061111 26
Bar 20061109 20
....
If you have any other thoughts on formatters, let me know.
(As it already blowing your mind, I consider it extra devilish. :-)
Comment #2
webchick+1 for this feature. In our case, we're using Viewfield to setup a "Track listing" for album nodes... Track listing being a View that shows all the "Track" node types that reference the album being viewed. Works great.
However, in addition, we want a View to show a list of all albums and show the track listing as one of the fields in a table of the View.
I don't mind attempting to roll a patch for this if anyone could throw some direction my way. :)
Comment #3
yched commented@webchick - Yes, I guess that this 'nodereferrers' use case will be one of the most widespread - as a matter of fact I proposed the viewfield-based solution to replace the long-awaited 'nodereferrers' patch in http://drupal.org/node/60756#comment-154768
In order to ease that, I also submitted the 'same view / same args" feature request in http://drupal.org/node/100085 (which you already saw :-)
I think the 'default' formatter should output the view itself, and as mfredrickson said, why not have another one that just outputs the number of selected nodes... In fact there is an open choice of which formatters to be featured, but there should at least be one - the field is currently not completely CCK-compliant
Comment #4
mfredrickson commentedThanks for the ideas. It now has two formatters - one to display simple a count (could be _very_ useful for use with views_calc), the other displays the entire view. Count in is the default.
Cheers
-Mark
Comment #5
(not verified) commentedComment #6
moshe weitzman commentedthe list of formatters includes views provided style plugins like 'teaser' and 'full node' but i am not seeing those having any effect on dispay, nor do i see the code which would make them work properly. maybe a half implemented feature?
Comment #7
moshe weitzman commentedfixed - http://drupal.org/node/206167