All Questions

0
votes
0answers
2 views

How to move comment submit button inside fieldset

I created a new group for a content type under Comments Fields (admin/structure/types/manage/page/comment/fields), and set the type Fieldset. Is there a way to move the comment Submit Button inside ...
0
votes
2answers
9 views

How do I log in if I can not get the login prompt page to come up as it should?

I am having some issues with my Drupal 7. Because of a different bug I am having with component or panel, one that is taking over pages and hiding other parts of a page somehow, my login page has ...
0
votes
1answer
5 views

Theme hook not found

I have a custom module that implements a webform handler. I'm seeing this error in my Watchdog log when I navigate to admin/structure/webform/manage/myform/handlers: Theme hook ...
0
votes
0answers
6 views

Remove “Upload” button in Webforms and upload on submit

We have a webform that must be open to anonymous users. Users can upload a file to the form, and we found out that some users abuse this option and keep uploading files to our site without submitting ...
0
votes
0answers
12 views

Wrong status for Drupal 7 after update to 7.66 from 7.64

I recently manually updated my localhost drupal site from 7.64 to 7.66. I ran update.php without errors. When the process finished, I cleared all cache and checked the status. It still reported 7....
1
vote
1answer
21 views

No such file or directory in Drupal\Component\DependencyInjection\PhpArrayContainer->createService()

I installed a fresh D8 (Drupal 8.6.15) site on my local dev and I am unable to use drush. After I installed the site, I also did a composer install. My dev is set up on php 7.1 using AMMPS and drush ...
1
vote
1answer
19 views

How to pass contextual id value from one view page to another through Drupal menuing system

I use a view to display a list of books. The view has three pages: /books/title, /books/date, and /books/popularity. The pages are essentially the same with different sort criteria. The pages use a ...
0
votes
0answers
22 views

Pass variable from custom module to twig template

How can I pass a variable from my custom module to a twig field template? my field template is the "field--node--field-webform--parliament-visit.html.twig" and my module is named as "custommodule" ...
-3
votes
1answer
15 views

How to import OAI or REST API url data in a specific content type node?

I have a OAI/REST API url having thousand of records. How do I import these records in my content type node. Which module should I use? or I have to write custom module for this. Suggest some solution....
0
votes
0answers
19 views

How to prepopulate a field from parent form to Inline Entity Form

I have 2 content types - Employee and Project. Both forms have Inline Entity Forms with references to content of each other when user creates an Employee node, he can add projects he took part in, ...
0
votes
0answers
10 views

Validating Tableselect: Checkbox

