In a steel framework, a sliding joint allows bending moment and shear force to be transferred across it in the longtudinal direction but disallows shear force to be transferred in the lateral direction.
For a concrete structure, a steel plate may be used at the end of a member and inserted in a slidign guide to form a sliding joint.
It suffices to insert two hinges exactly in the beam sections where the bending moment under vertical loading only is almost zero, that is in the inflection points of the beam deformed shape.
By this way, the beam will act as clamped clamped under vertical loads, but the beam will behave as a mechanism under horizontal (seismic) loads....
You can watch at the attached diagram. If you put hinges in the red dots (where the bnding moment under vertical loads is zero) nothing changes, but you could have a statically determinate structure for horizontal loads. But since the vertical load distributions are many, with different zero moment positions, you can only approximately meet the desired effect.....