Active
Project:
Node Relativity
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2009 at 03:23 UTC
Updated:
2 Jul 2009 at 19:20 UTC
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
Comment #1
merlinofchaos commentedYou'd need to develop a module and new filter handler to do that.
Comment #2
Eliza commentedIf I could do that, I wouldn`t ask you.
Comment #3
merlinofchaos commentedSorry, 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.
Comment #4
Eliza commentedI see...
Comment #5
alanburke commentedThis 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
Comment #6
Eliza commentedActually 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?
Comment #7
alanburke commentedHi Eliza
This seems like a support request for Node Relativity.
I don't use that module so I can't really help.
Alan