if you want her to crap in the courtyard, then it's super easy (i couldn't tell in the photo if the courtyard is enclosed or not, but i'm assuming it is). when she needs to crap or you want her to crap, take her down to the courtyard. if she shits, immediately take her for a walk. if she doesn't crap after five minutes or so, take her back upstairs and ignore her. then try her again in a few hours or whenever is convenient.
assumptions - 1) she likes going for walk, 2) she hasn't crap in the house.
that doesn't solve the shitting on the sidewalk when she doesn't need to crap issue, but it should pretty quickly get her to take a crap anytime you take her to the courtyard. if you want to turbocharge the learning process, give her a little food as you leash her up for the walk and a couple of times along the walk.