All Questions

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

Decoupled Drupal - Security

I am running a Drupal 8.9.2 site as a content repository accessed via an Angular 8 app. So there is one administrator who uses the Drupal interface to write content / upload files eccc.... and ...
-2
votes
0answers
39 views

Allow users to control block visibility for themselves

According to this page, I should be able to give my users the option to show or hide a particular block through their profile settings, as hinted at roughly two-thirds of the way down the page: ...
-1
votes
0answers
23 views

Message Stack template remove attributes in HTML tags

I am using Message Stack to send notifications in Drupal 8. I have defined a message template and I use "style" attribute in tags to define CSS properties. I use a filter format without ...
0
votes
0answers
12 views

Token support on the menu link field

Is there is any alternative way to make token to work in the Drupal 8 menu link field other than Menu Token module. I want to use token to set as a default value when I am creating new menu, but if I ...
0
votes
0answers
18 views

how to access webform submission data from a custom content type

I 'd be grateful if someone could help with this.. I have a webform, let's call it input form, which, when submitted, triggers an external application to run on my server. That application uses some ...
0
votes
0answers
24 views

how to config nginx for drupal multisite in subdirectory

i am new to drupal , i use drupal 8.9.1 , with composer on ubuntu 18.04 , nginx , php , mysql . i try install second drupal with multisite in mypath/sites/test with mydomainname.com/test URL but i ...
-1
votes
0answers
9 views

Media Comments on Activity Stream when using Open Social

I have added the ability for users to upload Media to my OS install. I have a Media Type of Photo and have configured media to create a Message that displays in the activity stream. For some reason no ...
0
votes
0answers
20 views

How to use parent paragraph or field name in template_preprocess_file_link function?

