Can we apply placeholder settings for rendering variants?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
5
down vote

favorite












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?







share|improve this question
























    up vote
    5
    down vote

    favorite












    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?







    share|improve this question






















      up vote
      5
      down vote

      favorite









      up vote
      5
      down vote

      favorite











      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?







      share|improve this question












      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?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 27 at 17:01









      Manideep Yechuri

      554




      554




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          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 Key value. Make sure you do not add a dash to the key name

          • Go to your placeholder settings for your site <siteroot>/Presentation/Placeholder Settings and add a placeholder

          • In the Data section enter the Placeholder Key you just added into your rendering variant and suffix it with * to make it dynamic. So if your key was MyRenderingVariantPlaceholder, you would enter MyRenderingVariantPlaceholder*

          Now you can restrict the use of renderings by using the allows controls field like you would in other Placeholder Settings.






          share|improve this answer




















          • Thanks for the response @Richard. But what if we have already created a placeholder in Partial design and need to restrict a particular rendering variant of a component in that placeholder. Thanks
            – Manideep Yechuri
            Aug 28 at 7:05










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "664"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f13548%2fcan-we-apply-placeholder-settings-for-rendering-variants%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote













          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 Key value. Make sure you do not add a dash to the key name

          • Go to your placeholder settings for your site <siteroot>/Presentation/Placeholder Settings and add a placeholder

          • In the Data section enter the Placeholder Key you just added into your rendering variant and suffix it with * to make it dynamic. So if your key was MyRenderingVariantPlaceholder, you would enter MyRenderingVariantPlaceholder*

          Now you can restrict the use of renderings by using the allows controls field like you would in other Placeholder Settings.






          share|improve this answer




















          • Thanks for the response @Richard. But what if we have already created a placeholder in Partial design and need to restrict a particular rendering variant of a component in that placeholder. Thanks
            – Manideep Yechuri
            Aug 28 at 7:05














          up vote
          3
          down vote













          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 Key value. Make sure you do not add a dash to the key name

          • Go to your placeholder settings for your site <siteroot>/Presentation/Placeholder Settings and add a placeholder

          • In the Data section enter the Placeholder Key you just added into your rendering variant and suffix it with * to make it dynamic. So if your key was MyRenderingVariantPlaceholder, you would enter MyRenderingVariantPlaceholder*

          Now you can restrict the use of renderings by using the allows controls field like you would in other Placeholder Settings.






          share|improve this answer




















          • Thanks for the response @Richard. But what if we have already created a placeholder in Partial design and need to restrict a particular rendering variant of a component in that placeholder. Thanks
            – Manideep Yechuri
            Aug 28 at 7:05












          up vote
          3
          down vote










          up vote
          3
          down vote









          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 Key value. Make sure you do not add a dash to the key name

          • Go to your placeholder settings for your site <siteroot>/Presentation/Placeholder Settings and add a placeholder

          • In the Data section enter the Placeholder Key you just added into your rendering variant and suffix it with * to make it dynamic. So if your key was MyRenderingVariantPlaceholder, you would enter MyRenderingVariantPlaceholder*

          Now you can restrict the use of renderings by using the allows controls field like you would in other Placeholder Settings.






          share|improve this answer












          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 Key value. Make sure you do not add a dash to the key name

          • Go to your placeholder settings for your site <siteroot>/Presentation/Placeholder Settings and add a placeholder

          • In the Data section enter the Placeholder Key you just added into your rendering variant and suffix it with * to make it dynamic. So if your key was MyRenderingVariantPlaceholder, you would enter MyRenderingVariantPlaceholder*

          Now you can restrict the use of renderings by using the allows controls field like you would in other Placeholder Settings.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 27 at 17:08









          Richard Seal♦

          12.5k32155




          12.5k32155











          • Thanks for the response @Richard. But what if we have already created a placeholder in Partial design and need to restrict a particular rendering variant of a component in that placeholder. Thanks
            – Manideep Yechuri
            Aug 28 at 7:05
















          • Thanks for the response @Richard. But what if we have already created a placeholder in Partial design and need to restrict a particular rendering variant of a component in that placeholder. Thanks
            – Manideep Yechuri
            Aug 28 at 7:05















          Thanks for the response @Richard. But what if we have already created a placeholder in Partial design and need to restrict a particular rendering variant of a component in that placeholder. Thanks
          – Manideep Yechuri
          Aug 28 at 7:05




          Thanks for the response @Richard. But what if we have already created a placeholder in Partial design and need to restrict a particular rendering variant of a component in that placeholder. Thanks
          – Manideep Yechuri
          Aug 28 at 7:05

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f13548%2fcan-we-apply-placeholder-settings-for-rendering-variants%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          One-line joke