integration with views module

biohabit - January 11, 2007 - 20:24
Project:NodeReferrer
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Thank you for developing this module.

On my site running the latest versions of Drupal 4.7.5, of CCK and the Views modules, the nodereferrer's fields are not available to publish through a view. I assume this will be coming soon but I figured putting in a feature request was appropriate.

#1

Christefano - January 28, 2008 - 22:41
Version:<none>» 5.x-1.x-dev

bookmarking this

#2

jjv - February 13, 2008 - 16:24

subscribing... I'd like this for version 5.x

#3

McCool - February 21, 2008 - 18:01

me too, (in 5.x)
this is exactly what I'm trying to do right now, anyone had any luck with this?

#4

jesss - March 10, 2008 - 15:41

Subscribing (5.x)

#5

noah@groups.dru... - April 1, 2008 - 01:04

I'm thinking of working on this -- has anybody else started to do so?

#6

patchak - April 16, 2008 - 10:58

ANy updates on this feature? I too need to put this in views...
Thanks

#7

thinguy - May 12, 2008 - 18:43

Subscribing (5.x)

#8

drupaloSa - May 14, 2008 - 19:36

subscribing (5.x)

#9

Amitaibu - May 22, 2008 - 21:04

I think this module might help the needs of the people here:
http://drupal.org/project/ReferencedByFilter (It preforms a query on a single field).

#10

christefano - May 22, 2008 - 21:58

For what it's worth, I never got ReferencedByFilter to work and I'm already using NodeReferrer on various sites anyway. I would really like Views integration.

Is anyone interested in contacting dopry and hiring him to work on this? Maybe we could all chip in a little if he's up for it and gives us a quote. Any takers?

#11

Amitaibu - May 23, 2008 - 08:28

@christefano,
ReferencedByFilter is not well maintained, however it's working for me. If you want you can contact me and I'll try to assist you with it. Now I'll stop hijacking this issue ;)

[EDIT: ReferencedByFilter doesn't work with referrer module.]

#12

christefano - May 25, 2008 - 06:10

@Amitaibu: thanks for the offer! I'll certainly contact you when I revisit ReferencedByFilter.

#13

dopry - June 10, 2008 - 06:45
Status:active» fixed

referenced by and refers to are two different directions for the relationship...

anyways node referrers now adds arguments and filters to views... they're pretty sweet in my opinion.. I'm using them already...

.darrel.

#14

Amitaibu - June 10, 2008 - 06:47

dopry, you are the man! :)

#15

jjv - June 10, 2008 - 20:19
Status:fixed» active

Just to note, the original request was to be able to display node referrer fields in the view, not arguments and filters. So, I don't think this particular issue has been addressed. The idea is to create a view that lists cck nodes that contain a node reference field. The view would list the items that would normally be listed in the node
referrer field on the cck node as a field in the view listing cck nodes.

Example:

Node Type Speech
Node: Bark, Node Referrer field Referring Animals detects Dog as a Node Reference
Node: Tweet, Node Referrer field Referring Animals detects Bird as Node Reference

Node Type Animal
Node: Rottweiler, Node Reference field Speech Types refers to Bark
Node: Cockatiel, Node Reference field Speech Types refers to Tweet
Node: Parrot, Node Reference field Speech Types refers to Tweet

View: Speech Types and their Animals:

Speech | Animal(s)
Tweet | Cockatiel, Parrot
Bark | Rottweiler

Hopefully that illustrates what is described as the issue.

Thanks,

jjv

#16

jjv - June 17, 2008 - 18:54

[removed large duplicate post]

#17

jjv - June 17, 2008 - 18:53

[removed large duplicate post]

#18

jjv - June 17, 2008 - 18:53

[removed large duplicate post]

#19

jjv - June 10, 2008 - 20:20

Wow, sorry about the massive dupes.

#20

dopry - June 12, 2008 - 23:47
Status:active» fixed

@jjv: As far as I know you can do just that with the filters. Filter on nodereferrers with field named speech type, an set value to tweet... should return the set nodes that reference tweet. Unless I totally missed something...

#21

jjv - June 17, 2008 - 01:23
Status:fixed» postponed (maintainer needs more info)

I think there might be some mis-communication here. I don't want to filter, I want to display the nodereferrer values in a column. I don't see any way to do that now. The original issue says (and mine as well) "the nodereferrer's fields are not available to publish through a view". Adding a filter or an argument to the view doesn't publish, or provide a column to display showing the node title of the node that refers to the node being listed in the view.

