Questions tagged [paragraphs]

Use it for questions relating to the Paragraphs module, not for text or body paragraphs.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Import node with paragraphs using Feeds module

I would like to import node with multiple paragraphs, but I can't make the feeds module work with paragraphs. Here's a sample xml data that needs to be uploaded:- <test-feed> <...
-1
votes
1answer
47 views

Get array number of paragraph item in TWIG

I have a paragraph (Entity reference revisions) with multiple items. I would like to display the item list rendered. I only get the paragraph as element['#object'] (in a pseudo field). ...
-2
votes
1answer
26 views

How can I create a new Paragraph item programmatically in an Ajax form handler?

I need to add Paragraph fields programmatically to an entity in an AJAX handler. This is my AJAX callback and how it's added: function mymodule_form_alter(&$form, \Drupal\Core\Form\...
0
votes
0answers
31 views

JSON view (rest export)

I have a rest export view and this is my output: { title: "about", view: "[{"id":7,"field_history_json":7,"field_history_text":"sdfsfsdffd","field_history_year":3244}]" } My field "view" is a ...
-2
votes
0answers
28 views

Prepoulate content in comment

Scenario: I have purchase request content type.It has a paragraph referenced field.(requested items). User creates a purchase request and another user will be able to add a price for items in comment ...
-1
votes
0answers
19 views

Override video-embed-frame.html.twig?

I have used the video-embed-frame.html.twig for loading the video as autoplay, looping and hiding controls. And I am having the video embed field inside the paragraph. After override this video, If ...
1
vote
0answers
33 views

Programmatically add more 'paragraphs' in form alter ajax call [duplicate]

I have a content type called repair that has a multi paragraph field (field_products) called Products. In the create new repair form I have an ajax button that fetches N number of products and ...
0
votes
1answer
28 views

One field (entity reference - paragraph) with two display modes

I am having issue with displaying one field twice in my template having different display modes. I have a content type basic page with field field_gallery (which is entity reference on paragraph). In ...
0
votes
1answer
54 views

Custom formatter for paragraphs field

I want to build a custom formatter for a paragraphs field that renders some of the fields of the paragraph. However, I don't know how to access the single files of the paragraph field. So far I've ...
0
votes
0answers
16 views

Migrating without changing structure

I'm trying to to migrate Paragraphs content from my existing Drupal 7 site to a new Drupal 8 site. The content models are not changing. As one of the simplest examples, I'm migrating Paragraphs ...
0
votes
3answers
46 views

Attach different CSS classes to first and second link

I have a Paragraph type 'Call to action' with one link field field_link. I have another Paragraph type where I call the 'Call to action' paragraph as an Entity reference revisions field. With Allowed ...
1
vote
1answer
36 views

Export Paragraph bundle with Drupal Console

I know there is a command to export a content type config:export:content:type But is there a way to do this for a Paragraph bundle? Something like this isn't working config:export:paragraph:type
0
votes
1answer
48 views

Anchor links to paragraph content

I have some drupal 8 sites that make heavy use of the Paragraphs and Bootstrap Paragraphs modules. Some of my users want to be able to create anchor style links to specific paragraph items on pages. ...
-1
votes
1answer
38 views

I removed the module from my site and now I'm getting an entity type error

I have an issue where I removed the paragraphs and bootstrap_paragraphs modules from my site and now I am unable to access the admin or the site. It is saying that the paragraphs entity type doesn't ...
1
vote
1answer
26 views

How to delete paragraph when uninstalling the module?

I have been creating the custom module which have the paragraph configuration, when installing the custom module, the paragraph config will be stored in the database and then It will be available in ...
0
votes
1answer
66 views

Hide fields in Paragraphs conditionally using Form API #states

Because the Conditional Fields module doesn't work with paragraphs for Drupal 8, I've followed the instructions in Conditional Fields in Paragraphs Using the Javascript States API for Drupal 8 to hide ...
1
vote
1answer
62 views

Email misses fields from form [closed]

