All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
37 views

Need help with twig test template

I'm trying to create a test twig template in drupal 8, I followed "Create custom twig templates for custom module" from their website but it's not working for me for some reason. This is what I have: ...
0
votes
0answers
21 views

“Drupal is initializing” rule firing multiple times

I am using the Rules module and the event "Drupal is initializing" in a rule to check if a user has clicked their confirmation link in their email that Drupal has sent them to verify their account. ...
0
votes
0answers
24 views

Allow user to upload file for customisation of product [on hold]

I'm doing a website which allows to buy custom objects. For this, I need that buyer upload a file on each product during add to cart or after in order to allow for using the supplied image. How to do ...
1
vote
1answer
39 views

Entity reference view depending on other field [on hold]

I have a custom content type that contains an entity reference field (field_referencefield) and one more field as select box (field_triggerfield). The values of field_referencefield should depend on ...
0
votes
0answers
15 views

How can i get node type in template.php [duplicate]

I want to configure breadcrumbs depending on the node type. How can I get the node type in a function theme_breadcrumb in template.php? I try it, but it doe't work. function zen_breadcrumb($variables)...
0
votes
1answer
31 views

Contextual filter using any term ID

I want to set up a view with a contextual filter that will work with any term id (without selecting a specific category). I could only find some old, dated mentions of this. So I'm not sure if this is ...
0
votes
0answers
22 views

Replace taxonomy vocubulary administration page with a view

I would like to replace admin/structure/taxonomy/manage/my_vocabulary/overview with a custom view. Some of my vocabularies have custom fields that I would like to display and use as filter for the ...
2
votes
0answers
40 views

Do I have to start a multilingual site with a precise Language

I run Drupal 8.7.8 and tried to make it multilingual. Is it important in which language you start? I think I once stated with English and changed to German I have some problems, because some text is ...
4
votes
1answer
63 views

How to get a section of the menu tree based on the current node?

I am currently struggling to wrap my head around how the menu tree and menu link services work for outputting part of a menu with some custom requirements. Admittedly I don't have to do this very ...
-1
votes
0answers
42 views

Failure installing Launcher [on hold]

After I have installed Drupal Console on a remote debian server using composer following the tutorial on: https://drupalconsole.com/docs/en/getting/composer Change directory to Drupal site: ...
0
votes
0answers
37 views

How to display values of certain taxonomy term above the table with the search results list based on content type, related to entering search query?

I made a view which displays a search result list as a table. The searching process works inside one content type using Search API. The system also has to look for between taxonomy terms (name) first ...
0
votes
1answer
20 views

How do I construct an authenticated HTTP request in Postman?

I have Drupal 7 installed locally on my computer with the domain set to http://drupal.local. I am trying to prepare an external script in PHP or Python (or even in pure Bash using curl, if it does ...
-5
votes
0answers
29 views

drupal 8 down after module update [on hold]

I updated modules in drupal 8 after that I received this error The website encountered an unexpected error. Please try again later. ArgumentCountError: Too few arguments to function Drupal\webform\...
0
votes
1answer
27 views

How to make autocomplete search by an entity field instead of by name?

Let's say we have 3 custom entities: When creating a new operator, I need to autocomplete the license: By default we can use the autocomplete to find by name. So, we need to type the name to ...
0
votes
0answers
10 views

Theming the multiple file widget output

I'm trying to theme the output of the a file upload button in my theme... It's a multiple file upload button. Currently core outputs this as a table with draggable icons... Is there a way to render ...
0
votes
0answers
34 views

Contextual filter does not work with page with wildcard path

I'm stuck on something. I have a view with a path with a wildcard "/the-register/%". I would like to use the contextual filter, to filter on taxonomy term id or name. But when i add a contextual ...
-3
votes
0answers
21 views

Error sending email (from xxx@yyy.com to xxx@yyy.com with reply-to not set) [on hold]

