Here's my use case.
I have a view which displays the contents of a node and some related nodes on a page. The view takes a node ID as an argument. When the node if that type is updated I have a rule that runs and reloads that view.
However I'd like it to only refresh the page for that view for that specifically updated node instead of all instances of that view (as the other nodes remain unaffected, their display wouldn't have changed).
I can see in the code that the js array in the browser has the list if arguments present. I was wondering if it would be possible to add some logic to help determine if that channel needs updating.
Or perhaps register a channel for each instance of a view given their contextual argument values.
I'm willing to put dev time against this but I just need a bit if help to get started.
Comments
Comment #1
andrewsizz commentedHi Mathew.
It's interesting proposition, but this module universal for all views(not only for nodes). And it will be hard to update only for some part.
But anyway I will think about.)
thanks, Andrew.
Comment #2
minoroffense commentedThe key being to register a channel for each contextual argument value / combination regardless of whether it be a node argument or any entity.
I'll be spending time trying to figure this out as well.
Comment #3
delacosta456 commentedhi
iam also intrested for this..
And if not non-sense , another scenario of need of refresh per view can be :
Having a main view of in table format that embed another "child view" (display).. will it be possible to have a feature like :
** refresh "embed view" where row->index is equal to .. "X" ?
Thanks
Comment #4
delacosta456 commentedhi please any update about this
Thanks