Filter "has new content"
Eliza - July 2, 2009 - 03:23
| Project: | Node Relativity |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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?

#1
You'd need to develop a module and new filter handler to do that.
#2
If I could do that, I wouldn`t ask you.
#3
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.
#4
I see...
#5
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
#6
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?
#7
Hi Eliza
This seems like a support request for Node Relativity.
I don't use that module so I can't really help.
Alan