All Questions

Filter by
Sorted by
Tagged with
-3
votes
2answers
109 views

Page Title in drupal [duplicate]

In my drupal site some places the page titles are not shown.that are the term or a block but not a page.how can i show that title
-3
votes
1answer
335 views

Undefined property: stdClass::$menu in workbench_access_node_presave() [closed]

I'm logged in as user/1 and am using a workbench module. Whenever I unpublish a published revision (using the moderate tab) I am presented with the following errors: Notice: Undefined property: ...
-3
votes
1answer
89 views

Node edit area alterations

In my node edit area there are some hyperlinks exposed by the References Dialog module. I need to alter these links by appending some extra information to the url. Can anyone tell me what hook to ...
-3
votes
1answer
88 views

How to get this hierarchial view [duplicate]

Possible Duplicate: Clean way of building simple taxonomy browser of arbitrary depth Here Bachelor of programme -- Parent hierarchial term Year 1 -- Child term of Bachelor of programme Term 1 --...
-3
votes
2answers
43 views

Display all the nodes from a specific content type on the front page

I have a custom content type (news). I want to show all those nodes on the front page. How can I achieve this?
-3
votes
1answer
59 views

Domain Access Source - Canonical

for now domain access and source set the correct canonical domain and show the links linked to the correct page. I can disable that and the links stay within the domain I’m currently on. Visitors won’...
-3
votes
2answers
64 views

How do I solve this error?

I started facing AJAX issues on my site, due to which I was unable to create views. Googling, I found that updating the Views module might help. I added a new Views module under all/sites/modules/...
-3
votes
1answer
1k views

Drupal 7 dpm an object, but not sure how to render a recursion variable?

In Drupal 7 Views php. I'm trying to render and string replace the content:path field by using a global PHP views field. The issue I'm having is i'm not sure how to reference the content:path field as ...
-3
votes
1answer
451 views

Can I use Moment.js to fix a client side date format issue?

Different Browser and OS show a different date format on client side. Given the following markup: <input data-drupal-selector="edit-field-date-end-value-date" title="Date (e.g. 2019-05-15)" type="...
-3
votes
1answer
1k views

Use a Twig filter to resize / crop images in templates [closed]

I want to use a twig filter to resize/crop images in Drupal 8 templates for responsive images, I know I can generate responsive images with Image Style and Responsive Image styles, but that requires ...
-3
votes
1answer
42 views

How to change a view field programatically

I want to change the result of a view field in a custom module.I’m not sure which of the hooks to use for this there are not a lot of examples of how to use the views hooks for d8
-4
votes
1answer
61 views

How does a developer adopt an orphan module?

Is there any way for a developer to apply for adoption of an orphan module? Some modules like the Views PHP module are still actively used by many sites, but there isn't any active maintainer on it. I ...
-4
votes
1answer
75 views

Is there a solution, allowing to fill a string field by decoding the bar code?

Do you know if is there a solution which would allow to input data to a string field decoding an image with bar code ? That is, there is a field, containing a button. Having pressed at the button, I ...
-4
votes
1answer
100 views

How would one encrypt or protect a Drupal 7 Views Configuration Recipe from prying eyes?

I spent quite a number of days developing a Views configuration recipe and I would like to protect it from other's stealing this by just viewing the Views page. Is there a module or a way to encrypt a ...
-4
votes
1answer
3k views

Do we really need Blog module in Drupal 7 (and 8)? [closed]

In Drupal 7, the Blog module do not have any option to change the URL. Because I want a different URL, I build blogs without the Blog module. For blog pages, I make it using Views and theme ...
-4
votes
1answer
239 views

DATABASE SYSTEM VERSION: The database server version 5.6.41-84.1 is less than the minimum required version 5.7.8

I am trying to run a Drupal Security Update, update.php, but receive an error like this: DATABASE SYSTEM VERSION 5.6.41-84.1 The database server version 5.6.41-84.1 is less than the minimum required ...
-4
votes
2answers
172 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?
-4
votes
2answers
643 views

How i can add a refresh button in the views? [closed]

How i can add a button to refresh new content in views pages or blocks? like new tweets in twitter's timeline. Thanks
-4
votes
1answer
42 views

Why does a query string return a 404 error? [closed]

I recently upgraded from Drupal 8 to Drupal 9 and noticed a problem that occurs when the URL has a query string. For example for the following URL Drupal throws a 404 page not found. https://example....
-4
votes
1answer
94 views

Optimize Drupal Composer Workflow via Gitlab

I have the following workflow for one of my product based on Drupal 8: I use three custom private dependencies via composer ( two modules , one theme) , a lot of contrib modules and obviously drupal ...
-4
votes
1answer
41 views

The website encountered an unexpected error. Please try again later. as shown in body [closed]

I tried to set up my drupal 8 full project on localhost but after set up when I run project getting error as shown below:- The website encountered an unexpected error. Please try again later. Drupal\...
-4
votes
1answer
29 views

I'm using the media video module, how do I upload alternative webm and mp4 versions?

Server hosted video. Using the core video field. I'd like to put up a webm version, but also a mp4 version encoded for safari. Create a video block with 2 source items <video> <source src=&...
-4
votes
1answer
78 views

How do I integrate third-party payment gateways? [closed]

I need to integrate third-party payment gateways like Razorpay, Payu with Drupal 8 Webform. Is there any way to achieve this?
-4
votes
1answer
87 views

How to limit to certain page with TWIG?

I want this code to appear only when I visit one of the three paths below. How to do this in TWIG ? /product/add/produit or /product/*/edit or /product/*/duplicate The condition below does not work....
-4
votes
1answer
102 views

Multiple Gutenberg blocks in a module [closed]

