I think we need a explanation in idiot terms how, what ,where
holes in the end are Pressure and Tank (supply and return) -- holes in the top are where you want to send the oil to A or B - 3 pairs (open / close cylinder for example)-- holes in the front face are where the solenoid valve bolts on to - outer 4 are bolt holes - inner four are P, T, A & B ...
depending on which solenoid (a or b) is activated depends whether P goes to A or P goes to B with neither operated there is no flow to either and the oil flow in the
manifold just circulates -- it basically takes a flow, whether constant, proportional or on/off and redirects it to whichever location you want it to go -- one supply can be directed to as many outputs/services as you like (three in this case - three way/gang manifold)
6 x 2 diverters are literally just that and work either way -- P1/P2 are your two service lines - with the solenoid dormant P1/P2 go to ports C & D with whatever is connected to them (say a rotate circuit) - with the solenoid energised the shuttle in the valves body re-directs the P1/P2 to ports A & B and whatever is connected to them (say grab) - the oil will flow in either direction in these but they do need a case drain (open, unrestricted line to the tank) for the leakage within the valve body or pressure builds up and the solenoid can't overcome it