As SXA is supporting placeholder settings for different renderings, Is there any way that we can setup placeholder settings for rendering variants too for a single rendering?
welcome to SSE.
The short answer is, yes you can. Here is the reference material: https://doc.sitecore.net/sitecore_experience_accelerator/building_the_layout/renderings/add_a_dynamic_placeholder_to_a_rendering_variant
The longer answer:
- Add a placeholder to your rendering variant and add the
Placeholder Keyvalue. Make sure you do not add a dash to the key name
- Go to your placeholder settings for your site
<siteroot>/Presentation/Placeholder Settingsand add a placeholder
- In the
Datasection enter the
Placeholder Keyyou just added into your rendering variant and suffix it with
*to make it dynamic. So if your key was
MyRenderingVariantPlaceholder, you would enter
Now you can restrict the use of renderings by using the allows controls field like you would in other Placeholder Settings.