All Questions

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

correct syntax for feeding lat/long to geofield_latlon in migration

I have a drupal 6 site I wish to migrate to drupal 8. My configuration includes: migrate_plus.migration.upgrade_d6_node_complete_club.yml # ... class: Drupal\node\Plugin\migrate\D6NodeTranslation ...
0
votes
0answers
4 views

Using Is between in Grouped filters in views

I'm trying to set up Grouped filters for Content revision: Changed in a view. I want the filter to work for Today, Yesterday, Last week, Last month, and Last year. The grouped filters makes that ...
0
votes
2answers
12k views

Add header and footer for every pages printed

I've used print module version 7.x-2.0. I've used pdf-version and print-friendly-version. Now i want to do two different things. That is, Is it possible to add separate CSS for pdf, html or email ...
0
votes
0answers
11 views

Pagination for Multi value Entity Reference fields

I have added an Entity Reference type (Taxonomy Term) to the User Entity. It is a multi-value field so that any number of taxonomy terms can have the reference. Now I am using the following code to ...
1
vote
1answer
1k views

Integrating the Webform module in a page

I want to have a form that will take end user inputs (text, sentence, text of multiple values and an image upload of png or jpeg format). These inputs would be later stored in database and would be ...
0
votes
1answer
12 views

Search is broken after updating search_api_solr from 8.x-2.7 to 4.1.4

