Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.
1
vote
1
answer
40
views
Conditionally display field based on comparison to other field
I have a content type Event that has a startdate (field_eventdate) and an optional enddate (field_eventend).
Although it's optional, the enddate is often filled in by the users with the same date as t …
1
vote
Accepted
Conditionally display field based on comparison to other field
I finally solved the problem by adding a template for the content type. This allowed me to simplify the preprocess function:
function mytheme_preprocess_node__event(&$variables) {
$startdate = $var …
1
vote
Accepted
How to include a patch to a JS library?
As Kevin already mentioned: it can be done using 'composer-patches' in a similar way to patching a Drupal module.
The mentioned patch contained more than I wanted to patch, so I downloaded the patch …
0
votes
0
answers
31
views
Longer text doesn't translate in custom module
I have built a simple module that contains several modules.
Each shows a page with some descriptive text, a form and a result table. The result table is populated using the input and some calculations …
1
vote
1
answer
974
views
How to include a patch to a JS library?
I included it in composer.json like this:
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"name": "mehrpadin …
2
votes
Accepted
Image styles not generated during config import
I went through adding all the files one by one and finally found the problem:
image.settings.yml contained:
suppress_itok_output: true
Once it was changed to false the problem disappeared.
0
votes
Migrating files from local source are not found
I run the Drupal 8 site inside a DrupalVM server and the migration is done relative to THAT root. …
0
votes
1
answer
300
views
How to add extra eventlistener to menu object in attached library
This is my first Drupal 8 project and I'm running into a problem figuring out how to attach an extra event handler to an object.
I am working on a custom theme using Radix as base theme. …
1
vote
1
answer
417
views
Image styles not generated during config import
I am trying to do a migration of a Drupal 7 multilingual site to Drupal 8. … Plan is to setup the Drupal 8 site with as much settings and modules as possible so I can alter the content during the migration such as migrating a D7-field to a different D8-field. …
0
votes
1
answer
2k
views
Migrating input formats causes errors
I am trying to write custom migrations to migrate my Drupal 7 website to Drupal 8. I am currently using Drupal 8.6.7 and Drupal 7.61 for a copy of the production website. … (src: https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#d7_to_d8 ). …
4
votes
Accepted
Migrating input formats causes errors
Thanks to @Jdrupal I finally found the solution in this link.
body:
plugin: sub_process
source: body
process:
value: value
format:
plugin: default_value
defa …
0
votes
1
answer
1k
views
Migrating files from local source are not found
I am migrating from Drupal 7 to Drupal 8 (8.6.9).
Both the Drupal 7 and the Drupal 8 site currently run on my local machine. …