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.
0
votes
1
answer
362
views
Managed file in theme config not saving
In my theme settings under 'admin/appearance/settings/mytheme' I am trying to add an image field.
I have added the following to mytheme.theme
function mytheme_form_system_theme_settings_alter(&$form, …
1
vote
0
answers
81
views
graphql mutations, how to create link field?
I am following this guide. https://drupal-graphql.gitbook.io/graphql/mutations/mutations
I have created a module and with a plain text field I can run
mutation {
createArticle(data: { title: "https: …
0
votes
0
answers
86
views
Twig templates with lots of classes?
I have created a twig template and have added classes like below.
{%
set title-classes = [
'title',
'h1',
]
%}
{%
set subtitle-classes = [
'subtitle',
'h2',
]
%}
<div{{ attri …
0
votes
0
answers
180
views
Why are the images referenced using a relative path instead of an absolute path?
I have installed my Drupal site on my localhost under a path like /websites/mysite/drupal. Most files get loaded correctly, such as those at /websites/mysite/drupal/sites/default/files.
For some reaso …
0
votes
0
answers
39
views
Ho can I add a class to a specific row in views-view-field template?
I have created a custom views-view-field template and added some custom html and views field similar to this
<div class="{{ fields.my_text_field.content }}">
{{ fields.my_media_field.content }}
</di …
1
vote
0
answers
77
views
How to wrap select list in custom html?
I have a select list created by views exposed filters.
When I debug the templates used. I have the exposed filter template, then the select list is in a seperate template.
I tried just putting my html …
0
votes
0
answers
31
views
hook_form_alter makes js on every other form not work
I use hook_form_alter() to alter a field.
function mymodule_form_alter(&$form, &$form_state) {
if ($form['#id'] == 'my_form') {
$form['my_field']['#value'] = 'New value';
}
}
It changes the f …
0
votes
1
answer
154
views
Is it possible to render a region in a menu template?
In my Drupal 8 theme I have a template called __menu.html.twig which gets called in my page.html.twig
I am trying to render a region within the __menu.html.twig where I can place blocks. …
0
votes
4
answers
1k
views
How do I add HTML markup to the title?
I am trying to alter my title to include html. I have tried the following
function MODULENAME_views_pre_render(\Drupal\views\ViewExecutable $view) {
if ($view->id() == 'products_test') {
foreach …