0
votes
0answers
5 views

Core Media Library: Custom selection view (D8.6)

I'm trying to create a custom Media Library, to apply to only a specific media field. Basically I want a custom selection on media (with relationship and possibly contextual filter): I duplicated ...
0
votes
0answers
5 views

How to prevent Profile2 fields from loading on user registration?

I have a profile2 Profile that's named Driver. This profile has a Term reference to a vocabulary named Cities that contains over 30.000 terms. I made a custom user-register.tpl.php by declaring it in ...
0
votes
1answer
14 views

drupal 7 split my words

i have a text field. if i check the CK editors words looks ok, but if i see the rendred page drupal slit words instead of put the entire word in the next line. For example the word "Materialien" in ...
0
votes
0answers
5 views

AJAX request terminated abnormally with select photo upload

I'm busy fixing an issue on a site a friend runs for her work. I have worked on this site before, and this is the only Drupal site I have ever worked on, so I am somewhat of a newbie to Drupal. The ...
0
votes
0answers
13 views

Use sub aliases on custom module block to pass parameters

I'm trying to integrate an API into a customers Drupal 8 page. The goal is to show a list and a detail view of job offerings. I decided to create a module with two blocks - one for each use case - ...
-2
votes
0answers
12 views

Enable Bootstrap Modals jQuery UI Bridge

I am using a Boostrap subtheme with sass. I am having the issue with my custom subtheme of Bootstrap. My custom module creates a modal window, its not displaying content like buttons. The modal title ...
-1
votes
0answers
14 views

I cant generate a correctly view on drupal 7 from a values of a field with php