I am noticing an error when the update notifier called during update_cron is running Error sending email (from xxx@yyy.com to xxx@yyy.com with reply-to not set). Here is the call stack core/lib/...
-4
votes
0answers
13 views

I am Facing issue in TinyMCE Content Loading [on hold]

Some times TinyMCE Edit Content is Displaying the all the Content in HTML tags? Is there any one have Solution for this issue?I am using Asp.net and TinyMCE Version 3
0
votes
0answers
44 views

Drupal 8 block cached, but the expensive call still runs

So I created a custom block like this: public function build() { $output = [ '#cache' => [ 'keys' => ['bix_salary_jobs'], 'contexts' => ['url.path'], '...
0
votes
1answer
30 views

How do I handle an incoming POST request in a module?

I am really new to Drupal but I have to do a project using it and I was just wondering how to handle an incoming POST request in a module: I am creating a module that will get incoming data from a ...
0
votes
0answers
4 views

how to replace the old sorted display content in views with newly added content?

I have 5 display of contents in views then in each content type i added taxonomy which contain the order of 1-5.Now if i want to add a content to order 2 it should replace the order 2 with the new ...
-2
votes
0answers
21 views

Export and import content and users [on hold]

How can I export content and users from a Drupal 8 site and import them into another copy of same Drupal 8 site? Thanks.
-1
votes
0answers
12 views

Our Drupal 7 processes all chevrons as starting an html tag. Arggghhh

Many of my webpages have code fragments on, like this: if frustration < limit ... The problem is that "< limit" is interpreted as opening an HTML tag, causing some of the content to be ...
0
votes
0answers
18 views

Sending SMS text messages from my drupal site

I am trying to send an SMS message sent to site users once a new node is created. I've installed the SMS Framework module, the Clickatell module, I've set up an account on Clickatell, and configured ...
1
vote
1answer
42 views

Preventing redirects from being cached for anonymous users

I have a content type that needs to redirect only when it is tagged as "External". All of these "External" items have a field where a URL is supplied for the redirect. During initial setup of the ...
-1
votes
0answers
25 views

Fatal error: require_once(): Failed opening required - Will not display photos

I am not a 100% certain how this happened because some time has past since I did an upgrade, yet the upgrade could be the reason I am getting the following error: Fatal error: require_once(): ...
2
votes
0answers
37 views

How to get module name from a given route object?

In a runtime context, given I have a route object, e.g. from route name user.register, how do I find the path or routing.yml or other definer of the route? Does Drupal or Symfony provide for this? ...
-2
votes
0answers
29 views

Select options to send to different email address [closed]

How can I have multiple options on my webform that send to different email address once an options is selected - this is for drupal8
0
votes
0answers
17 views

After update Drupal with latest version I am getting some error [closed]

After updating Drupal core 8.7.8 I am getting this error. Error: Call to a member function setConjunction() on null in Drupal\search_api\Plugin\views\filter\SearchApiFulltext->query() (line 335 of ...
-1
votes
0answers
21 views

How can I add an OR condition in hook_views_query_alter()? [closed]

I am altering the view query using hook_views_query_alter(), but the code I am using doesn't work. foreach($test_selval as $test_key => $test_value) { $query->addWhere(0, 'test_locations', $...
-4
votes
0answers
17 views

Taxonomy-term filed issue when choose term [closed]

I have taxonomy term name cars and there is field inside it, named petrol, integer type. I add content type and add taxonomy term field on it. What I need is when I choose the taxonomy from list ...
-5
votes
1answer
47 views

What's the use of vendor folder? [closed]

Whats the use of vendor folder in drupal 8, what it actually do ?
0
votes
2answers
39 views

How do I programmatically attach a file to a file field in a node? [closed]

I have a custom content type with a file field. I am trying to attach a file uploaded through a custom form to the custom content type. I am able to load the node and update all the other values of ...
0
votes
0answers
40 views

Where in the drupal code is the User Login Block added to the User Login page? [closed]

I've found the file where the user login form is created (UserLoginForm.php), and the file where the php user login block is created (UserLoginBlock.php). But could someone point me to where the block ...
1
vote
1answer
36 views

how to a link in Admin black toolbar

I created a custom module and how to add a link along with icon. Basically, I want to add notification icon backlinks_notifications.index: title: 'Notifications' parent: system.admin_config_ui (...
0
votes
1answer
37 views

How to render views link field in twig?

I have created a view that has many fields including a link field. I am using a twig template. my view twig name is views-view-fields--dashboard--block_3.html.twig It works nicely but I need to render ...
0
votes
1answer
38 views

How do you set the default value of a custom entity text field in the form controller [closed]

I have a custom entity that have defined using ContentEntityBase and I am trying to set the default value of one of the fields from the URL of the entity form. How do I set the default value of the ...
0
votes
1answer
27 views

How do I fetch base64 image from JSON, create a node, and attach this image? [closed]

I have a JSON array with a base64 format image. I need to export this image from this JSON and need to create a Node in Drupal 8 with this image attached. For this, I created a program. It is not ...
0
votes
0answers
24 views

How can I change label visability for fields with BaseFieldOverride in hooks?

I have a hook where I change label visibility on each field, however I'm not able to do it on fields with BaseFieldOverride (like "Authored by" and "Authored on"). Their fields are always hidden, but ...
1
vote
0answers
19 views

How to add a custom class or id to a custom display suite [closed]

I've created my custom display suite field and i it works ok, but i would like to add a custom div class or a custom div id, here is my code <?php namespace Drupal\breadcrumbs\Plugin\DsField; ...
0
votes
1answer
29 views

Querying the user list from the database

There is a need from a different team in our organization to provide a periodic export of users, roles, and users-roles relationship data in a certain Aveksa-specific format. Where (which table(s)) ...
0
votes
0answers
11 views

How to rename comment links on a taxonomy page?

I activated the taxonomy view and activated the comment fields (standard view field). And then an ambush. I can’t change the name of the link either in a view or in hooks. Add a comment to the one I ...
-1
votes
1answer
14 views

Custom Twitter Field without template?

What are my options for displaying a field from a custom content type, in the form of a tweet embed. Preferably, the field would be a URL to the tweet. I know it can be be done with a custom field ...
0
votes
0answers
16 views

Ignore custom block field content (settings) with config_ignore

I am trying to ignore the content of some fields in a custom defined block plugin. In my block plugin (class MyAwesomeBlock extends BlockBase implements BlockPluginInterface { ... }) I've declared ...
0
votes
0answers
20 views

Is it possible to auto-translate a block?

I am hosting a Drupal 7 site and require some quick translations. I have found how to set up some auto-translations which I can then modify for all the content types (articles, basic pages, etc), but ...
0
votes
0answers
9 views

If non-empty field json is object, if same field is empty json is empty array [closed]

I am using Drupal Services and I've noticed that fields with empty values are being always displayed in my JSON as an empty array. For example: A non-empty field (It is an object in my json): "...
-1
votes
0answers
21 views

How to get View table fields values in hook form alter?

I have a table with two fields 1.Employee name(Ex:John) 2.Allocation percentage(Ex:30) And i have a content type, where i will allocate new percentage to employees. There i will choose an employee ...
0
votes
1answer
23 views

How do I add an AJAX action on a select element in a ContentEntityForm to change the value of another select element

I have a ContentEntityForm with two select elements category and data_type. I want to load the options for the second select element when the first select element changes. I have tried to add the ...
0
votes
2answers
48 views

Updating core modules independently of core?

We have a vendor that is asking us to assist them in updating a core module independently of core. Is there such a thing? For example, could you update Views without updating core? My understanding ...
0
votes
2answers
20 views

Rules Redirect User at Login by Role to URL not working

I am trying to redirect any user with a particular Role at login to a URL. I am using Backdrop (Drupal 7). I have looked at most of the posts relating to this problem, and tried many of the examples ...

15 30 50 per page