This is regarding a Drupal 8 site, specifically Drupal 8.7.1 and the "Contact" module (with Contact Emails, Contact Storage enabled). The issue that I'm running into is some of the fields are not ...
0
votes
0answers
30 views

Create custom webform when creating node?

I’m trying to find out if it’s possible to create webforms when creating nodes or paragraphs. I mean instead of choosing a predefined webform, then build it right inside the field. I figured that ...
0
votes
0answers
22 views

viewsreference child view Sample Code

Is there any example code for creating a new paragraph object with a viewsreference field and setting a view on the viewsreference field with its "type" and other display options set? Can't really ...
1
vote
1answer
53 views

How to filter a node view on a paragraph field

I have a content type "Lunch" containing a paragraph type field named "Ingredients". This is a multiple values field which store a prapgraph type named "Ingedients" => Taxonomy term + Quantity LUNCH ...
-1
votes
1answer
85 views

Retrieving value of paragraph type with entity reference revision through preprocessor

I have created a paragraph type which has field of type entity reference, link, plain text. Now I want to fetch the values present in these through the preprocessor.paragraph.inc and display it in ...
0
votes
0answers
26 views

How to get file fid value in paragraph and view templates

Hi i am trying to access file fid value in paragraph twig template file but cant access it. Though I can print file uri but I need to access fid of the file Here is my code in paragraph.pdfdocument....
0
votes
0answers
9 views

How to access the value of another field in the same field collection from a field template file?

In Drupal 7 I've customised a file download field in a template file: field--field-downloads.tpl.php Within the same field collection (using the 'field_collection' module: https://www.drupal.org/...
0
votes
1answer
83 views

Get node data from entity reference field

I have an entity reference field to a content type blog. I referenced a specific blog, but when I render that field in twig using {{ content.field_blog }}. I want to get the autor name and time when ...
0
votes
1answer
85 views

Migrate node with paragraph

I'm trying to figure out how migrating content from a Drupal 7 site to a Drupal 8 site works. I managed to understand how to create a custom module to migrate nodes with regular fields to my new D8 ...
0
votes
1answer
49 views

How to print the URL path of a referenced node using paragraphs?

I'm trying to print out the url path of a node from a referenced entity paragraph field in my twig template however have not had any success so far. I have tried various common twig functions but with ...
0
votes
0answers
34 views

Conditional Fields inside Paragraphs not working