I have a form in which i have created a table like the following $form['tableselect_phone'] = array( '#type' => 'tableselect', '#header' => $header, '#options' => $options, '#...
1
vote
1answer
27 views

View filter based in text not in number

I have a field in an entity that is an Entity Reference with widget Select list. I have created a view and I want to be able to filter by that field in text format, but when I try to configure the ...
0
votes
0answers
25 views

How to alter local tasks (aka tabs)

I am following the info here to alter 'Results' page for my webform. I want to do exactly what is given in the example on that page (make the table view the default, remove the 'Submissions' tab. I ...
0
votes
1answer
52 views

How to prevent Cross Site Scripting when input using “Full HTML” mode of CKEditor

I am using Drupal version 8.3.7 and ckeditor 4.11.3. I create a basic page contains some scripts as following: In the detail page, I can see that the script in onmouseover="alert('222222')" is ...
-2
votes
0answers
24 views

Website Encountered an unexpected error [Devel]

Am new to Drupal and was learning how to make a website. But when I was updating the settings of the theme the website crashed and gave the Following error. The website encountered an unexpected ...
0
votes
0answers
18 views

Entity registration state change to cancel after 30 minutes

On drupal 7, I use Entity registration and created a registration type with a timestamp field which retrieve the actual timestamp (field-timestamp). After registrering, the user has 30 minute to ...
0
votes
1answer
17 views

Programmatically added block doesn't appear in block admin page

First of all, this is not a duplicate of this question, as I can't see my block even though I click Place Block. Below is my block class. To the best of my knowledge, it should appear in the list, ...
0
votes
0answers
9 views

Change content of views_field_view field using hook_views_pre_render

I am using the views_view_field module for embedding a view inside another view. I want to concatenate some text with that field in hook_views_pre_render based on a condition. But when I printed the ...
0
votes
0answers
19 views

content type, local tasks and routing

So I have two content types, organisation and room. I'm using pathauto on room so the path for a room is /meet/[organisation]/[room] (based on a field in the room content type linking to the ...
0
votes
1answer
16 views

Select the same number of results for every group

I have views where I select nodes and group all results in 3 groups by field. When I select for example a limit to 30 I get results but with the different count in every group (for example 20/7/3). ...
0
votes
0answers
16 views

Programmatic list of Webform elements?

I am building a D8 module that, for configuration, needs a list of webforms and their fields (just the entity reference fields, but I am not picky) I can get the webforms with this: $webforms = \...
0
votes
1answer
19 views

How can I use month name as contextual filter?

I have a contextual filter to filter by month: Date in the form of MM (01 - 12). However, I want to filter by month name (january, february, march, etc.) to get nicer URL and breadcrumb. Is there ...
0
votes
1answer
27 views

How to extend ArgumentPluginBase and have it recognized by Views?

I'm wanting to create a Views argument plugin that extends ArgumentPluginBase in order to overrides one of the form elements in the buildOptionsForm(). I've pasted my plugin below. However, it doesn't ...
1
vote
1answer
10 views

Webform Issue with Drop Down and Key not Equaling Value

I have written a custom handler in Drupal 8 D8 that grabs submitted data from a webform and reformats it and sends it to a JSON webservice. That is all working perfectly. My issue is that the ...
0
votes
1answer
16 views

how to download an alpha version with composer

when i run composer require drupal/uswds it does not download this contributed theme, because https://www.drupal.org/project/uswds only has alpha and beta versions. what would be the correct command ...
0
votes
2answers
20 views

Programmatically specifying pathauto alias

I am working on a custom module to specify the pathauto alias of a new node, based on taxonomy terms that a user sets when they create the node. For instance, for my blog post content type, the alias ...
1
vote
1answer
33 views

Create one-off page with specific fields and template

I'm new to Drupal and trying to add a single new page to an existing Drupal website. It has its own design (with its own css) and its own content requirements separate from the rest of the site. I'd ...
-2
votes
0answers
12 views

Wizard question based theme [on hold]

Does this kind of module/theme combination exist? A similar site that I can relate to is: https://en.ryte.com I need some wizard-based theme that collects data not particularly for registration.
0
votes
0answers
21 views

Using Raphaël JavaScript library

I'm trying to use Raphaël with a Drupal 8 website. I'm wondering if there's a step I'm missing, or maybe some other issue, as it doesn't seem to work. I suspect I'm just missing a step in using extra ...
0
votes
1answer
13 views

Rendered markup different than template markup

I am using drupal 7, and the bootstrap base theme to make a simple theme for a website I am working on. I am having issues with Drupal forcefully changing my html5 hierarchy and it's causing the site ...
0
votes
2answers
23 views

Custom drupal module does not appear on the extend page

I have created a custom module, yet it does not appear on the extend page. I have my_new_block.info.yml file in modules/custom/my_new_block/: name: My New Block description: Create own blocks. ...
0
votes
1answer
8 views

How to store your own key-value pairs in Redis using PhpRedis with D7 Redis module

We have the D7 Redis module installed, which is being used as the cache mechanism for D7 caching. That module uses PhpRedis as the underlying library. I would like to use that same Redis instance to ...
-4
votes
0answers
25 views

Detect Drupal theme

I am trying to detect the theme used by a certain site. www.y2ad.com Have already tried all the known methods like searching in the source code and jquery settings but it keeps showing the theme ...
2
votes
1answer
22 views

Is there a generic method to retrieve entity IDs?

I have seen this code suggesting how to return a list of entity IDs: $query = \Drupal::entityQuery('node'); $query->condition('type', $bundle); $entity_ids = $query->execute(); but this ...
1
vote
2answers
22 views

Prevent form regeneration when a callback function is called through ajax

Here is the code for the custom form with a field(field_B) that calls an function through ajax. The issue is that I want the function (MY_MODULE_XYZ_function()) to be executed only once, when the ...
1
vote
1answer
7 views

How do I add an extra “Add content”-link to the admin toolbar dropdown

I am trying to add some improvement to the workflow of the webmasters. Right now they have to click "Content", and then click once more on the "Add content" button. Since I am working with the "Admin ...
0
votes
0answers
10 views

Menu link title used as page title on first access

Simple problem: I defined some main menu links under /admin/structure/menu. Whenever i access the linked page, the page title shows the menu link title and not the title set in .module. Every access ...
0
votes
0answers
10 views

Rule on bulk webform submissions update

I have a custom view with webform submissions with views bulk operations field. My target is when I run a bulk operation to the submissions that I have selected then a rule must be triggered which ...
0
votes
1answer
15 views

Remove an item from $form_state in an ajax callback

I'm using this form api example: AjaxAddMore. I want to add a "remove button" for each indiviaul element, in order to remove an item but not the latest. Thouse are my changes: ... $form['...
0
votes
1answer
28 views

Drush: How do I change the Drupal root

My Drush commands doesn't work because my Drupal files are in another directory than the one set in Drush. Everything is set up to this path so I can't just change the folder name. Drush status [..]...
1
vote
0answers
15 views

Views Table with Aggregation, total values counted per option

I'm setting up a view of event registrations. Each registration will be allocated to 1 of 3 workshops at two different times in the day. I'm looking to output the total number of allocations per ...
-2
votes
0answers
9 views

comments links not rendered after ajax

I loaded comments via jquery ajax .load() and include it to div, comments loaded fine but links such as "reply, edit, delete" not loaded, anyone has an idea what's the problem?
0
votes
0answers
11 views

How to create product from image

I'm quite desperate right now and pretty newbie with Drupal. Anyhow, I wan't to develop my WordPress site and change this current system to Drupal. So now i'm able to set user specified galleries and ...
0
votes
1answer
22 views

How to chart data stored in a database table (dynamically) in Drupal 8?

I found these instructions for using the Charts module to display data from a database for Drupal 7: https://www.drupal.org/docs/8/modules/charts/charts-howtos/chart-some-data-stored-in-a-database-...
0
votes
1answer
19 views

Drush command to run cron won't work in Crontab

I am attempting to run two Drush commands from my crontab: # m h dom mon dow command */2 * * * * drush -r /path -l https://www.domain.com/ cron */2 * * * * drush -r /path -l https://www.domain.com/...
0
votes
1answer
37 views

Add class to {{ link }} twig attribute

I'm trying to apply a button class to the {{ link }} attribute in code below. <span{{attributes}}><a class="usa-button"{{ link }}</span> It displays correctly however the markup is ...
0
votes
1answer
26 views

Convert address to multi value during migration

I have a migration that imports data into my address field and it works perfect. field_address/locality: - plugin: get source: city field_address/postal_code: - plugin: ...
0
votes
2answers
29 views

Using MYTHEME_page_attachment_alter does not alter the favicon

Based on other similar stackexchange questions and documentation, I've implemented the following in the MYTHEME_page_attachment_alter function in MYTHEME.theme file to change the favicon based on the ...
0
votes
0answers
21 views

why filters are not working in view query alter?

why filters are not working in view query alter here is my code what i am doing wrong: if ($view->id() == 'answer_key_form' && $view- >getDisplay()->display['id'] == '...
0
votes
0answers
6 views

Drupal Commerce membership for family members

I'm attempting to setup Drupal 7 to sell memberships. The basics are all setup, and selling roles seems to be working fine. However, I'm getting stuck on additional memberships for the user's family. ...

15 30 50 per page