My Drupal site has a search form, which connects to a Solr index. All of this was working smoothly. But then I updated drupal/search_api_solr from 8.x-2.7 to 4.1.4 (which also required me to update ...
1
vote
1answer
478 views

Upgraded to 7.31 but getting “no pending updates” message

After copying over the files for 7.31 (was 7.26), minus the /sites folder, and running update.php, the result is "no pending updates." I followed the instructions at https://www.drupal.org/node/...
-2
votes
0answers
9 views

Is it possible on Drupal 8 + SimpleNews + Swiftmailer to set up a newsletter for a news site for 50,000 subscribers?

So that mails go well at least in an hour? It is highly desirable that the mails be personalized. What exactly needs to be done for this? Now it is sent only with 20 mails for the launch of the cron. ...
0
votes
0answers
12 views

Trying to manually print Commerce receipt in custom module but stuck on printing total/adjustments

I have a custom module that displays the Commerce receipt at the checkout complete screen. I have it all working except for the adjustments (tax, shipping, discounts) section. In my custom module I ...
0
votes
2answers
29 views

How to add comments to YAML webform

I would like to add comments to the Sourcecode of my webforms in YAML. # comment (without quotes). But when I save this, it automatically gets removed. 20_e_mailadres: '#type': email '#title': E-...
1
vote
2answers
982 views

Webform Custom-Field Module and validation

I am currently working on a Webform that is used to enter some rather complex finance information (think tables with sums and other weird checks). Since the styling has to be rather specific for this ...
-3
votes
0answers
15 views

How to modify the date format ( Month Year ) in Drupal 8 Custom form?

$form['reports']['date'] = [ '#title' => t('Select Month and Year'), '#type' => 'date', '#date_format' => 'M Y', //'Y-m-d', // #description' => t('i.e. 06/2016'), ...
0
votes
1answer
464 views

Loading mixed content

I have a site loading over https. However, two items are being picked up in Chrome as targeting http, and I can't figure out where to look to change them. They are: GSS search form: we are using ...
1
vote
1answer
30 views

How do I retrieve a plugin block field's translated value?

I created a module that installs a block with some fields when installed. I added a schema file, and altered the blockSubmit() function so that the translation is saved in the schema. Here is my ...
1
vote
0answers
33 views

Access Denied upon order completion

in drupal commerce every time logged in as a authenticated user and can get all the way through checkout until I am redirected back to the site. redirected to this page: /checkout/15/payment/return/...
0
votes
1answer
408 views

Export and Import Taxonomies and Extra Fields

I created extra field in Login Form, I Installed even Extra Module (address) and create Taxonomies Now I want to Export these configurations to another Drupal. This Drupal is the Clone of the main ...
0
votes
0answers
15 views

Views Preview Shows Results, but Browsing the Path Doesn't

My site is running Drupal 8.9.3 with "Views taxonomy term name into ID" 8.x-1.0-alpha3 and "Hierarchical Taxonomy Menu" 8.x-1.x-dev. I'm trying to create a view that shows Drupal ...
3
votes
0answers
28 views

How can I correctly attach a file to a mail? [duplicate]

I am very new to drupal and need to upload a file and sent it as attachment in Drupal 8. Code to send email is ... $params['context']['message'] =$test ; $attachment = array( 'filepath' ...
2
votes
1answer
42 views

How can I remove a theme that is no longer in core?

Drush/Drupal 8 is throwing errors because a theme is 'enabled' that is 'missing'. The theme is/was part of core (test_stable), and I'm having difficulty getting it to uninstall. I understand that the ...
2
votes
1answer
1k views

Change field value with hook_views_pre_render()

I'm using Views in 8.4.0 and attempting to change the output of a field value with hook_views_pre_render(). The default value of the field is a node ID. The intent is to replaced the value with a ...
0
votes
0answers
10 views

How do I set the value of a date and time field with Behat?

I am trying to test my site with Behat. On my entity edit form, I have a Datetime field that uses the Date and time widget. I want to use the Date and time widget because I need to set the time in ...
-1
votes
1answer
26 views

How can I change a content entity to a config entity?

I created a project using Content Entity but now I need to change this entity to Config Entity. Do you know how I can do this?
6
votes
2answers
8k views

How can I use the Mimemail with SMTP Authentication Support modules together?

Is it possible to use Mimemail, Mail System, and SMTP Authentication Support modules together? Why: Currently I am using Mimemail to send HTML-formatted messages; however, because of the ...
0
votes
0answers
6 views

Update View When Filtering By Facet

We are using Commerce 7 to sell mattresses that may or may not have size variants like Single, Double, Queen, King. We have a facet filter on size that allows us to filter mattresses that are say ...
0
votes
1answer
374 views

Moving elements to other page regions

I want to move the page breadcrumb to the content region in Bartik (D7.) I assume it is theming but I can't find anywhere (style.css, layout.css) where the breadcrumb is assigned in the first place. ...
0
votes
0answers
17 views

how to download media into drupal 9 database from a sql database

here my problem i have old blog made in laravel and my boss want me to migrate all the article to a drupal website so i create a plugin that migrate the article title and text but i have to download ...
1
vote
1answer
22 views

How to dynamically manipulate canonical entity URLs

I've got a project with a multi-user / multi-domain environment. There is one "main" portal like www.myproject.com and for every registered user with a specific custom permission ...
0
votes
3answers
345 views

View per content type

I'm using Drupal 7 and Views. I have 4 different content types and I want to be able to display each content type in separate view. What i did is I create a view and a page and i set the view Path to ...
0
votes
2answers
59 views

How can I disable the cache for a specific page or have the cache ignore query params?

I need to disable the cache for a specific page, or get the cache to ignore query params. I have tried this, but it does not disable the cache for me https://www.drupal.org/project/...
1
vote
2answers
509 views

Using git to fetch changes from testing version to live website

I am maintaining and developing a Drupal website and have a testing/development version of the site in a subfolder of drupal instalation. I started to learn git and I am wondering about how could I ...
1
vote
0answers
18 views

Manually removing an orphaned entity type

I have been handed an older Drupal 8 site and asked to update it to run with composer. I didn't do it in the cleanest possible way but it is working. I have run into trouble updating it. I am most of ...
3
votes
1answer
1k views

Custom Views Sort Order Using Filter Value

I have a View containing a list of events. There is a date field on the event content type which contains start and end time: There is a filter for start time, which is setup using the Views ...
1
vote
1answer
3k views

Render entity reference field with link in node template

I have a content type with an entity reference field to select a user. Now I would like to render this field in the node template so that the field links to the user profile. I set the format of the ...
0
votes
0answers
27 views

How Can I ensure Drupal 8 Migration YAML files execute in specified Dependency Order?

My Drupal migration yaml files are not being imported in the correct execution order. I have 8 migration files, most that depend on another file being executed first. I'm using a Google Spreadsheet as ...
0
votes
2answers
352 views

Adding checkbox in admin table display

I'm trying to add a checkbox column in the admin table part of my module. The idea is to add checkboxes at the beginning of each row, like in the normal admin content management form. My table is ...
-1
votes
1answer
423 views

control over what prints on first and second page of pdf

I am generating pdf using dompdf and my website is running on Drupal 6. I have a requirement wherein I need to print part of my html on first page and some part on second page in some cases. Also ...
0
votes
2answers
645 views

How can I disable future dates?

I am developing a custom module, where I need to disable future dates in the date pop-up. How can I do this?
0
votes
1answer
472 views

How can I reorder active menu items programmatically?

I have an 'audience' menu which has 4 links. When a user visits one of these links, it becomes active, and I want to push it to the front of the menu item list. Outcomes would like like; Pitchers | ...
0
votes
1answer
370 views

Change the size of the form element for content title

I could have sworn that when we created our content type, we could select the size of the textfield for the title. I am unable to find that now as I'm in "Manage Fields" and the edit link that's ...
1
vote
1answer
1k views

Products containing a hyphen or numbers not shown or wrong relevance

I have an external Apache Solr Server, with Search API and Search API Views. When we search for ordinary products, they are shown correctly, with the correct descending relevance order. When we ...
0
votes
0answers
17 views

Can I get all the possible values of a field of a content type

I've got a field on a content type that is a taxonomy reference with multiple terms. I'm trying to pull all this values from my custom module config so I can limit my module only displaying on ...
0
votes
1answer
25 views

Edit search form with a module

I have made and installed a new module, called searchIcon. The problem is I want to edit the default value "Search" next to the search form. I tried the code below, but it does not seem to ...
0
votes
1answer
1k views

Autofill texfields based on select option in dynamic fieldset

In my custom form i am dynamically generating multiple fieldsets.Each field set has select option(dropdownlist) and textfield generated dynamically. The value for textfield is dynamically generated ...
0
votes
0answers
11 views

Missing bundle entity, entity type paragraphs_type from field_instance.yml file

I'm currently trying to migrate my D7 site to D8 and one of the things migrating is field_collections to paragraphs. I have a field_collection call "field_sidebar_callouts". I want to ...
-1
votes
1answer
44 views

Get an entity reference's field values in its field template

I have an entity reference field and the template field--my-custom-entity--field-my-entity-reference.html.twig In the template I print the content. {% for item in items %} {{ item.content }} {% ...
0
votes
1answer
2k views

How to programmatically create a custom panel pane

I created a custom panel layout with Panels 3 (following this excellent link) and my layout is ready. Now I have my static markup ready for a node (I can use it on the article or a custom content type)...
0
votes
1answer
39 views

Add custom access check to user page

I would like to add an additional access condition to viewing user pages like user/1. I looked at the following guidelines, but have not succeeded in coming up with a solution. https://www.drupal.org/...
0
votes
2answers
354 views

How to let a user to switch between blocks that need to be shown?

I have pre-defined blocks A,B and C that are meant to be placed in the sidebar_first region. What I would like to achieve is: a visitor could select the block that needs to be displayed for the ...
0
votes
2answers
291 views

Avoid combining products in cart

With Drupal 8 / Drupal Commerce 2, I can't find a way to disable product combining in cart (same products in cart appears on the same line with quantity > 1). In my use case I never want this to ...
0
votes
1answer
2k views

Making text fields autocomplete in views exposed filters

I want to make a text field auto complete in a views exposed form. I tried using the following code but nothing happens(I don't see that blue icon in the text field): <?php function nk_menu() { ...

15 30 50 per page
1
2 3 4 5
1663