Hi to all,

>>INTRODUCTION<<
. I have different programmes which can be: A, B, C, etc...
. Each programme can have the same or different activies node:

So

A = activity1, activity2, activity3, etc...
B = activity4, activity5, activity6, etc...
C = activity7, activity8, activity9, etc...

>>GOAL<<

I want to have a Drupal View block that shows the previous and the next of the activity that is currently displayed and with the reference to same programme.

for example

< prev activity| next activiy :>

>>PROBLEM<<

1. by drupal UI with the contextual filter doesnt work for me.
2. by coding, how to do that? create module or export the view code or creating a php field?
where and know-how to code it?

I unsuccessful tried to create a new block, then a php field in the main view of the current activity and trying to extend and manipulating it
and this https://www.drupal.org/node/2012420
but nothing to do.

Anyone is able to do that?
Any suggests, solution pls?!

Im completely stuck since 2 days.

Thx in advanced to all.
L