Am able to get the configured conditional fields in hook_field_widget_WIDGET_TYPE_form_alter() and trying to apply them for Paragraph fields but not working, below is the code(most of it copied from ...
0
votes
0answers
25 views

Update to drupal 8.7 caused paragraphs to display improperly

I am using bootstrap paragraphs (BP) as part of my project. When I updated to D8.7, the BPs that define layout (e.g. 2 column, accordion, etc.) stopped displaying. I then tried a roll back to 8.6 ...
0
votes
0answers
29 views

Need to alter “No Paragraph added yet. Select a Paragraph type and press the button below to add one.” message - Paragraph Module

I am using paragraph bundle and I want to alter this message with my custom text "Please click on below button to add data".
1
vote
2answers
68 views

Change autocomplete results based users selected checkbox

I have a drupal 8 site that uses the paragraphs module. In one of the paragraph is a field that contains an autocomplete field. It is already set up to reference a small list of Content Types. For ...
0
votes
0answers
68 views

Loop Paragraph types with all values in field--field-page-detail-paragraph.html.twig

I have two paragraph types called First Type & Second Type and added Image & Text fields on it separately. I have created the basic page & added the two above paragraphs(First Type & ...
0
votes
0answers
42 views

How to access specific checkboxes in a widget_type form alter?

I have a Paragraph with two List (text) fields. One is using the Select widget and the other using Check boxes. There are 14 checkbox options—I'm trying to show/hide certain checkboxes based on the ...
0
votes
3answers
98 views

How can I have a nested slideshow with paragraphs and views?

Initial situation I have a node type with a paragraph field. Each paragraph of the paragraph field is rendered among themselves. What I want to achieve The paragraph field inside the node should ...
2
votes
1answer
80 views

How to disable views pager programatically in certain cases

I have a paragraph which shows a view. The editor may set some options as argument filters, sort and show/hide pager. "Normal" fields are used to collect these options and ...
0
votes
1answer
55 views

How to query paragraphs content?

Does any one have an example how I can query the paragraph entity type of a given node ? Let's say I have a node that contains a field 'field_paragraph' that is linked to the paragraph module . How ...
1
vote
1answer
107 views

Change title of certain paragraphs in a form

Please see the attached pictures. In one of my projects I have a taxonomy, which users can edit and add data. It has multiple tabs (see picture one) and each tab has multiple fields in which ...
1
vote
0answers
38 views

How to hide paragraph with data?

I am using paragraph module. Named Address: It has fields address 1, address 2, state, country. (User can add unlimited addresses) While creating the node, I have added 2 address. While edit, I ...
0
votes
0answers
71 views

The “paragraphs_type” entity type did not specify a access handler

When i try to access paragraph type page i get following error. Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "paragraphs_type" entity type did not specify a access handler ...
0
votes
1answer
71 views

Add/List/Edit paragraphs while add/edit node

I have installed paragraph module. I have paragraph called Address contains relevant info. It is attached to node. Per page/article I have more than 100 address. If I use default Paragraph Classic ...
1
vote
2answers
76 views

Trying to access and print the values from the fields within Paragraph

I'm having trouble trying to access and print the values manually within the Paragraph. This is a snippet from the paragraph field template I have created. I wanted to access and print values manually ...
0
votes
1answer
44 views

Editing contents of custom block referenced in paragraph type, doesn't reflect changes in node where displayed

So, I have a Custom Block type, let's call it Sidebar Links Block. In an Article, we have a Sidebar paragraph type that allows quite a few different entities, one of which is the Article Sidebar Links ...
0
votes
1answer
246 views

How to retrieve value of hidden field in twig?

How to retrieve value of hidden field in twig? PFB screenshot: I am able to retrieve value of "Partition Count" field when not disabled. But not able to retrieve it's value when disabled. Exact ...
0
votes
0answers
30 views

Paragraphs using dependent fields

I have the following contents and taxonomies set up: Army - Content Unit Type - Content Unit - Paragraph type Factions - Taxonomy The Army content type contains a paragraph type Unit which ...
0
votes
0answers
19 views

Footnotes module not working properly with Paragraphs module

When using Footnotes with Paragraphs, the module puts footnotes at the bottom of each of the paragraphs rather than at the end of the page. Is there any way to change this?
0
votes
1answer
24 views

How do I use a views data with a paragraph? [duplicate]

I have a content type with dynamic content block section. Each block section is managed by paragraph bundle. Let's explain using an example to make more clear- Content type name is Employee. A ...
0
votes
1answer
95 views

Adding Constraint to Paragraph field

I have a Content Type with a field that references 6 different paragraph types. The field is set up to accept unlimited values. For one of the types I would like to have exactly four values added. ...
1
vote
1answer
66 views

How do I programmatically update a UUID?

Reason: Receiving uid does not exist error. Upon investigating, this error appears only when we edit or save the preexisting columns paragraph. If we create new columns paragraph, the error doesn't ...
0
votes
1answer
37 views

Two different editor in one content typ

is there a way in drupal 8 to use two different editors (CKeditor with two different buttonpanels or two differently allowed html tags) in one content type? I have created a content type of a text ...
0
votes
1answer
157 views

Paragraphs module decoupled structure

I'm looking to use the Paragraphs Drupal 8 module with a decoupled installation of Drupal 8 but would like the structure made in the admin area to be output in the JSON API responses. How can I ...
1
vote
1answer
33 views

How do I create a jump link to a paragraph item?

I'm trying to create a jump link to the paragraph item. This is what I tried create a compact display of the page just printing out a title and short summary. using the advanced text formatter I ...