I am a student who has been working with drupal 7 for a website and I can not make the following work. (I will try to explain it as clearly as possible). I have a type of content for example (My ...
0
votes
2answers
14 views

Views image field

I'm trying to add inline styling to my Drupal image using the image field under view. No matter what method I try, nothing is working. I've run out of options. Any help? Below are a few code ...
0
votes
0answers
10 views

how to append current path to a url?

On a multilingual site, in order to let users pick their favorite language, instead of the basic block provided by drupal, I would like to use the Bootstrap Button dropdown component so i put a block ...
-1
votes
0answers
11 views

What is the easiest professional way to convert bootstrap template to drupal theme?

There are some Bootstrap 3 themes that I like and would like to convert them to Drupal. I wonder how I can do it. I went through different guides, but all were for converting basic html css. One way ...
0
votes
0answers
27 views

Search is not throwing any result

It is Drupal 7. This is kind of strange behaviour of the website. This is my website http://www.protecdental.com. If you visit this website, you will see the right-hand top search field. Please see ...
2
votes
1answer
103 views

How to remove unwanted form state values before validation

What is the good way of validating a form in Drupal 8 ? I have a bunch of fields which are supposed to be filled by a positive numeric value (and that's all, no other input types, just positive int). ...
1
vote
1answer
30 views

How to programmatically populate a country field

We are using the Countries module to provide country fields where editors can choose a country and it gets displayed in the frontend. Which works absolutely fine. But we want to fill that field ...
0
votes
1answer
10 views

Trying to display/printing latitude and longitude from Geolocation Field to node template

I've been trying to figure how I can fetch the latitude and longitude values using geolocation field and display it on my node.html.twig template. I've been using to kint() to see how I would be ...
0
votes
0answers
12 views

Disable Bootstrap Tooltips for Individual Form

Is it possible to disable bootstrap tooltips for an individual form (all the components in the form)? I know I can do it in the Bootstrap settings, which will turn off tooltips for all forms, but I ...
0
votes
0answers
15 views

How to check Geocoder module is firing on User save?

I've been using Geocoder module, with Addressfield and Geofield modules, successfully on a site for months, but have now hit a strange problem. SETUP: The User entity contains a Geofield field ...
1
vote
1answer
33 views

Add captcha to webform

I'm working on a drupal 8 project, I've created a webform and trying to associate a captcha to my webform using captcha contrib module. I've a personalized template for my webform in which I render ...
0
votes
0answers
28 views

Print individual user registration form fields in twig template

I'm creating a twig template which overrides the layout for a user registration form. How can I print the form fields individually? I've tried {{ form.email }} and {{ content.email }} to print ...
0
votes
0answers
35 views

user/login not found [on hold]

I can`t access www.rechindebahlui.ro/user/login or register or admin pages... Everything is working fine, like index page, articles, but /user/login, /user, /register etc. gives me: 404 not found ...
0
votes
0answers
12 views

key_value duplication errors after migration of the website

I have migrated my website from a server to another server. The only difference is that it went from a physical machine server into a containerized application. The server specs are the same and the ...
0
votes
0answers
11 views

Add class to any element with CKEditor

Is there a way to add class to any element through CKEditor? Here is an example: I create a list with CKEditor and I want to add a class to the ul tag. Or maybe on one of the li. Everything without ...
-1
votes
0answers
11 views

improve drupal 7 performance on nginx

I want to imporve drupal website performance. Already did settings for drupal cache & Advanced CSS/JS Aggregation. Also implemented the changes requested by gtmatix still it takes 20 seconds to ...
1
vote
1answer
79 views

Limit amount of adding a certain Paragraph per Content type

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 ...
0
votes
2answers
24 views

Custom save message for site information form

Folks, I need to alter the site information form. I used api_form_system_site_information_settings_alter hook to do so. After submitting I need to print a custom message. I used one submission handler,...
0
votes
1answer
20 views

Send email notification for the new created survey using webform

I'm looking for a way to send email notification to all my users once my scheduled survey is already open. Upon checking the Webform module, all I can see about email notification is when a user ...
0
votes
1answer
14 views

Pre-process node type for each node and print within region.html.twig template

I'm trying to figure out how I can check the node type/content type for each node using pre-process and print it on a region template (region.html.twig) It seems to be returning NULL function ...
0
votes
0answers
26 views

Node body to entity reference revision (paragraph) field not working/processing

I want to migrate the Drupal 7 body of my blog to a Drupal 8 paragraph (field_stories_content which is Entity reference revisions). The body is to be assign to the field_stories_text_formatted field. ...
0
votes
0answers
11 views

Is there a way of deleting a file field without deleting the related file entities?

I'm working on a site that started uploading files via specific Fields appearing in Content Types, but has since moved to uploading them via admin/content/file/add for consistency. I'd like to delete ...
0
votes
1answer
25 views

Edit field in contentType B when creating or editing node of contentType A

I need to edit a field in contentType B when I create or edit nodes of contentType A. I know it's possible to use rules for this but I need to have more control so I want to do it in my own module. ...
0
votes
0answers
24 views

Performance Considerations When Setting the Cookie Expiration Date

Are there any performance considerations to take into account when setting a Drupal cookie to expire 10 or 20 years in the future? I know it's not possible to set a cookie to never expire as per the ...
1
vote
1answer
37 views

Customize “Access Denied” (403) page for specific content type [on hold]

I'm currently setting up a simple LMS in Drupal 8 and would like to customize the Access Denied page as follows: Anonymous users should be redirected to the Login page, when they hit a 403 error. ...
0
votes
0answers
22 views

Is there an existing way to add sidenotes/comments inside the content of a node? [on hold]

Is there a way to put inline sidenotes/comments inside a node? A good example is the notes that you can add in Google Docs. That would be great for editorial purposes. Mentors would have a simple ...
0
votes
0answers
37 views

Pass PHP variables from my custom block to my custom Twig template [duplicate]

I created a custom block module my_block. Inside modules/custom/my_block/src/Plugin/Block/MyBlock.php I have this code: <?php namespace Drupal\my_block\Plugin\Block; use Drupal\Core\Block\...
1
vote
2answers
52 views

Processing the content generated by a node?

What call would I use to modify a node's content. For example, let's say I have the words "12345678" located in various nodes. If I wanted to replace all occurences of this in Drupal 7 with "abcdefgh",...
0
votes
1answer
19 views

Display single field from argument taxonomy term in Views header area

I have a view with a taxonomy term ID in the URL which is used to filter the displayed entities in the view. I want to display the description from the taxonomy term. I've tried this a million ...
0
votes
0answers
10 views

Issue using ‘explode’ and ‘migration_lookup’ plugins together

I’m new to migration, using migrate plus and migrate csv, I have some trouble mixing the ‘explode’ and ‘migration_lookup’ plugins. What I want is to add several media images to some media slideshow (...
0
votes
1answer
24 views

How to specify AND, OR with dynamic query

I’m trying to create a dynamic query, the query logic conditions needed are: AND, and OR. The main query will include two sub queries. The ConditionInterface::condition documentation states that: ...
1
vote
1answer
27 views

How to use short codes with arguments

I came across this. That shows how you can get a code like {{ cta }} populated with any data you want, and get that inserted in a template. I want the same sort of solution, but for content. In other ...
0
votes
1answer
28 views

Why does the shopping cart display the login form?

When I'm not logged in and click on the cart logo, the following page appears with the login form: /cart 1) I want the contents of the shopping cart to be displayed. 2) When I click on the "...
1
vote
2answers
28 views

How to send the emails related to the user account in HTML?

I want to send the emails related to the user account in HTML version: forgotten password new account account canceled ... If I make a copied paste of my HTML code, it does not work. /admin/config/...
-1
votes
0answers
20 views

Problem after updating Media module to latest version [on hold]

I have updated Drupal core to 7.59 and Media module to 7.x-2.20. When I try to upload image through media browser, I get this error: Notice: Undefined index: #ajax in function ajax_form_callback() ...
0
votes
1answer
22 views

How to programmatically update a paragraph field

Trying to get certain paragraph field of certain node updated with new value with the following code: function my_module_node_update($node) { if ($node->nid == '111') { foreach ($node->...
2
votes
1answer
37 views

Different page--user.html.twig for different user roles

I have a few user roles - simple user, editor and contributor. How to make different profile pages for all of this roles? Now I can work with: FILE NAME SUGGESTIONS: * page--user--16.html.twig ...
-1
votes
0answers
20 views

How do I declare a new template file for my theme? [on hold]

I recently built my first site with Drupal 8, off of the public beta. One thing I found very quickly was that online learning resources for Drupal 8—as compared to Drupal 7—were essentially non-...
-1
votes
0answers
13 views

Calculate the minimum CPU or memory needed for a particular page [on hold]

I have a weird situation on my drupal where the index page shows 504 Gateway timeout despite having set Apache timeout and relevant php.ini max time to 60000 and disabled dblog, but the rest of the ...
0
votes
0answers
11 views

How to get slideshow for a node fields display, having multiple images and multiple videos?

I have a content type having image field and video field,where multiple images and multiple videos can be uploaded. In a node page display,i want to show all images and videos in a slide show. I tried ...
-2
votes
3answers
128 views

Did the Drush developers went “back and forth” when combining it with Composer?

If I'm not wrong about 4 or 3 years ago Drush was combined with composer, then it was "decombined" with it, till Drush 9 when they were recombined. If I'm accurate, why did this combine-decombine-...
0
votes
0answers
14 views

Exclude in result search node Content Type and Language

I'm use this module Search Exclude I want exclude content type and filter to by languague. Search Exclude (Node) I use this module because is practice, simple and easy compared others module of the ...
0
votes
0answers
23 views

Why does changing date portion of a datetime string on node presave subtract an hour from the time portion?

I have two date fields, one only accepts date input and the other is only accepting time input (via the technique where you set the ['#date_date_element'] = 'none' as described in this answer). In ...
0
votes
0answers
12 views

Drupal Views3 Integration

How do I grant SELECT access for the Drupal user to all the CiviCRM tables using AWS RDS Database?

15 30 50 per page