Limit amount of adding a certain Paragraph per Content type
Clash 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...
8 entities paragraphs
add a comment |Â
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...
8 entities paragraphs
add a comment |Â
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...
8 entities paragraphs
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
8 entities paragraphs
asked 1 hour ago


meez
464417
464417
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered 49 mins ago
leymannx
5,79242355
5,79242355
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password