All Questions

0
votes
0answers
3 views

How to add a file element in webform matrix component

Iam using webform matrix component module of drupal 7. but it doesnot provide support for webform file element. I have no knowledge about code. I need to know how I can use a file element with webform ...
0
votes
0answers
12 views

Attempting to load content into dialog (modal) via URL in Drupal 8

First, I apologize if this issues seems really bazar. Here is the issue. I have a page that contains both static and dynamic content. On the static portion, I've attached a link that looks like this: ...
0
votes
0answers
8 views

How do I make webform submissions available to Rules and loop

I have a webform application: five (5) questions/statements (Select Yes/No) for anonymous user usage. First result: all five (5) questions are answered "Yes" - the webform gets submitted, emails get ...
0
votes
1answer
12 views

Vanilla Javascript Firing Twice

I have some simple dom manipulation I want to make using javascript without jquery. I can't seem to figure out how to prevent this code from firing twice. Almost all examples I find use jQuery, but I ...
0
votes
0answers
5 views

Drupal 8 hook form id alter on a view exposed filter form

I am trying to add a disable attribute in a field using the hook_form_id_alter function. I created a module and built the function function disableIncentiveform_form_views_exposed_form_alter(&$...
0
votes
0answers
4 views

Contact module emails missing fields from form

This is regarding a Drupal 8 site, specifically Drupal 8.7.1 and the "Contact" module (with Contact Emails, Contact Storage enabled). The issue that I'm running into is some of the fields are not ...
0
votes
0answers
6 views

Twig Views Conditional - Today is in list of dates

Trying to check if variable 'today' is in a list of dates in Views Conditional Field. Both values print out nicely. Today (var php): 24/06/2019 List of dates (var field_dates): 24/06/2019, 25/06/...
0
votes
1answer
6 views

View to display content type and media type

Say I have 1 content type and 2 media types users can create Content type: Post Media Type: Picture Media type: Movie How can I create a view that pulls all 3? As far as I can see you can only create ...
0
votes
1answer
15 views

How to make a Drupal lock forget?

I understand how locks work, thanks to this post. Very straightforward: function mymodule_long_operation() { if (lock_acquire('mymodule_long_operation')) { // Do the long operation here. //...
0
votes
0answers
20 views

How to identify vulnerabilities?

I work for Global Pepsico IT and we are trying to add CMS vulnerability detection to our arsenal of vulnerability testing. So far, we haven't been able to find a way to do this detection for drupal ...
0
votes
0answers
14 views

ReflectionException: Class \MenuBlockKernelViewSubscriber does not exist

Doing a simple staging to production migration, copied all files, and the database,. Imported the database successfully but now when visiting homepage of the site I get the below error message/...
0
votes
1answer
21 views

How do I allow custom .php files to be accessable?

I have already looked at the How do I call legacy PHP files? answers and they didn't fix my problem. I have a custom php file in my Drupal site (Hosted on Acquia Cloud and I am working on a local ...
0
votes
0answers
9 views

Creating a Product Display Catalog via taxonomy Drupal 8

I need to create a catalog system for a product range from taxonomy in Drupal 8 My taxonomy is structured like this : - Product Category 1 -- Sub Cat 1 -- Product 1 -- Product 2 ...
0
votes
2answers
32 views

How to prevent programmatically created blocks from caching

I've been working with Drupal 7 for a couple of years but am new to Drupal 8, and am just getting into building custom modules. What I have built is a module that alters Drupal Commerce in order to ...
0
votes
1answer
30 views

Can drush 9 be used without composer?

I have a Drupal 7 site that was not built with composer. I have been using Drush 7 with it, but about a week ago, wd-show --tail stopped working, I'm not getting any output. I installed Drush 9, but ...
0
votes
0answers
7 views

Add a FULLTEXT index on specific column

I'm currently implementing a custom search engine in my custom module. In order to optimize my module, I would like to perform SQL queries by using the syntax MATCH....AGAINST in Entity queries. By ...
0
votes
1answer
19 views

After save empty cache of referenced node

I have two content types. For clearer question I will work with the content types event and location. From my location content type I can reference to and event. Then on the event page I show the ...
-3
votes
0answers
16 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?
-2
votes
1answer
21 views

Getting translated version of Menu

I'm trying to get translated variant of Manu, but I can't make it work. This is code of what I'm trying to do, but this is for content node. $entitytype_manager = \Drupal::service('entity_type....
0
votes
0answers
16 views

Launch media browser with file webform component

I have webforms that only authenticated users can fill out and submit. I'd like the file component to launch the Media Browser instead of just the plain find a file and upload it. I've spent many ...
0
votes
0answers
14 views

Method to export each view and all fields at once? [on hold]

In Drupal 7, I'm aware of the method for setting up a view and exporting to CSV using "Data Export." Is there a method to export all views (content) and all relevant fields at the same time (in ...
0
votes
1answer
39 views

Get difference between two dates programatically

In summary: On a Drupal 8 project, i am trying to programatically get the difference between two different times (current time - Node creation time) Use case: I have "nodeabc" already available on ...
-2
votes
1answer
16 views

Insert new content with Postman [on hold]

Ho can I create new content in drupal 8 through Postman? What json structure should I use?
0
votes
1answer
10 views

How do I programmatically close webform by node date field?

Background: I'm adding an events (custom content type) & registrations feature to an existing drupal 8 website. My experience in drupal is pretty minimal. But I can find my ways around code. ...
0
votes
0answers
13 views

Adjust block according to stage in multi-step form

I've build a multi-step form using the following tutorial. Which is quite nice! Can I also change a block based on the step you're in? I'm my case I have an activity registration form, build ...
-1
votes
0answers
22 views

What are all the possibilities for a view export?

I was given credentials to a live Drupal 7 site in order to export key data from views into a CSV. The site is live, it's owned and operated by an unresponsive third party, and I seem to have limited ...
0
votes
0answers
16 views

Appointment scheduling module configuration and documentation [on hold]

I have installed the module successfully, but in fact i have discovering issues to configure the usage, I have an ENTITY/FIELD DEFINITIONS error even after i have updated entities from drush it shows ...
-2
votes
0answers
21 views

Store form data into custom table [on hold]

I have a multistep web form. I want to store webform form submitted data into a custom table. Where I have to write the code and in which file in Drupal 8.
0
votes
1answer
20 views

“public” not supported or disabled in libcurl error

I'm learning how to create a custom JSON migration and referring to the migrate_json_example module, I see the following code in migrate_plus.migration.product.yml. urls: - 'public://...
0
votes
1answer
26 views

Is there a built-in “None of the above” checkbox option in webform? and how to create one?

I may be mistaken but I recall seeing such option in webform somewhere before and I don't seem to find it now (in case I'm right). I have several questions with big lists of checkboxes and if there'...
0
votes
1answer
21 views

Target individual items of a multi-value field in my page template

I created one field for an image and In the field setting, I made allowed number of values to 2 (please find the attached screenshot ) So my question is, how can I add both the images in a different ...
-4
votes
0answers
22 views

RNG Documentation for newbie [on hold]

I am trying to setup RNG on an existing Drupal 8 website which I have inherited. But being fairly new to drupal and the documentation page of RNG (https://dpi.id.au/rng-1-3/) being useless without the ...
-1
votes
1answer
27 views

How to send mail when node is published

I have a content type "Properties". By default, content type is set to "Not published" When users add a node of the content type, node is not published. Another role gets a notification and then ...
0
votes
0answers
31 views

Profile entity type missing form class

Getting following error, Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "profile" entity type did not specify a "employee" form class. in Drupal\Core\Entity\...
-1
votes
0answers
33 views

Is it possible to create a command without creating a module? [on hold]

I want to create a drupal console command to generate boilerplates for behat tests. But I don't want place it in any module as it doesn't seems neccesary. When I try to create a command I always have ...
-3
votes
0answers
27 views

How do I display fields in random order in a view? [on hold]

I have a view of multiple-choice questions. I want to display the correct option field in random order. How can I achieve this?
0
votes
1answer
10 views

Rest Image upload always showing blank image

I am trying to post an image to the d8 server and it ends up always showing a blank image, but its uploaded, here is the sample code : this.httpClient.post('http://www.testdomain.com/file/upload/node/...
0
votes
0answers
17 views

Geolocation and view proximity filter - Can you default proximity to zero?

I'm trying to see if there is a way to default the views proximity filter to input zero for proximity values when the filter is empty, so we can sort the data using a different field by default. What ...
-2
votes
0answers
10 views

Encoding issue SMS Framework module with Nexmo SMS

i am using this SMS Framework module with Nexmo SMS gateway but i was facing an issue with encoding messages , i have to send messages to Sweden also MENA countries . is there any fix to handle this ...
0
votes
1answer
15 views

Filter a view with contextual authored date

I have a Drupal 8 view where I want to sort nodes by authored year using contextual filters. So www.mysite.com/2017 will list all nodes from 2017. I set up the filter using 'Content: Created Year' ...
0
votes
1answer
15 views

Token for first media Image in the body

I need to display an image url in a metatag item. The problem is on one of my node types, the editors only upload an image as a media entity inside the body. What is the best way to handle this?
-4
votes
0answers
15 views

How can I export views data in HTML? [on hold]

I want to export my views data in HTML format. I mean I just want the text and HTML tags. This is the screenshot of my view: I don't want all the data about rendered fields I just need text and HTML ...
0
votes
1answer
47 views

How can I allow remote access to specific folders in my site? [duplicate]

I have a drupal 8 site that has a folder (/learning/sales) in it that is custom html/php/etc. In there I make an ajax call from one .html file to a .php file in another folder (from /learning/sales to ...
0
votes
1answer
32 views

Templates aren't called in custom module?

I am trying to add templates for the paragraph in the custom module. It invokes only the paragraph.html.twig. In theme suggestion, paragraph--example-ch-hero-panel.html.twig is given. I am using the ...
0
votes
0answers
30 views

Why are image styles only being generated during a cron run?

I've got a weird thing going where image styles are not being generated after uploading images (as media entities) Image styles are generated during a cron run. Is there a setting for this that I ...
-2
votes
0answers
18 views

Make a catalog with view and taxonomy [on hold]

How can I build a catalog type view with taxonomy terms to access to my products?
0
votes
0answers
27 views

Get image style URI in JavaScript [on hold]

I am creating some custom Gutenberg blocks and that includes upload and selection of images from the file and media system. It would be best if I could load the correct image style in these blocks. ...
0
votes
1answer
20 views

Show Content Type Fields from a entity reference

I have a content type which i have linked to another content type. For e.g. Companies (Content Type) Employees (Content Type) When creating a new employee i have to say which company it works for so ...
0
votes
0answers
10 views

maintenance-page.tpl.php is replaced per page--node.tpl.php

My template maintenance-page.tpl.php or the default maintenance-page.tpl.php is replaced per the page--node.tpl.php of my theme. I have check in my setting.php $conf['maintenance_theme'] = 'Mytheme';...
0
votes
0answers
17 views

How to add orderby field values into view_query_alter?

I have field_collection_item view, where I am passing multiple arguments using contextual filter. It is giving me result sorted by item_id, i haven't added any sort criteria but I wanted result as per ...

15 30 50 per page