Questions tagged [9]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

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

How to fetch custom right-widget content from database

We are working on a blogging site. The site structure is below. The site currently have several content types - (Article-Post, Unlisted-pages, Tips, Guide). The reason being different is that, some ...
1
vote
0answers
31 views

How do I fetch all users in a comment thread?

I want to send notifications to users that have posted in a comment thread. I need to get the user IDs in an event subscriber that will be triggered when comments are created/edited, so performance ...
-2
votes
1answer
31 views

How to store and fetch unique sidebar per content

We are working on a tutorial Website project. Currently, we have gathered Wonderful template made with front-end framework Bootstrap. Because of robust performance, we have decided to move to Drupal, ...
1
vote
1answer
18 views

Are Drush vbo-execute actions supported?

I've been trying to find an efficient back-end way to delete large numbers of nodes based on some filter criteria to implement data retention policies. I have read that it's possible to perform ...
-3
votes
0answers
28 views

Creating a development site on subdomain with live site

I need to have a copy of my live site install in a subdomain called dev.mydomain.com. But when I connect to that subdomain, the site shown is the one at the main domain, although the URL contains the ...
-3
votes
0answers
30 views

Which Drupal components do I need to build 'personal collection/stock' funcationality? [closed]

Use case In a collectibles site, user can choose an item and add it as many items as they wish to their collection. Then, user can access a page that lists the items they own, and for each item user ...
-2
votes
0answers
25 views

Does Webform support the use of bootstrap tabs? [Drupal 9]

Just wondering if the drupal webform module supports bootstrap tabs, I.e two tabs in a form which switch the container within see example
0
votes
0answers
18 views

Move entity properties into existing tabs like Node?

When creating a custom content entity, how can I get the properties to automatically arrange themselves on the form like adding/editing a node does out of the box? I'd like the experience to be ...
0
votes
0answers
25 views

How can I get the value of the field_percentage field?

I'm trying to create a custom template for the paragraph-progress-bar component. The component I created has 2 fields: title (field_title) and percentage (field_percentage, integer field limited from ...
1
vote
2answers
35 views

Installing Acquia BLT on an existing site

We have a working Drupal 9 installation (running within Docksal), which has pretty much the whole install living in docroot/ except for the config/ directory, which is a sibling of docroot/. This ...
0
votes
1answer
17 views

Increase maximum amount of characters for entity reference field (tag style)

I have a Drupal 9 installation running Commerce 2. My products use a taxonomy entity reference field (tag style). There's one products category, where I need to have more references in the tag input ...
-4
votes
0answers
33 views

How to implement Trash with Drupal [closed]

I could not find any working solution to this apparent problem. Douring trying in localhost, three times, I have broken my theme. To enable Trash feature. Some of the modules I could find are, ...
2
votes
0answers
25 views

Menu link tree only loads enabled elements in subtree regardless of parameters

When loading a menu tree without any custom parameters: $tree = \Drupal::menuTree()->load('my-menu-name', new MenuTreeParameters()); The returned tree \Drupal\Core\Menu\MenuLinkTreeElement[] ...
0
votes
0answers
16 views

Media 'external video' requests iframe over http instead of https, leading to mixed content errors and blocked video

I have a drupal 9 site where I use the media library. I've created a media type with source "External video", allowing youtube videos. As far as I can see this uses oEmbed. I've added a ...
0
votes
1answer
20 views

Render published content or comments on new created content using a link

I was looking without luck for a way to be able to make a link or button with the functionality of making a new content showing some content or comment already posted above, something like the Retweet ...
0
votes
0answers
24 views

Upgrade with patched module [duplicate]

I am trying to upgrade to Drupal 9, but I have two modules that aren't compatible. I patched both the modules to make them compatible. However, I can't upgrade to Drupal 9. When I do, it tells me ...
0
votes
0answers
22 views

How selectively print the content of region.html.twig