I've created a custom Gutenberg block and would like to know how to add more within the same module. Some suggested to add JS in MY_CustomModule.libraries.yml, but it does not work. My custom H2 ...
-4
votes
1answer
516 views

How to redirect the user to the home page?

I have Drupal 8.9. When users access the site, they are redirected to their user account page. I want them to be redirected to the home page. If I leave the Default front page setting empty, the users ...
-4
votes
1answer
137 views

Alter the login form [closed]

I am new to Drupal and I need to alter the login form add extra validation fields with adding two more date of birth and email id using hook_form_alter. How do i do this. and how to find the login ...
-4
votes
1answer
41 views

Issues while Updating drupa/slack to 8.x-1.2

The site I am working on is using drupal/slack ^1.2 in composer.json file but the module present in the instance and that in composer.lock is the dev version. I ran a lando composer require drupal/...
-4
votes
1answer
66 views

Expected \Drupal\User\Interface got Drupal\Core\Entity\EntityInterface [closed]

I am trying to load a user and pass it a UserEvent class to simulate an event trigger. $user = \Drupal::entityTypeManager()->getStorage('user')->load($id); However, the Class only accepts ...
-4
votes
1answer
40 views

How to have all options of some menu on the same line?

In the mayo theme I use for my site, I have a footer menu. By default, the options of this menu are displayed vertically: I'd like to have the options displayed horizontally. How can I do that?
-4
votes
1answer
38 views

Calling Drupal Form from non-Drupal 3rd Party Website [closed]

I have an existing non-Drupal 3rd party site and I am trying to submit a form request to a site written in Drupal. For some reason, the request does not process. I'm not familiar with Drupal and would ...
-4
votes
1answer
422 views

Use computed twig to get last item in a multi value composite field [duplicate]

I want to use a computed twig element in a webform to give me the value of the last item in a multi value composite field. the name of the field is destinations, and it has a departure_date field and ...
-4
votes
1answer
83 views

If admin theme is 'seven' disable the module

So in a custom module, I'd like to check whether the theme is seven or not, if it's seven the module shouldn't load/work. Note: I have a module that shouldn't override half of UI of seven theme but ...
-4
votes
1answer
45 views

How to download a file from a system folder when a link is clicked? [closed]

I have a file("abc.csv") that is stored in the local system (for example: /var/a). I need to download the file when I hit a link in a Drupal site.
-4
votes
1answer
123 views

Moving a website from Drupal to Wordpress [closed]

i want to move a website from drupal to wordpress, keeping the hosting provider the same (siteground). please bear in mind my knowledge in these matters is very rudimentary (i have published a blog on ...
-4
votes
1answer
62 views

How can I switch my already installed project to drupal-project?

I am trying to make my already installed drupal site to use drupal-project.
-4
votes
1answer
57 views

Will renaming the update.php file affect the Drupal update process?

Will renaming the update.php file affect the Drupal update process? What's the correct way of renaming this file/path? If we want to use /update as alias for a node, there seem to be SEO ...
-4
votes
1answer
501 views

How to load a CSS file on a specific page, not on the entire site

I have a CSS library that I need to load on a particular page because loading on unnecessary pages reduces the performance of my site. I know to load it for all pages like. global-styling: css: theme: ...
-4
votes
4answers
2k views

How do I change the admin password form PHPMyAdmin?

How do I change the admin password form PHPMyAdmin?
-4
votes
1answer
2k views

Display popup message on submit button [closed]

For my contact form using form api and for my Drupal 7 built in user registration form, I need to display messages in a popup window. E.g: when user clicks on submit button on a contact form the ...
-4
votes
1answer
480 views

Multiple dependent select [closed]

I have installed Simple hierarchical select module ,and added category field in one content type and also gave multiple hierarchical taxonomy. but this module is not responding properly when i click ...
-4
votes
0answers
35 views

After upgrade, incompatible modules have issues

I upgraded from Drupal 8 to 9. After the update, on the status page, I got the following message. Incompatible modules The following modules are installed, but they are incompatible with Drupal 9.0.0:...
-4
votes
2answers
29 views

Get all orders count of a specific user programmatically

I want to get count of all the order placed by an user programmatically in Drupal 8.
-4
votes
1answer
104 views

Error Unable to copy files settings files from BLT into your repository

When I try to run blt sync I am getting the following error. blt:init:settings Hash salt already exists. [error] Unable to copy files settings files from BLT into your repository. For ...
-4
votes
1answer
50 views

How do I add CSS classes to all the form elements?

How can I add the same CSS class (form__text) to form elements in Drupal 8?
-4
votes
1answer
48 views

Entity Data not available in hook_entity_insert

I have written hook_entity_insert for pdf file generation. Want the pdf file to be generated immediately after the entity is created. function general_inspection_checklist_entity_insert(Drupal\Core\...
-4
votes
1answer
41 views

How can you separately get the name and the value of a field?

I want to get the key and the value of my row for example I have this: {{ content.field_nom }} but the out put is: my field name my value My question is how do you get 'my field name' alone ...
-4
votes
1answer
36 views

How do you build a conditional form?

How do I build a form with : optgroup select for subject conditional display of informations depending on the selected subject conditional display of a part of the form if a checkbox is ticked ...
-4
votes
1answer
43 views

Why is my db_query not working? [closed]

i am trying to display my content types and their info in a table format. First thing i want to do is make sure i am connected to the database. It seems i cant connect to the database. Please assist. ...
-4
votes
1answer
25 views

Article "promoted to front page" also displays all images of featured slideshow [closed]

Currently using Shinbun theme and Drupal 7 (based on an existing site, as required for a project) and was struggling to create a slideshow of selected images, which I finally managed on the article ...

15 30 50 per page