To be more specific: Node referrer is the other side of node reference. Let's look at node reference. If I make a view that lists nodes that reference other nodes using node reference, I can add a field to the view that displays in a column the titles of the nodes that are referenced. This is because node reference provides for node reference fields to be selected in the "fields" definition of a view. Now, let's make a view that lists nodes that are referenced by nodes that the first view showed. I cannot display as a column in this view the node referrers for these nodes, because node referrer doesn't make node referrer fields available to select as fields in the view definition.

Look at the example again, only I'll be more specific, and use an exact reproducible set of types.

CCK Node Type: Speech

    - Field 1
      Label: Name
      Field Name: field_speech_type_name
      Type: text

    - Field 2
      Label: Animals Speaking This
      Field Name: field_animals_speaking_this
      Type: Node Referrer
        Referring Node Types: Animal

CCK Node Type: Animal

    - Field 1
      Label: Name
      Field Name: field_animal_type_name
      Type: Text

    - Field 2
      Label: How I Speak
      Field Name: field_animal_types_of_speech
      Type: Node Reference
        Content types that can be referenced: Speech

Sample Data:

Node 1
  Name: Bark
  Animals Speaking This: Rottweiler

Node 2
  Name: Tweet
  Animals Speaking This: Parakeet, Cockatiel, Parrot

Node 3
  Name: Hiss
  Animals Speaking This: Kitty, Rattler Snake

Node 4
  Name: Meow
  Animals Speaking This: Kitty

Node 10
  Name: Rottweiler
  How I Speak: Bark (Node 1)

Node 11
  Name: Kitty
  How I Speak: Hiss (Node 3), Meow (Node 4)

Node 12
  Name: Parakeet
  How I Speak: Tweet (Node 2)

Node 13
  Name: Rattler Snake
  How I Speak: Hiss (Node 3)

Node 14
  Name: Cockatiel
  How I Speak: Tweet (Node 2)

Node 15
  Name: Parrot
  How I Speak: Tweet (Node 2)

----

View 1: Animals

Fields
Node: ID [ ID ]
Text: Name (field_animal_type_name) [ Animal Name ]
Node Reference: How I Speak (field_animal_types_of_speech) [How I Speak]

Output:

** Animals
-------------------------------------
| ID |    Animal Name | How I Speak |
-------------------------------------
| 10 |     Rottweiler |        Bark |
-------------------------------------
| 11 |          Kitty |        Hiss |
|    |                |        Meow |
-------------------------------------
| 12 |       Parakeet |       Tweet |
-------------------------------------
| 13 |  Rattler Snake |        Hiss |
-------------------------------------
| 14 |      Cockatiel |       Tweet |
-------------------------------------
| 15 |         Parrot |       Tweet |
-------------------------------------

----

View 2: Speech
(I CAN'T MAKE THIS VIEW, BECAUSE NODE REFERRER DOESN'T PUBLISH FIELDS)

Fields
Node: ID [ ID ]
Text: Name (field_speech_type_name) [ Speech Name ]
Node Referrer: Animals Speaking This (field_animals_speaking_this) [Animals Speaking This] (NOT POSSIBLE!)

Output:

** Speech
---------------------------------------
| ID | Speech | Animals Speaking This |
---------------------------------------
|  1 |   Bark |            Rottweiler |
---------------------------------------
|  2 |  Tweet |              Parakeet |
|    |        |             Cockatiel |
|    |        |                Parrot |
---------------------------------------
|  3 |   Hiss |                 Kitty |
|    |        |         Rattler Snake |
---------------------------------------
|  4 |   Meow |                 Kitty |
---------------------------------------

If I am missing something, please let me know, but I think right now, view 2 is not possible.

Thanks,

jjv

#22

shifthappens - June 21, 2008 - 05:57

I am also looking for similar functionality. For me, I basically want to be able to add a Nodereferrer field to a view in the exact same way that today you can add a nodereference field to a view. The Nodereferrer field would display the Title of the referred node as a link.

#23

heydere - June 25, 2008 - 02:04

Subscribing

#24

bneel - August 20, 2008 - 11:23

Subscribing

#25

sliiiiiide - September 22, 2008 - 03:34

jjv, what about setting a page view showing full nodes (or teasers), filtered to node type speech?

#26

dsel - December 14, 2008 - 01:26

Subscribing

#27

ckjian - December 14, 2008 - 18:38

subscribing.

@christefano - I agree with your suggestion. I'm willing to chip-in for the development of this module. What's the quote?

#28

christefano - December 14, 2008 - 21:30

@dopry: are you available to do this? ckjian and I (and possibly others) are interested in sponsoring this integration.

 
 

Drupal is a registered trademark of Dries Buytaert.