What you will need to do is set up a layer blend material. Then you assign this material to your landscape. Lastly you will add a layer info node to your layers in your landscape layers.
After doing this you will go to your foliage and assign it to the name of the layer you want. For instance, if you called a landscape layer grass you will assign the foliage to be painted on grass.