How can I change the function of the filter "has new content" a little? I have child nodes viewed inside the parent ones. Is it possible to consider that child node is already viewed, when its` parent node is viewed?

Comments

merlinofchaos’s picture

Status: Active » Fixed

You'd need to develop a module and new filter handler to do that.

Eliza’s picture

If I could do that, I wouldn`t ask you.

merlinofchaos’s picture

Sorry, that question is far too complex to answer like that. You need to understand the schema, and learn the Views API. You can study and copy the existing handlers, but with 1200 open issues, it's not exactly a high priority to handhold you through a request this specific. Sorry.

Eliza’s picture

I see...

alanburke’s picture

This is really outside the realm of views.

Views know what content 'has new content' and which does not.
What you need is someway to make those parent nodes as not having new content when a child node is viewed.

[Incidentally, I don't even know what you mean by parent and child nodes - are you using the book module or something?]

At a guess [big guess], you might need a custom module with hook_nodeapi which does some 'action' on the parent node if the child node is viewed.

Alan

Eliza’s picture

Actually things are vice versa - child nodes could not be viewed at all (only in the view, wich is in the parents` node body). I use Node Relativity module. That is why child nodes seems ALWAYS have new content. "Has new content" filter checks whether or not the updated node has been viewed by the user, am I wright? What is needed, is to check whether or not has been viewed parent node of the current child.
I have found this: http://drupal.org/node/211636 (View Argument: Node viewed by User). Can it be usefull for my case?

alanburke’s picture

Project: Views (for Drupal 7) » Node Relativity
Version: 6.x-2.6 » 6.x-1.2
Status: Fixed » Active

Hi Eliza
This seems like a support request for Node Relativity.
I don't use that module so I can't really help.
Alan