We created custom theme suggestion for fields links using this code function THEME_theme_suggestions_file_link_alter(array &$suggestions, array $variables) { $route = \Drupal::request()->...
0
votes
0answers
7 views

How to load custom menu field when editing?

I'm extremely new to Drupal so if my question is badly worded I'm sorry. Inside my menu_ui_override.module I have made a made a new field and added a custom submit handler: function ...
0
votes
0answers
15 views

Print user field on a user profile?

I am using: Drupal 8.8.8 Open Social 8.4 Profile 1.1 Flag 4.0-alpha3 I am using the Open Social module which uses profiles and have added a flag to users called “Follow User” (Machine name: ...
-1
votes
0answers
23 views

iframe not loading with CKEditor iFrame module

I am using the CKEditor iFrame module to get content in an iframe in CKEditor. Installed using Composer and followed all configuration steps. Inside the CKEditor — and when viewing the content — the ...
0
votes
0answers
22 views

composer require --dev drupal/devel isn't working

I followed the instructions on prkos.hr/Install-Drupal-8-Ubuntu-1404-LTS for installing Drupal 8 and tried to install 'devel module' but had the error composer require --dev drupal/devel [...
0
votes
0answers
11 views

getting custom field values

I set up a content type of example with custom fields. How can I get the field values to show in my twig template? I have tried {{ content.field_formattext‎ }} and that doesn't display anything.
0
votes
1answer
14 views

Testing if email was sent in Kernel test

I am trying to write automated tests for a or that will sent an email on submission. I can write the test to check for the presence of the entity that is created along side the email, but I also want ...
0
votes
0answers
10 views

How do I add a class on a “checkboxes” element's option?

I have an exposed field with a "checkboxes" field, that I need to theme by adding (and removing) Drupal's default classes. I found close to nothing about how to do that, excepted this answer....
0
votes
0answers
18 views

Ultimate Cron installation Table 'db_name.ultimate_cron_log' doesn't exist

After installing the ultimate cron module version 8.x-2.0-alpha4, When I navigate to (/admin/config/system/cron/jobs), I get the following error meassage - Base table or view not found: 1146 Table '...
0
votes
0answers
22 views

How to install a specifc commit in Composer

The commerce_webform_order module (currently in dev status) recently changed one of its dependencies from Webform 5.x (stable) to Webform 6.x (alpha). I want to temporarily freeze ...
-3
votes
1answer
48 views

How do I unset a field in a node with the help of hook_node_view? [closed]

function test_node_view(array &$build, Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode) { updateDisplay(); } function ...
0
votes
0answers
20 views

How can I translate Views overridden title?

I have a dynamic view for different products and I use contextual filters to override the views title based on argument of the URL, Now if page translate that argument has same only language code is ...
-4
votes
0answers
29 views

How rewrite this module from Drupal 7 to Drupal 8? [closed]

<?php /** * @file * blogs_dynamic_list_terms.module. */ /** * Implements hook_menu(). */ function blogs_dynamic_list_terms_menu() { $items = array(); // Put your menu items here. $...
0
votes
0answers
27 views

How can I get the currently logged in user's roles in JavaScript? [closed]

Ive tried this but I cannot get the value of user role. jQuery(document).ready(function ($) { //global $user; //$role = db_result(db_query('SELECT r.name FROM {users_roles} ur LEFT JOIN {role} r ...
0
votes
0answers
14 views

Install and enable 'Real AES' module: Dependency with Defuse PHP-encryption library

I downloaded the real_aes-8.x-2.2.zip file from the Real AES project page, unzipped and copied it to contrib module folder (/var/www/html/modules/contrib). While trying to enable this module using ...
0
votes
1answer
34 views

Add ajax on hook_field_widget_paragraphs_form_alter

I'm working with paragraph and I try to change a paragraph with AJAX. My content type have a content field which contains "section" paragraphs which can contain various paragraph types which ...
0
votes
0answers
27 views

How do I change local site alias?

I've recently upgraded from Drush 8 to Drush 9. In Drush 8, I use drush @project.local.sitename status; in Drush 9, I have to run drush @project-local.sitename status. How can I replace the hyphen ...
-2
votes
0answers
14 views

Cyberpanel compatibility? [closed]

I tried Drupal 8 with Cyberpanel. The thumbnails are not generated correctly. I am investigating and there is not much information.
-1
votes
0answers
12 views

Title section of Name Composite shows up as a legend instead of a label inside flexbox

I'm sure this is just a config issue, but I haven't figured out how to fix it. If it isn't a config issue, there's probably a theming issue somewhere. When I use the Name composite inside a Flexbox, ...
0
votes
0answers
16 views

How to programmatically apply a fee/promotion?

I am trying to use the new commerce_fee module to programmatically apply a fee during admin payment flow. I did a simple form_alter to the commerce_payment_add form to have a list of my Fee entities ...
-1
votes
0answers
16 views

Superfish menu hides second level in responsive viewport

I have migrated dev.ronrandolph.com from Drupal 7 to 8.9.1 with Danland theme and superfish menu. ...
0
votes
0answers
11 views

REST login issue with react application

We are trying to integrate the drupal8 login REST api in react. And we are facing the below issue. Status code 500: Service unavailable. And When we checked the error log, we are seeing the following ...
0
votes
0answers
23 views

Assign content creation of nested content

In my Drupal 8 site I have a newspaper, that consists of multiple non-fix categories. Within these categories I have two different types of articles. As an editor I want to assign these two types to ...
0
votes
0answers
32 views

Drush commands are not working in Xampp on Windows

In Xampp 2 Drupal sites are there.one is drupal 7.0 and another one is drupal 8.8.7. Drush version is 8.3.5, PHP version is 7.2.22 ,composer 1.9.2 When I try enabling module in Drupal 7.0 drush en ...
0
votes
0answers
17 views

How to translate the author line “Submitted by … on …”

I've created a custom content type in Drupal 8.9.1. Each content post automatically renders the line Submitted by author_name on 08.07.2020 - 18:21 Even though my Drupal system language is set to ...
-3
votes
0answers
17 views

search api solr : partial keyword number + letter not working

We have Solr version :drupal-4.3-solr-4.x Problem: we have an existing part of a node title: swf6p175 we can search for swf6p175 we can search for swf issue: we can NOT search for swf6: : only ...
0
votes
0answers
21 views

Update/Changed field not updating programatically in node

I'm creating a node programatically in D8 and passing the value for update field explicitly. When the node is created it sets the update value which is provided, but when the same node is updated the ...
-1
votes
1answer
40 views

Show node summary (teaser) as tooltip/ Alt/ Title text on hover over nodes titles on front page with Views

I have a custom front page view showing nodes titles only without teasers. I want to have the teaser of each node show when hovering over any title. Something like: <a href="{{ url }}" ...
1
vote
1answer
27 views

I'm unable to install the Symfony var-dumper component

I am having issues installing symfony/var-dumper package via composer the command I ran is composer require symfony/var-dumper The result I get is Your requirements could not be resolved to an ...
1
vote
0answers
25 views

What are best practices for backing up settings files?

I have a Drupal 8 multisite with a few different hosts for production, staging, and local dev. Certain important files like settings.php and .htaccess are excluded from git, making it complicated to ...
0
votes
1answer
29 views

Converting a page created with panel into PDF

I'm working on D7 Panels and I created few pages using panel. I have a use case to generate the pdf for the data existed in the panel rather than the whole page with header and footer. Are there any ...
0
votes
0answers
26 views

How can I check in Twig if an advanced theme setting option is unchecked?

I've a list of advanced theme option(checkbox) to not display, such as search bar. I did many research about custom advanced theme setting, but all the samples are {% if remove_searchbar %}{% endif %}....
0
votes
0answers
11 views

View with referenced nodes from field in the same paragraph possible?

I can not seem to figure out how to set up the correct contextual and relationship settings to accomplish the following: I have a node with a paragraph named slides. In the paragraph slides there is ...
0
votes
0answers
11 views

How can I reference more than one media entity in a custom migration

I have a custom migration script that uses 4+ sheets to migrate data into two different content types (that reference each other), along with referenced users, and most important to my question, ...
0
votes
2answers
30 views

How to make subprocess & migration_lookup plugins behave consistently with single and multiple items arrays

I have a JSON that can hold single or multi values arrays and I can't make subprocess + migration_lookup behave consistently. It correctly imports the nodes in all cases, but it adds the reference to ...
2
votes
0answers
100 views
+100

formBuilder()->getForm() outputs everything except the <form> tag in a view?

When displaying my entity edit form with \Drupal::formBuilder()->getForm($form); (for a flagging attached to a node) in a View that is set to show Content with the Default display, I noticed the &...
0
votes
1answer
13 views

Content Type add/edit command throws an error

The error on the site doesn't allow me to add a new content type or edit an existing one. The error has remained through version updates of 8.8.1, 8.8.8 and 8.9.1. When I click to add or edit an ...
0
votes
0answers
20 views

Is there a way to pass custom data to a form template?

I have been tasked to customize a view, and I have been struggling with its exposed form, because I need to display some informations. Here is how it should look: These elements act as a checkbox, ...
0
votes
0answers
17 views

Using Azure file storage blob [closed]

I am getting the following error whlie trying to upload a video file through Azure module ( https://www.drupal.org/project/az_blob_fs ) with Drupal Webforms. The files are getting uploaded to the ...
0
votes
2answers
41 views

Displaying another entity's form on a node

I am trying to embed the edit form for a flag on my node (the full page view mode). After some struggle, I finally figured out how to get the flagging form. But once I have the form, how do I ...
1
vote
1answer
24 views

How can I show a date in Urdu?

I am working on printing dates in more than a language. With Drupal 7, I used the following code. <span class="arabic-date"> <?php $arrayurdudays = array('', '', '', '', '', '', ...
0
votes
0answers
10 views

Remove Selected button not working on files generated using file_save_data

I am using file_managed field having multiple set to true. I am saving the submitted files in database table in bytea format. buildform : $form['test_pdf_1'] = array( '#title' => t('...
0
votes
1answer
13 views

How do I set up an entityreference entity base field to show as a link to the target entity?

I have a base field on my entity type that's an entity reference, e.g.: $fields['type'] = BaseFieldDefinition::create('entity_reference') How do I set this up so it displays as a link to the ...

15 30 50 per page
1
2 3 4 5
1657