Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [8]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

0
votes
0answers
12 views

How to prevent views to replace single quotes with double quotes in HTML output?

I'm using the rewrite option of a view field to generate some HTML. One tag has a data attribute, which should contain an array for later use in JavaScript with JSON.parse(): <div data-image-src='{...
0
votes
0answers
8 views

EntityReferenceSelection plugin ignored

I am trying to create a simple time tracking app and for this purpose, I need an entity reference field with some additional filtering of referenced entities (only active projects can be selected). I ...
3
votes
0answers
14 views

Migrate - Multiple Source Items per Row

I'm migrating content from a Joomla SQL source. The images are stored inside of the text as inline images. This is how my source data looks like: +------------+--------------------------------------...
1
vote
1answer
16 views

How to create a view to count comments per user?

I am trying to create a view with a table that shows all the users and the total number of comments that user posted in descending order. I am not sure what I am doing wrong but I spent hours on this ...
0
votes
1answer
35 views

How to pass values or data from a page to a webform using webform link field?

If we have a link to a webform in a content type and we need to pass data or values to that webform from the fields available from the content type. How do we achieve this. I'm using webform 8.x-5 I ...
0
votes
0answers
29 views

View Fields twig: How to get taxonomy terms for field?

I have a view fields hook that is listing content in twig. From those fields, I am able to retrieve other fields like text. {{ fields.field_teaser.content }} I am unable to get the taxonomy terms ...
0
votes
0answers
48 views

How to export images [on hold]

What I try to do is to transfer some nodes from a d8 site to another d8 site. I tried the node export module though is still in development. My problem is that I can't pass the images from image ...
0
votes
1answer
19 views

Show multiple term references as ID in one row

I've got a view of nodes, displayed as fields. As each node may have references to multiple terms/tags, I would like to show all these tags. When I use field "term_node_tid", then I get the multiple ...
0
votes
0answers
11 views

How to bulk update (delete) Product Variations

I want to bulk select product variations for deletion, just like we can do with content and products in admin. I tried to duplicate the products admin view, and also creating my own, both throw ...
0
votes
0answers
10 views

Extend Updater class to specify install directory

I'm trying to port 'module_install' module from drupal 7 to 8, which installs a module in a specific directory. To specific the install directory, the module creates a class which extends from ...
0
votes
1answer
26 views

Where are the Views located?

This is related to this question I asked. Bottom line is that for some reason some junk view is stuck under the Views list and when accessing the List I get a WSOD. I confirmed that is a view issue ...
0
votes
0answers
30 views

main menu link as language switcher

I have 2 language and these situation: main menu -> lang1 -> link to www.foo.com/ main menu -> lang2 -> link to www.foo.com/en All sites when switch manually on browser the language, But my main ...
-2
votes
0answers
27 views

Where does the stripping happen when you change text formats? [on hold]

I need to know where the code is that strips formats when you change from HTML to rich text or vice versa in the ckeditor that is in drupal 8. I need to modify what it strips. Where can i find that ?...
1
vote
1answer
24 views

Set entity reference revision field value?

How do I set entity reference revision value for a field? I have two fields, field_test_entity_reference and field_test_entity_revision. field_test_entity_reference is of field type entity reference ...
-1
votes
0answers
27 views

Install Drush 9 with Composer [on hold]

Ran this command (got no errors): composer global require drush/drush:9.* Then cd to /var/www/site.com/htdocs/ and run drush status, it gives: -bash: /usr/local/bin/drush: No such file or directory....
-2
votes
0answers
11 views

Uninstall issue for Entity Reference Revisions module [on hold]

I am trying to uninstall the entity reference revision module and I am unable to select the uninstall checkbox even though it is already installed. Below are the screenshots
0
votes
0answers
24 views

WSOD on views list page

I get WSOD when I try to access the views page (admin/structure/views). I get the notice below in the error log followed by the error. Notice: Undefined index: id in Drupal\Core\Config\Entity\Query\...
0
votes
0answers
21 views

Pathauto doesn't take into account my routing file [on hold]

I try to redirect my taxonomy pages to my own url pages. For instance, I want to change urls like "taxonomy/term/id" to something like "realisations/categories/termName-termId" So I went to create ...
0
votes
0answers
8 views

Is there a way to make VBO work together with Entity Print? [duplicate]

For my website I need to create a view with a list of nodes and provide the possibiltiy to export them as PDF. Entity Print does it exactly the way I need, just need to add Views Bulk Operations, but ...
0
votes
0answers
17 views

Call an ajax command after another one ends?

I have a group of ajax commands that I must execute, but there is one that should only be executed once another has been completed. How can I call another ajax coamdo only when another one is ...
0
votes
0answers
10 views

Are there any “taxonomies views bulk operations”?

I have created a view with list of taxonomies and I would like to print them using "Entity Print" module. With the view that contains list of nodes it is pretty easy, as Drupal has built-in "node ...
-2
votes
1answer
41 views

Is it possible to build a brand new theme without using Twig? [on hold]

I'd like to move to Drupal 8 for my next project. I understand that, from version 8, Drupal standard template engine is Twig. Is it possible to build a brand new Drupal 8 theme without using Twig at ...
0
votes
0answers
20 views

Unable to fetch paragraph's multi field values inside node twig

I have a content type as "worker". I have a Paragraph "test" and I am referencing "test" paragraph inside my content type "worker". This allows multiple values to be saved. How can I get the multiple ...
0
votes
0answers
16 views

The bootstrap modal-backdrop won't disappear after submit, how to solve this?

I'm using Drupal8 installation with the Geysir module in combination with the bootstrap theme. When I add a new paragraph with Geysir (click on the + icon) bootstrap shows it's first modal: now I can ...
0
votes
1answer
15 views

How to get Webform Radio Option Value as a token value for email template?

I am trying to use my webform's radio field to choose between two departments, let's call them ABCDE and XYZ. On the webform display that the user sees, I want them to show up as ABCDE and XYZ. When ...
0
votes
0answers
29 views

Ajax link not working when in Twig loop

I am trying to create ajax links in a twig template (not in a form) in Drupal 8 and have run into a strange phenomenon. I have managed to create a simple link that opens an alert. This works when I ...
0
votes
0answers
23 views

set-up xDebug for php 7.1 on Acquia Dev Desktop (mac)

I know this may be slightly off-topic, but I'm running out of places to turn to for help, and hoping someone's had experience with this. I have Acquia Dev Desktop installed, and a local D8 site, ...
0
votes
0answers
13 views
+50

View display plugin “entity reference” not using translation

For some of my entity reference fields I'm using "Views: Filter by an entity reference views" as reference method. I've configured those views to use the current interface language for rendering (with ...
1
vote
1answer
34 views

How do I access paragraphs with the JSON API?

With the JSON API module, I am trying to access paragraphs. In the JSON object is does not allow me to access the nested paragraphs. How would I go about accessing the paragraphs with the JSON API?
0
votes
0answers
18 views

views exposed filter does not use enabled ajax

how do i get the ajax feature to work with exposed filters? am i missing configuration options? what do i need to check? i am using drupal 8.6.1 and a couple of views extensions (better exposed ...
0
votes
0answers
15 views

Adding term relationship to view breaks view for non-admin

A bit of a strange one, I have a vocab called "Creative Commons Licenses". I have a content type called "Painting" that includes a term reference field for the Creative Commons Licenses vocabulary ...
-2
votes
2answers
21 views

How do I programmatically get a poll entity and render it? [on hold]

I would like to programmatically render a poll created with the Poll module, and place it in custom place of my template. Do you have any idea?
0
votes
1answer
18 views

Add custom config to ckeditor

I'd like to customise the CKEditor config, by using the removePlugins setting to disable the elementspath plugin, so that body p etc. isn't displayed in the status bar (here's a similar, old question ...
0
votes
1answer
15 views

How to provide checkbox for a grouping field?

For my Drupal 8 website I have created a view with a list of nodes. I have grouped the nodes based on the certain field. Additionally I would like to provide a possibility for the user to perform bulk ...
-3
votes
2answers
35 views

How to change the background color of blocks? [on hold]

I just want to change the background color of a block on the “Sidebar First” region in Drupal 8. How can I do that?
0
votes
0answers
11 views

Custom Ajax forms with managed_file form element

We have a form with three fields - where depending on the value of the first select field, we will show the other two form elements - one select field (the options depends on the value of the first ...
0
votes
0answers
23 views

AccessCheckInterface's access method called several times per page load

I want to perform a custom access check for every page load. For this purpose I implement AccessCheckInterface and perform the checks in the access method. AccessCheckInterface has a method applies, ...
0
votes
1answer
23 views

How to send a custom Solr Distance Query with SearchApi

My nodes have a geofield and my search query should find all the nodes within a range. I've managed to create a search form against my Solr Server with views. But I want to do the request by myself (...
-3
votes
0answers
15 views

How to use “data-drupal-selector” in form element? [on hold]

Form element has attribute - data-drupal-selector. How to use it?
0
votes
1answer
24 views

is there an alternative for hook_views_ajax_data_alter in drupal 8?

As the title sais, is there a similar behavior like hook_views_ajax_data_alter in drupal 8 like in 7? If not has anyone achived the same result programatically? Thanks in advance.
0
votes
1answer
12 views

How to manage catalog display of images for Commerce 2 product variation

I have created a custom product type and its variations are created with attribute 'Size'. If I create a new product with its multiple images, then the catalog view shows these multiple images instead ...
-1
votes
1answer
22 views

Display an uploaded image in a webform, rather than the filename

Background: I'm using the profile module to hold user data but that makes an unpleasant UX for updating user info. So I'm using a single-page webform to offer the editable user data. The user data is ...
0
votes
0answers
13 views

Custom Views Exposed Filter for views

I Have a content Type 'Article' , which has below 2 fields 1.'Text List' field having 2 values 'Regional' or 'Country' (single selection radio button and Required Field) And 2.'Entity Reference' field ...
-1
votes
0answers
18 views

Alter serialized json output

Everytime a node is created, I have a Rules Action that serialized the data into json and send it to OneSignal. I have the below code that does it... $entity_id = $entity->id(); // Getting ...
0
votes
0answers
37 views

500 server error on cache flush [twig specifically]

I am getting a 500 error, The request timed out, The web server failed to respond within the specified time. This only happens if I flush all cache or flush twig cache, but not for css/js cache flush ...
0
votes
1answer
25 views

file name constraint in form

I've got a basic field constraint figured out (per question here: Validation constraints on form fields ignored ) Next, I want to constrain the main image field to limit the file name. For example, ...
0
votes
1answer
17 views

Display entity as options_select multi-select

Below is my code for the view. I have tried multiple = true, multiple_values=true, multiple = multiple. None have worked. ->setDisplayOptions('form', [ 'type' => 'options_select', '...
0
votes
1answer
30 views

Capturing cache metadata from file_create_url?

I'm writing a Drupal 8 controller which takes in a media entity, and returns a redirect response to the actual file URL. It works by finding the file associated with the media entity, and then does ...
-2
votes
0answers
10 views

make taxonomy hierarchy tree an image based navigation system

i would like to make a taxonomy tree accessible on the home page as a clickable images wall . Each click will redirect to the sublevel images wall ( child taxonomy list) or the final associated ...
0
votes
0answers
25 views

Upgrade modules

I am going from Drupal 7.6 to 8.6 using the migration UI (https://www.drupal.org/docs/8/upgrade/upgrade-using-drush). When I get to /upgrade/review it lists out the modules that need upgrading. The ...