All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
417 views

Controlling a dependent field in a multi-instance paragraph

The fields below are part of the node/add node/edit forms of my custom node type. The paragraph field_para_city contain one field_city. (I later need to add other fields in the paragraph). The user ...
1
vote
1answer
614 views

How do I programmatically render a view that has exposed filters?

I can call a view with contextual filters without any problem, but when I add exposed filter value $view->setExposedInput to the call, I just does not work, the exposed value is not applied and being ...
0
votes
0answers
11 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 ...
0
votes
0answers
18 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 ...
1
vote
3answers
573 views

How to reuses page--front.html.twig for multiple pages

I created a page--front.html.twig which allows me to create a distinctive front page. How would I go about reusing this page to create a landing page, a page with an identical layout the front page ...
0
votes
1answer
352 views

What invokes Bootstrap overrides.css?

I have a purchased theme that I've cloned, to which Bootstrap is set as the base theme. I've done the standard rebranding procedure of renaming all of the files and functions to match the new theme ...
-3
votes
0answers
26 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
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 ...
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 ...
-3
votes
0answers
20 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?...
1
vote
1answer
491 views

Reorganize Language Switcher based on Country/Region

I'm working on a site with 34+ languages and will likely be expanding to more. With this many countries, a simple drop-down list can be difficult for usability. I would like to customize the language ...
-1
votes
0answers
7 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
0
votes
0answers
11 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
1answer
522 views

Is it possible to change the form submit handler from within a validate handler (need to redirect to another form depending on values entered)

I have an initial webform (based on 3.x of webform module/Drupal 7) that needs to redirect to a second form if yes is specified in a yes/no choice. Otherwise if No, the first form should submit ...
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
1answer
478 views

What does it mean “Rebuilding” in a feature? Can it be resolved?

I did some changes in my local environment, then I updated the 'feature'. When I try to deploy the change to another environment, but before I can start the 'revert' operation, some parts of the ...
2
votes
2answers
4k views

How to import csv file for “field collection” using feed-importers

In Drupal7, In node processor settings -> we can't map field collection values. However they are multiple values, Is there any way of possibilites to import data through CSV file. I tried using field ...
0
votes
1answer
457 views

Show node body fields for entity reference checkboxes widget?

I need to show the body field of the nodes next to their checkboxes in an entity reference field widget (default is just their node titles). Is there a way to do that without writing a new widget?
0
votes
1answer
568 views

Gmap not displaying

I have Gmap and Location module. I have created a content type and also added a field location with term reference(Taxonomy term). I have just added a content and selected one location. But I can't ...
0
votes
1answer
521 views

How to add Shipping method for commerce flat rate module?

i am working on drupal commerce's "shipping" part, i want to create two methods for shipping as 1.Free Shipping 2.Express 2-day Shipping for USA . For "free shipping" condition is if order total ...
2
votes
4answers
1k views

Why is cache_render very big?

I am having a big problem with a newly created Drupal 8 site for a theater. After going live we discovered that the cache_render table grown extremely big, and extremely fast. After one weekend, it ...
-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 ...
1
vote
2answers
573 views

Views merge rows: merge uniques values and show the first one

I'm using Views merge rows to grouping rows by some fields, It worked good for me, but in some fields I want to show just the first filled value that means: merge uniques values+use the first value. ...
0
votes
1answer
776 views

Adding custom data to the node object

I have created a content type called providers and when editting said content types users can fill in extra information related to the content. I have included said form fields using hook_form_alter,...
0
votes
1answer
523 views

Error while accessing admin section

I am facing the following error while trying to access Admin section in Drupal 8 (WAMP Server). I tried to install the Update manager module and from then I am facing this error. I am unable to access ...
0
votes
0answers
8 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 ...
1
vote
1answer
613 views

How to properly compare values of two identical entities?

I have a custom entity that is not revisionable and I need to store any differences made by the user - and only differences, so if nothing has changed there should be no entry. I am doing this in ...
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
12 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 ...
1
vote
1answer
43 views

{{ drupal_view('view1', 'block_2') }} renders only when cache is cleared

I like to output 2 block-views in a template called "block--bar.html.twig", but only when i clear the cache they are printed. (i installed Twig Tweak 8.x-2.x) This is the template: <section{{ ...
2
votes
1answer
691 views

Autocomplete textfield displays value when selected and not label

I have a textfield autocomplete field that shows a list of full user names and email addresses as designed but when a user is selected, the user id is displayed in the field; not the name and email ...
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
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
votes
1answer
29 views

Drupal 8 how to translate Entity Types Lables?

Example: Are you sure you want to delete the @entity-type %label? I am able to translate the above string but @entity-type remains not translated like below, Haluatko varmasti poistaa content test? ...
-1
votes
2answers
42 views

Twig define dynamic generate variable

I have field names: field_en_image field_sv_image node_lang is set as a variable in the .theme file under _preprocess_node hook. I want to print the field dynamically in the twig template file ...
0
votes
1answer
29 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/...
1
vote
1answer
489 views

How do i generate token for each user they submit my custom form?

I have a created a custom module with simple form with only three fields ( Url, title & email ) , where user has to enter all the fields for submission. I am able to send the mail to the user ...
1
vote
3answers
2k views

Adding an address to a node's address field programmatically

I am presenting a form to receive an address. I want to take the data and add it to a node that has an address field (from the address field module). Can someone point me in the right direction on ...
1
vote
1answer
1k views

How to rename address labels on Address field module?

I wanted to know if it's possible to change the input labels on the address field module 'Address 1' and 'Address 2' without using the string overrides module? I want to be able to change them to say ...
0
votes
1answer
374 views

Address Module 8.x-1.3

I am trying to run address field on my web page, but I get an error The website encountered an unexpected error. Please try again later. So I checked the logs and get Error: Class 'CommerceGuys\...
0
votes
1answer
505 views

Cannot use feeds to import into data tables where the primary key is multiple

I am using Data Module to create tables in Drupal. Now, I need to import some data through CSVs, for this I want to use Feeds Module. My table consists of more than one primary key i.e. a group of ...
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 ...
1
vote
1answer
39 views

Twig: How to access multiple values from node reference field with number_format

I'm adding fields to array: {% for item in content.field_notes | field_target_entity %} {% set field_component_pages = item.field_component_pages|view|number_format %} {% endfor %} In my ...
0
votes
2answers
590 views

Decryption failed because the HMAC could not be validated while decrypt

I am using the Encrypt module to encrypt some of user object data. I can encrypt data, but while decrypt it, I get the following error: Decryption failed because the HMAC could not be validated ...
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/...
1
vote
1answer
511 views

Adding new fields using hook_field_schema_alter()

I have an entity whose field schema is already defined and now I am trying to add couple of fields to it. But I am not sure how to code it up using schema_alter.Below is an example on how I would ...
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 ...
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
vote
1answer
541 views

Search Api Autocomplete doesnt filter by language

We're using Search API Autocomplete with Search API 7.x-1.9 on a site set up with Solr (Websolr) serving nodes in both English and German. I'm looking to be able to filter the results by ...
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 (...

15 30 50 per page
1 2 3 4 5 1638