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.

Comments

Christefano-oldaccount’s picture

Version: » 5.x-1.x-dev

bookmarking this

jeffvogelsang’s picture

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

McCool’s picture

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

jesss’s picture

Subscribing (5.x)

noah@groups.drupal.org’s picture

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

patchak’s picture

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

thinguy’s picture

Subscribing (5.x)

drupaloSa’s picture

subscribing (5.x)

amitaibu’s picture

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).

christefano’s picture

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?

amitaibu’s picture

@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.]

christefano’s picture

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

dopry’s picture

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.

amitaibu’s picture

dopry, you are the man! :)

jeffvogelsang’s picture

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

jeffvogelsang’s picture

[removed large duplicate post]

jeffvogelsang’s picture

[removed large duplicate post]

jeffvogelsang’s picture

Status: Postponed (maintainer needs more info) » Active

[removed large duplicate post]

jeffvogelsang’s picture

Wow, sorry about the massive dupes.

dopry’s picture

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...

jeffvogelsang’s picture

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

bgilday’s picture

Status: Active » Postponed (maintainer needs more info)

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.

heydere’s picture

Subscribing

bneel’s picture

Subscribing

sliiiiiide’s picture

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

dsel’s picture

Subscribing

seakayjay’s picture

subscribing.

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

christefano’s picture

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