I'm trying to modify the html of region.html.twig I've used a hook to override the suggestion: function my_theme_theme_suggestions_region_alter(array &$suggestions, array $variables) { if($...
0
votes
1answer
26 views

Force an image to display as block (not inline)

I have a field of type image that I would like to display in a column alone, with all following content displaying beneath, even if the image width is narrower than the width of the display. Even when ...
-2
votes
1answer
33 views

Issue installing module via composer. - “package is fixed”

I've installed Drupal via Composer as well as 2 other modules and everything seemed ok. But now I tried installing Nodeaccess and get the following error message in console: Your requirements could ...
-1
votes
1answer
18 views

How do I list all names of the same group type?

For a Group type (Birds), I tried to create a View in Drupal 9 to list all groups of that type, but I end up getting a group title entry for every node, for example this list. Birds groups Hawks ...
0
votes
1answer
54 views

How can I display the values returned from an external API under a form?

I have created a custom module that pulls in data from an external API. Users select a few values on a form; submitting the form makes a call to the external API. The module then displays the data, ...
0
votes
2answers
50 views

How can I output the absolute URL as link text for internal links on link fields?

When using a link field without a link text and just with the URL, Drupal 8/9 outputs the relative path as the link text for internal links. How can I change that to either output the absolute URL or (...
1
vote
1answer
65 views

Use entity reference to target revisions of an an entity

I'm building a custom entity document which supports revisions. Revisions are seen as versions of the document (v1.1, v1.2, ...), the title field is revisionable as well. Then there is a custom entity ...
0
votes
0answers
8 views

Search api, postprocess processor: how re-run the query?

The documentation of the search api module says, about postprocess processor: Postprocess query This is probably the rarest phase for processors to use, postprocessing the query after it has run to ...
0
votes
0answers
43 views

I cannot upgrade

I'm currently with Drupal 8.9.13 and trying to update to Drupal 9. When I try the below command it says Nothing to install or update. composer update drupal/core-recommended --with-dependencies When I ...
0
votes
1answer
52 views

“Fatal error: Call to a member function setFormClass()”

I am trying to load the node in an external script, and shows me the following error. Fatal error: Call to a member function setFormClass() in field_ui_entity_type_build() The code causing the error ...
0
votes
0answers
10 views

Taxonomy reference with sub-fields data entry

I am working on a Recipe node type which has a taxonomy reference field to my Ingredients taxonomy. The ingredients reference field is set to "Create referenced entities if they don't already ...
0
votes
0answers
21 views

Deleting content leaves a lot of data in the tables

I deleted all content from my site via the content panel (/admin/content). And when I looked in the DB (in node, node_field_data, and all fields associated with my only content type) the data was ...
0
votes
1answer
29 views

How do I change the node title when saving it?

For a content type (Article), when I create a new node and save it, I want to append a field value (for example, Location) to the node title. There seems to be great answers using custom plugins (...
0
votes
0answers
10 views

Content edit submit handlers do not work for migrated content

I have my site in Drupal 7 and have successfully migrated all the contents to D9 (Can view them properly with all the custom fileds added to them. etc..) There were a couple of original Drupal content ...
0
votes
1answer
13 views

Views block that shows all references to current node (cross references)

I'm confused with views filters and relations... In my articles I have a field (field_article_reference_nodes) that references other nodes and shows these as a link. Now I want to attach a view to ...
-1
votes
0answers
20 views

Add URL to each image

I have a Slick carousel which uses a custom content type where I can bulk upload images on one node that cycle through the carousel. I would like to assign a URL to each image so that the user can ...
0
votes
0answers
14 views

Node field autopopulate based on taxnomy term value

I have a Vocabulary called Cars. Each term has two fields (name [default drupal field] and status, Example: [name] Mercedes E220 - [status] Available) In my node/content type I want to create two ...
0
votes
0answers
8 views

table media doesn't exist when accessing /admin/modules as /admin/content/media pages

When I try to visit /admin/modules/uninstall, or even /admin/media, the browser shows the following error: Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: ...
0
votes
1answer
107 views

How to update drupal/core-recommended from 9.0.11 to 9.1.4?

I did composer update drupal/core-recommended --with-dependencies and this got the site updated to 9.0.11. In Available Updates Drupal is recommending 9.1.4. What composer command will get me there ...
0
votes
0answers
19 views

Enable language selector for Paragraphs Library

I am using paragraphs on a multilingual Drupal 9 page. Everything is working fine, I can translate basic pages with paragraphs to get a multilingual node. I have now enabled the Paragraphs Library sub ...
4
votes
3answers
127 views

How can I restrict external URLs in link field to allow only certain domains?

After creating a Link field and use the Link with service icon format, I find out that there is no option to restrict external URLs to external domains that I want For example, if I only want to allow ...
0
votes
1answer
33 views

Migration with custom files path

I have to migrate a website from Drupal 7 to Drupal 9. My Drupal 7 files were located in this directory : sites/mywebsite/files In Drupal 9, files will be located in this directory : sites/default/...
0
votes
1answer
53 views

Entity revision metadata key missing after upgrading

After upgrading a site to Drupal 9, I started seeing the following error when visiting the site: Drupal\Core\Entity\Exception\UnsupportedEntityTypeDefinitionException: The entity type banner does ...
0
votes
1answer
42 views

How do I place a block with Twig Tweak? [closed]

I've placed a view block via Twig Tweak in page-front.html.twig before and it worked fine. That was on Drupal 8, but now I'm on Drupal 9. This's what I would have done in Drupal 8. <div id="...
3
votes
1answer
71 views

Page titles are wrapped in a span tag

On a site we are working on I was asked why the page titles are wrapped with a span tag. We are not using a base theme. I checked everywhere I could think of, but came up short. In page-title.html....
0
votes
0answers
21 views

How do I set the default value for results?

I'm on Drupal 9 and I have an AJAX view with a page display and an exposed filter block and a single filter exposed, "Search: Fulltext search". The Search API module is configured to search ...
0
votes
0answers
24 views

Dynamic nid for drupal_field twig tweak function

I have a field_slides paragraph field on my home page, on drupal 9.1.3. It is for rendering a carousel. I want to iterate over the elements of the paragraph field (eg the slides with title, ...
-1
votes
1answer
57 views

Can't get annotated plugin discovery to fire

I've checked Debug plugin discovery and tried restarting Apache and setting $settings['class_loader_auto_detect'] = FALSE; in settings.php, with no change. I have a custom module. Setting a breakpoint ...
0
votes
0answers
21 views

Adding a view in the Paragraphs Selector

I have a drupal 9 website where I created a View "Homepage - article overview". On the homepage I have paragraphs enabled (text/image | 2 columns | 4 columns | Full width image). I want to ...
0
votes
2answers
56 views

php.ini opcache path for multiple websites with shared code base

I have a D9 website set up already and I want to add another that shares the same code base. (This is on a shared hosting environment) Below is an example my current php.ini settings for the opcache ...
0
votes
0answers
29 views

Content translation not working on the front page

I have a translation problem on my site in drupal 9.1.3. I have a content type for my homepage that contains two fields: field_slides which is an EntiyReferenceRevisionFieldItemList to a Paragraphs ...
0
votes
1answer
20 views

Render link in twig with 'entity:node/n' as uri in array

With the module "config pages" I've set some variables global to render in templates. In mytheme.theme I've added a function: function mytheme_preprocess(array &$variables, $hook) { $...
0
votes
2answers
35 views

How do I join two tables?

I was following this tutorial on Drupal module development. It talks about database query joins in module development. The tutorial is made for Drupal 8 and I'm using Drupal 9. Then I made this (look ...
0
votes
0answers
11 views

How can I combine a confirmation mail, especially text for [simplenews-subscriber:combined-url] in simplenews?

I would like to custom link for the [simplenews-subscriber:combined-url] which appears as http://example.org/newsletter/combined/123/123456789..... It would be better if the link appears as Subscribe ...

1
2 3 4 5