Hi,

I want to know if it's possible to do the following:

I have two content types (A and B) related. I have the list view of A type and I have a field in that view to show the title of B type related. But I don't want to show private nodes of type B to anonymous users. For example:

(List View of content type A (autenticated users))
title
The rainforest...
Animals (Content type B title links)
Ant (Public)
Monkey (Private)
Crocodile (Public)

(List View of content type A (anonymous users))
title
The rainforest...
Animals (Content type B title links)
Ant (Public)
Crocodile (Public)

Is it possible to do that with Access Private?

Thanks

Comments

stborchert’s picture

Could you please export the content types and the view and attach the results as text files to this issue?

_snake_’s picture

StatusFileSize
new2.05 KB
new971 bytes
new3.24 KB

The files are listed below. Thanks

stborchert’s picture

Project: Access Private » Private

Moving this to project Private because Access Private does not control this type of visibility.

@_snake_: If you select the title field as grouping field and exclude the title from display, you'll see a result like this (I've created one node of type "t_a" with references to 3 nodes of type "t_b"): http://screencast.com/t/kSAYbnjqLlT7.
Looking at the same page as a guest user I got this result: http://screencast.com/t/waUAltTe1.

As you can see, the title of the private node is hidden.

_snake_’s picture

Thanks for the help stBorchet!

But I need to show the node's title...I tried to follow your steps but there is something that I'm doing wrong because it doesn't work...

I suppose that you are talking about node's title of content type A, is that correct?

What is the '#' that appears for each node's title of content type B?

stborchert’s picture

"Test t_a #1" is the title of a node of type "t_a" (A). I've grouped the results by the title field of A and list the titles of B (t_b).

The '#' is part of the title I've given the nodes of type B.

_snake_’s picture

so, can you export and attach the data types and the view? I think is more easy to understand for me...

Thanks!

stborchert’s picture

StatusFileSize
new3.41 KB
new795 bytes
new996 bytes

Here are the exports.
Unfortunately the nodereference field hasn't been exported so I've created some screenshots for you:
http://screencast.com/t/tjWod5Hr
http://screencast.com/t/8i2hMIPhE
http://screencast.com/t/83vMbhs4

Stefan

_snake_’s picture

Hi,

Thanks for the attachments stBorchet! But the files are still showed...In your third screenshot I see an option that I don't have "Advanced - Nodes that can be referenced (view)". What should I do to activate that option?

Thanks again

Regards

stborchert’s picture

What should I do to activate that option?

Update your modules to the latest version. This is a default option of nodereference if views is enabled.

_snake_’s picture

Hi,

I have to deactivate the Node Widget module to see that option. It still doesn't work...

These are the versions of my modules :
Node Reference 6.x-2.6
Private 6.x-1.1
Views 6.x-2.8
Node Relationships 6.x-1.6
Corresponding Node References 6.x-3.3

adamps’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Tidying up ancient D6 support request.