Hey,
I think what you mean is how to apply the CAGED system to different Scales than the D-Major scale. I will explain it in the way how I remember and use it.
Every shape has the root note of the scale your are applying it on somewhere on the lowest two strings, except the D-Shape, where the root is located on the 3rd string.
So take for example the C-Shape from the lowest to the highest string in the case of D-Major. The first D that appears is on the A-String on the 5th fret.
Now remember, where the root note of your scale is in the shape.
If you want to play e.g. a G-Major scale in the C-Shape now, you gotta look for your G on the A-String. The first G on the A-String is located on the 10th fret. Now all you gotta do is build the C-Shape based on the 10th fret of the A-String, instead of the 5th and boom. There is your G-Major chord. Now you can use the C-Shape-Pentatonic pattern, the arpeggio and the Major scale pattern, revolving around the 10th fret of your A-string to build everything in G-Major.
I hope this solves your problem.
Cheers