Limit amount of adding a certain Paragraph per Content type

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





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












I use Drupal 8 Paragraphs module.



I created a Content type Landingpage.



I create some Paragraph types like Hero Image, Intro text etc.



In the Content type Landingpage I created a Paragraph Entity reference revisions field. In the REFERENCE TYPE, the Paragraph types Hero Image, Intro text are selected.



How do I manage the site editor is able to only insert one time (one value), the Hero Image Paragraph type? Because it doesn't make sense to have more then one Hero image section on the website...










share|improve this question



























    up vote
    1
    down vote

    favorite












    I use Drupal 8 Paragraphs module.



    I created a Content type Landingpage.



    I create some Paragraph types like Hero Image, Intro text etc.



    In the Content type Landingpage I created a Paragraph Entity reference revisions field. In the REFERENCE TYPE, the Paragraph types Hero Image, Intro text are selected.



    How do I manage the site editor is able to only insert one time (one value), the Hero Image Paragraph type? Because it doesn't make sense to have more then one Hero image section on the website...










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I use Drupal 8 Paragraphs module.



      I created a Content type Landingpage.



      I create some Paragraph types like Hero Image, Intro text etc.



      In the Content type Landingpage I created a Paragraph Entity reference revisions field. In the REFERENCE TYPE, the Paragraph types Hero Image, Intro text are selected.



      How do I manage the site editor is able to only insert one time (one value), the Hero Image Paragraph type? Because it doesn't make sense to have more then one Hero image section on the website...










      share|improve this question













      I use Drupal 8 Paragraphs module.



      I created a Content type Landingpage.



      I create some Paragraph types like Hero Image, Intro text etc.



      In the Content type Landingpage I created a Paragraph Entity reference revisions field. In the REFERENCE TYPE, the Paragraph types Hero Image, Intro text are selected.



      How do I manage the site editor is able to only insert one time (one value), the Hero Image Paragraph type? Because it doesn't make sense to have more then one Hero image section on the website...







      8 entities paragraphs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      meez

      464417




      464417




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Things which only should be unique to a node, should better be attached directly to that node.



          There's already a feature request on DO. But I'd recommend you to solve this by attaching these things directly to the node, with standard image or text fields.



          -- node type
          |__ hero image field
          |__ intro text field
          |__ paragraphs field


          The only other alternative I see is to add multiple Paragraphs fields to your content type and then limit them to only one type and one item.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "220"
            ;
            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%2fdrupal.stackexchange.com%2fquestions%2f270938%2flimit-amount-of-adding-a-certain-paragraph-per-content-type%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
            2
            down vote













            Things which only should be unique to a node, should better be attached directly to that node.



            There's already a feature request on DO. But I'd recommend you to solve this by attaching these things directly to the node, with standard image or text fields.



            -- node type
            |__ hero image field
            |__ intro text field
            |__ paragraphs field


            The only other alternative I see is to add multiple Paragraphs fields to your content type and then limit them to only one type and one item.






            share|improve this answer
























              up vote
              2
              down vote













              Things which only should be unique to a node, should better be attached directly to that node.



              There's already a feature request on DO. But I'd recommend you to solve this by attaching these things directly to the node, with standard image or text fields.



              -- node type
              |__ hero image field
              |__ intro text field
              |__ paragraphs field


              The only other alternative I see is to add multiple Paragraphs fields to your content type and then limit them to only one type and one item.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                Things which only should be unique to a node, should better be attached directly to that node.



                There's already a feature request on DO. But I'd recommend you to solve this by attaching these things directly to the node, with standard image or text fields.



                -- node type
                |__ hero image field
                |__ intro text field
                |__ paragraphs field


                The only other alternative I see is to add multiple Paragraphs fields to your content type and then limit them to only one type and one item.






                share|improve this answer












                Things which only should be unique to a node, should better be attached directly to that node.



                There's already a feature request on DO. But I'd recommend you to solve this by attaching these things directly to the node, with standard image or text fields.



                -- node type
                |__ hero image field
                |__ intro text field
                |__ paragraphs field


                The only other alternative I see is to add multiple Paragraphs fields to your content type and then limit them to only one type and one item.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 49 mins ago









                leymannx

                5,79242355




                5,79242355



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdrupal.stackexchange.com%2fquestions%2f270938%2flimit-amount-of-adding-a-certain-paragraph-per-content-type%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

                    Confectionery