All Questions

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

Error on cron : Link could not be converted to string

Everytime cron try to run this error appear and everything stops. All I could find is that a Link is passed in filter Xss function when the cron try to index the website search. If I comment the ...
0
votes
0answers
7 views

How to set a message after a particular Page Redirect using Page manager?

After certain fields have been set on the edit node form and saved, I don't want the node author to change these anymore and therefore I have created a new variant with a response code "301 permanent ...
-1
votes
0answers
6 views

Remove Root directory from url through Imce [closed]

When i try to upload the photo through imce , it takes like(http://localhost/publicchargev2/sites/default/files/Home/PC-bed.png),how to remove the root directory and upload to live
-3
votes
0answers
18 views

Uncaught TypeError: $(…).once is not a function

I am having this issue on drupal 7 and can't find any solutions. Uncaught TypeError: $(...).once is not a function at Object.attach (eu_cookie_compliance.js?q5vyka:18) at Object. (drupal.js?...
0
votes
0answers
8 views

How to filter a view from within a paragraph ideally using url?

I have a basic page that contains a paragraph which has the following field: Label = News View Field Type = Views Reference (reference method = default) This references a view that has a contextual ...
0
votes
0answers
19 views

problem on content on editing [closed]

when I try to enter content on my drupla 8 on structure I get this error Le site Web a rencontré une erreur inattendue. Veuillez essayer de nouveau plus tard.Drupal\Core\Database\...
0
votes
0answers
18 views

Using Drupal authentication with clientless remote desktop

Is it possible to pass along authentication of a authenticated drupal user, to a clientless remote desktop gateway(HTML5), if that user exsit with same creds with gateway? Example, user logs into ...
-1
votes
0answers
11 views

Create a node from a webform submission

Attempted to create a node from a webform submission to no avail, using the second response here: How to create a node out of a webform submission? The first answer I could do, the second one--the ...
0
votes
0answers
7 views

News Item Summary Not Showing Up

Our news items are linked to our homepage. When they are posted there is a home page link with an image, a title, and a short summary of the news. When I create a news item, sometimes a summary will ...
0
votes
0answers
14 views

How to access the block ID in hook_block_view_alter()?

How can I access the block ID in hook_block_view_alter()? function mysite_block_view_alter(array &$build, \Drupal\Core\Block\BlockPluginInterface $block) { if ('my-block-id' == $block->...
0
votes
0answers
11 views

Can hook_preprocess_block() be used to alter block content in Drupal 8?

I'm finding I can't alter block content with hook_preprocess_block() in Drupal 8. Should I expect to be able to alter content, such as a block body, using hook_preprocess_block()? For example, this ...
0
votes
0answers
16 views

Exclude node from search API results based on values in existing fields

My content node includes a verified checkbox that's marked by a human reviewer who then also enters a date. The node is verified only when the box is checked and the date is entered. A content node ...
1
vote
1answer
13 views

Adding a base field definition in an update hook - it's not appearing

I want to add another base field to a Drupal entity. It used to be possible to just change the code for the entity definition and then update it via the Drupal console. But now it has to be done in an ...
0
votes
0answers
10 views

Set placeholder for empty webform submissions values?

I found the "Submission Display: Single Item" advanced setting for webform fields and was hoping to be able to use it to override "empty" items on the submissions page. We'd like to use "N/A" here and ...
0
votes
1answer
28 views

HTTPS with and without www

I have drupal 8 based website implemented. global $base_url; is used in two different modules. Module-1: $content .= $base_url .'/user/role/1'; it gives the URL pattern as: https://www.example.com/...
0
votes
0answers
8 views

How to skip empty and missing values from a migration

I'm trying to skip fields that are not present in my source file or that are empty, but I keep getting "Migration failed with source plugin exception: Passed variable is not an array or object" This ...
-3
votes
0answers
24 views

How can you separately get the name and the value of a field?

I want to get the key and the value of my row for example I have this: {{ content.field_nom }} but the out put is: my field name my value My question is how do you get 'my field name' alone ...
0
votes
0answers
8 views

Content corrupting when reverting a revision

Our website is powered by Drupal 7 and have a bootstrap based rotating carousel on the home page, which has a link on each slide to a different page. This is powered by the Bootstrap Carousel module (...
0
votes
0answers
27 views

how to get values for my content type drupal 8

i have a problem to get values in my twig for my content type , i have just the '{{content}}' variable with a lot of arrays , how can i get for example my field 'field_image' ? <div{{ attributes....
-1
votes
1answer
21 views

How can I use Twig tempalte to handle label of form input field?

In a custom module (association), I have a form (MembershipStep3). I'd like to use Twig template to handle form fields titles and need some advice about that. In association.module, I have this code: ...
0
votes
0answers
15 views

Display a table after form

How display a table and some html content after form in drupal 7. I am trying to build something showing in the image. Kindly provide some tips to build this.
-3
votes
1answer
32 views

Privilege escalation is possible by compromising the session cookie

capture user1 cookie and on another machine where the user2 is logged in, apply this captured cookie and refresh the browser. The user2 becomes the user1. Any idea how to prevent this. Thanks
0
votes
0answers
9 views

How do you simulate Google login with the Drupal 8 social auth module in ones local server?

I am trying to test Google login in my local machine to capture the event and activate the user automatically. I had run code to simulate the triggering of the event but that might not be authentic ...
-1
votes
0answers
25 views

How to trigger hook/event on custom content save/publish?

I am lost. No one really tells - even docs - about where to put files and what exactly syntax to use. I've created custom content, let's say with machine name 'customcontent'. How can I trigger ...
1
vote
1answer
12 views

Why can't you assert the response status in a FunctionalJavascript test?

If I do this in a FunctionalJavascript test: $assert_session->statusCodeEquals(200); I get: Behat\Mink\Exception\UnsupportedDriverActionException: Status code is not available from Drupal\...
-1
votes
0answers
15 views

Download html into pdf using Dompdf. Indian fonts shows up as garbage after download [closed]

I am using Dompdf to download html content into pdf. It works fine for english, but shows garbage texts for Indian fonts.The indian languages that I want to print are already configured into Drupal. ...
-1
votes
0answers
13 views

Where can I append a delete action in a users view

How Can I add a delete Action to a users view. I tried to find an answer to this but didn't succeed. I would like to be able to delete users without going through edit mode. Thanks
0
votes
0answers
21 views

Path to image file in theme folder for use with image_style

How can I use image_style settings on an image in my theme? The twig way I use for images, which are stored in fields is like this, with the help of Twig Tweak and Twig Field Value modules. <!-- ...
2
votes
1answer
55 views

Why this specific string is untranslatable

I want to translate "You can only change the parent menu item for the published version of this content" which belongs to Menu UI module. The string is defined in /core/modules/menu_ui/src/Plugin/...
-2
votes
0answers
15 views

Drupal begins, shipping module, different prices for different cities

I hope someone can help me with my problem. I am migrating a woocommerce website to drupal commerce, everything was going well until I had to configure the product shipments. Woocommerce has a ...
0
votes
1answer
11 views

address dependent locality field not shown

drupal 8.8.2 address 8.x-1.7 address module is working in that i can add an address to my content, however I am not able to display the "dependent locality " field even when it is set to "no ...
0
votes
0answers
12 views

How can I combine “concat” after “explode” in Migrate API YML?

I have a YML file for creating Commerce Variation and create their multiple images. However, I can not get "concat" to work after "explode" so that I can add the full file path to the exploded file ...
0
votes
1answer
5 views

How to create a google map block to display number of nodes for a content type

I have a content type "Houses". I added 3 nodes as follows. Node 1 for county X and state A Node 2 for county X and state A Node 3 for county Y and state B. I like to create a google map block ...
1
vote
1answer
20 views

Override entity form handler

I'm trying to alter an entity form handler. The method EntityType::setHandlerClass() allows for the 'form' handler to be set, but this value is an array, and I only want to override a single item of ...
1
vote
1answer
16 views

Use a custom install profile for Nightwatch tests?

How can you set a custom install profile to run a Nightwatch test in? I am not seeing it in the docs. The definition of the .drupalInstall() command has: commandAsWebserver( `php ./scripts/...
0
votes
0answers
13 views

What's the easiest way of importing content of a custom D6 content type into a D8 site?

I have a Drupal 6 site with three custom content types. We have tried using the Migrate Drupal UI module to migrate these to our new Drupal 8 site, but this resulted in all of the plain text fields ...
5
votes
2answers
45 views

What's the correct way to install Drupal with Composer if I want to work on core issues?

I want to install a local Drupal site in such a way that Drupal core is a git repository so I can work on patches. Just doing a git clone doesn't work, because I also need tools such as Drush, and ...
2
votes
2answers
28 views

How to make fields of a cloned node available in Rules

I have a rule that clones a node once it's flagged. I can set certain parameters for this newly cloned node but not all. I read in other posts that you have to use a conditional rule to identify what ...
0
votes
0answers
22 views

The dynamic value of the field, depending on the authorized user

Friends, hello. I ask for help, I can’t figure it out. I have the following task: There is a node type "product", it has a field "field_product_url". A link is imported into this field using the Feeds ...
1
vote
1answer
33 views

How do I change the salt used for the user password wheb creating an account?

I am working on Drupal 8 site where the client has asked us to use their own custom salt when storing the user password in the database. Is it possible to set a custom salt for a Drupal site? The ...
0
votes
1answer
32 views

Can't set a default theme in a FunctionalJavascript test with $defaultTheme class property

Trying multiple ways here to set a default theme to use in FunctionalJavascript tests and it is not working (I am watching them execute in VNC viewer). Bartik always shows. I also tried setting $...
0
votes
1answer
22 views

I am getting a PDO error which seems related to the Media module

After Drupal 8.8 upgrade media module is not working. In admin media links are not working e.g /admin/content/media Error : The website encountered an unexpected error. Please try again later. ...
0
votes
0answers
27 views

How to load a internal page content within div?

I have following code in a basic page on drupal 7 <h2 id="tabs">Test Title</h2> <!-- Nav tabs --> <ul class="nav nav-tabs"> <li class="active"><a href="content/test" ...
-3
votes
0answers
62 views

Is it formally correct to define Drupal as an SDK? [closed]

When I read about creating server environments for a Drupal applications, I often come across the terms Cloud and SDK. Well, one can indeed develop sophisticated software with Drupal, above "clouded" ...
0
votes
0answers
14 views

How do create /cart page html twig file in drupal commerce drupal 8

I am using drupal commerce module in drupal8. And I want to create a twig file to change the layout of cart page. Like I want to divide this cart page in 'col-sm-4' in three part. for this I am not ...
1
vote
1answer
67 views

How can you display document file sizes next to a media link button?

I'm trying to display the file size of a file next to a media link button on a page. I have two content types with a media entity reference field in each. Each field is restricted to only pull from a ...
-2
votes
1answer
20 views

Drupal Webform View Form Submitted data to user

I want my users to view their submitted data after submission to let them know what they submitted. How can I do this? Please help!!
0
votes
0answers
32 views

HTML elements in schema.org module

I am using the Schema.org module for schema tags, I tried to add html elements but they never get printed. Is it possible to do this?
2
votes
1answer
22 views

Send email only if a field has a certain value

I am using webform in Drupal 7 and have a case where I need to send an e-mail only if a certain select field has an option selected. I have installed Rules and Webform rules but am a bit stuck on how ...
0
votes
1answer
34 views

How to log to console when in a Drupal attach behavior?

I'm using Drupal 7. I have the following code that tries to log to the console: function mymodule_get_jquery() { $jquery = <<<JAVASCRIPT console.log("here"); (function($) { ...

15 30 50 per page
1 2 3 4 5 1638