All Questions

0
votes
0answers
41 views

Entity with custom field, how to get these field in template?

I have created a Slider entity with the drupal console, with the website interface I create some fields to this entity (field_image, field_title, field_subtitle), but I can't manage to get these ...
-3
votes
0answers
10 views

Can a Brightcove video player be modified by plugins so the 1-line link (not embed code) will open a modal window?

The goal is for a link to a Brightcove video player to open in a "lightbox" style modal window. Since Brightcove video players can accept both .js and .css plugins in the form of URLs to privately ...
0
votes
2answers
37 views

Date/Time not saved correctly?

I made a date range field, and after entering some values and saving on first glance it looks ok, if i entered 20:00:00h it will display the same, but in the DB when i look at the stored values it's -...
0
votes
1answer
31 views

Password reset link gives access denied

Password reset link is not working in drupal 8.6. The email with the one-time login link is sent just fine, but when the user clicks on the Login button, they get "You are not authorized to access ...
-1
votes
0answers
11 views

How to filter the select list of an term entity reference field through another field with its parent term

I have created groups, where the visibility of menu items can be configured in the group as a term entity reference field. The terms can have multiple parent terms. I want user of the form to be ...
0
votes
0answers
26 views

How can I add custom Ajax validation to a Webform field using advanced custom properties?

The setup: I have a Drupal 8 form created manually, and I would like to recreate it using Webform module. So far, I have managed to recreate everything (required fields and submission handler), but ...
0
votes
0answers
36 views

How to redirect to the previous page after submission of a form in a block

I have a view of nodes of type task. I created a block with an inline task create form (using form block module) The block is next to the view on the same page. Question: After creating a new task by ...
1
vote
0answers
20 views

Unique Multi-values field

Is there a way to to enforce uniqueness on a multi-value field of a content type? I have been searching for a module that does that and I couldn't find it. The Unique Field module does not support ...
0
votes
1answer
32 views

Failed User Login

I have developed a website in Drupal 8 and have deployed it to production. I have created 7-8 other accounts for my content management team and have granted them limited privileges for creating, ...
0
votes
1answer
17 views

drush handling array variable values

I am using Drupal 7 and drush 7.4.0. How do I handle array variables with drush? For example, I have a variable, social_sharing, for which drush vget social_sharing Produces: facebook: facebook ...
2
votes
2answers
51 views

Is it possible autoload PHP classes in themes?

Does the namespace, class name and naming convention work like it does for modules? These links don't seem to mention it: https://www.drupal.org/docs/develop/standards/psr-4-namespaces-and-...
1
vote
0answers
12 views

How do I configure the migrate API to assign all parent and child taxonomy terms to an entity during import?

I'm importing media files which have a taxonomy in the media content type definition. Here is the section of my Yaml file that deals with the taxonomy. field_nih_asset_taxonomy_auto: - ...
1
vote
1answer
33 views

Test class could not be found, namespace/autodiscovery issue?

I've got the following tests written for /core/modules/migrate_drupal_ui/src/Controller/MigrateController.php with a new test file /core/modules/migrate_drupal_ui/tests/src/Functional/...
1
vote
0answers
25 views

Render array #theme vs #type

what is the different between the render array #theme and #type properties , because they both do the same thing with extra steps in the #type property : #theme: invoke HOOK_theme implementation in ...
0
votes
0answers
14 views

How to “always relate” nodes to group

In OG in D7, there was a field that was set to say this node belongs to group x. With the Group module in D8, if a user creates a node through the normal /node/add/page link, it will not be linked ...
0
votes
0answers
13 views

Need to edit links in hundreds of nodes - can it be done via a module?

I have a number of nodes of a content type in which the body contains links using bit.ly. These links no longer resolve due to domain name changes to the original link that was 'bitlyed'. I've been ...
0
votes
1answer
35 views

session_unset logs out user when viewing the page

We have an application that we developed in Drupal 7 and I am tasked with migrating this form to Drupal 8. I have a question about the session behavior which seems to have changed from Drupal 7 to 8. ...
0
votes
0answers
30 views

window.location opens page inside the popup (colorbox) [closed]

I'm using the Splashify module, with the following settings: Splash Mode: Display entered text / HTML full screen This is the HTML code: <!-- Modify this according to your requirement --> <...
0
votes
0answers
13 views

Slideshow: Cgi Generic Command execution (time-based)

One of our customers received a notice from his PCI scan vendor that the requests in the MD_Slider module used by Views are not sanitized. The latest version is two years old and it could be correct. ...
1
vote
1answer
34 views

Some basic questions about creating a webform handler from the module webform_example_handler

I'm "cutting my teeth" in Drupal 8 on the Webform module so these are going to be rather naive questions. I need to programmatically fill a URL field in the form with an XML file that I generate from ...
0
votes
0answers
13 views

Drupal 7 - Identify Hooks Fired when in a specific Page [closed]

Its been so long since I last used Drupal and I forgot the name of the module that displays all the hooks or permissions fired every time a page is rendered. I have search the web, but cannot think of ...
0
votes
0answers
31 views

How to make hook_theme work

I have a little module that I want to use to show a slideshow in a block, the module was created with the drupal console. I added this code for the block : /** * Slider homepage * * @Block( * ...
0
votes
0answers
18 views

How to modify term reference

I have added term reference field on one content type i want to alter that term reference list. I have search in drupal.org site but not information is find. Can any one help me how to alter the ...
0
votes
0answers
17 views

Execute some “code” when an external link is clicked

I'm very new to Drupal 8 and would really appreciate any advice about the best way to tackle my problem. I am creating an online video catalog that indexes videos from external vendors. All the videos ...
-3
votes
0answers
24 views

Missing alt and title HTML image properties in Acquia dam

I have created a content type with an media field [ media type - Acquia DAM Asset ], I noticed, this Acquia DAM does not have the provision to enter image ALT and title by default, Can you please ...
0
votes
0answers
23 views

Use autocomplete with an infinite cardinality

I am trying to attach a list of users to a new entity I am creating. I want to enable autocomplete on those fields but I can't get it to work. For the moment, my field looks like this : array( ...
0
votes
0answers
26 views

Drupal Migrate over SSH

I'm running a D8 site on a local WAMP server, and am trying to pull down my D7 database from Aquia using Drupal 8's migrate module in order to begin work on upgrading my site from D7 to D8. I'm ...
0
votes
1answer
26 views

How to query paragraphs content?

Does any one have an example how I can query the paragraph entity type of a given node ? Let's say I have a node that contains a field 'field_paragraph' that is linked to the paragraph module . How ...
0
votes
0answers
29 views

Drupal commerce 2 add to cart form not working for anonymous user

When anonymous users add a product to the cart it’s not working, but it works for authenticated users. Following code is creating the form function mycustommodule_preprocess_commerce_product(...
0
votes
0answers
10 views

How to compile dynamically sass files from directory with grunt sass? [closed]

I am trying to compile all .scss files in sass to css and not specify the exact names. I know how to do it from the command line (node_modules/node-sass/bin/node-sass sass --o cssc), but I have to use ...
0
votes
0answers
17 views

Why does a views exposed filter reset an existing contextual filter to 'all'?

I have a view with a contextual filter based on the URL mydomain.com/content/%nodetype And I have an exposed filter block which filters this view by taxonomy term. However, when I am at the page ...
0
votes
0answers
11 views

Desable showing language en in url for specifique content type

i have website multilingue version english and french i find a module who can add EN And FR to link here This module work for me but , but the problem this module enable languages in all pages but i ...
0
votes
0answers
14 views

Vertical Tabs: Wrapper problem

I have a form with several fieldsets and i am thinking about adding a vertical tabs form field to turn the current fieldset to vertical tabs but i use a lot of AJAX in the fieldsets. The AJAX elements ...
0
votes
0answers
36 views

Create route with default param

I've a custom route and form, form input field(s) slightly changes based on arguments passed to it. There are only 2 possible arguments can be passed in URL. I'm using current latest version of Drupal ...
0
votes
0answers
15 views

Unexplained (buggy?) behavior of drupal_process_states with checkboxes in Drupal 7

I have 3 checkboxes named A, B, C. My desired behavior is as follows: if, and only if, both A and B are unchecked, then C becomes checked. Inversely, if either A or B are checked, C becomes unchecked. ...
0
votes
0answers
17 views

#theme_wrappers doesn't wrap the #theme template

I want to wrap the #theme template using a #theme_wrapper template : //Call the registred theme function _drupal7_test_fb_config_form(){ $theme = [ '#theme' => 'fb_users', '#...
0
votes
0answers
22 views

Add/assign same Five Star rating to author while adding to Article using Rules

I Need to achieve this functionality only with Rules or combinations with any other module(s). Structure FiveStar field is attached to the node type Article and another with the User profile. ...
0
votes
1answer
22 views

Contextual filter in URL via Twig [duplicate]

Does somebody of you know how to build a link as described in #9 in https://www.drupal.org/project/views_contextual_filter_query/issues/2686467#comment-10983075 I tried it this way <a href="node/{...
1
vote
1answer
20 views

Is it necessary to export features with a version number?

By default, modules generated with features are created with a version string in the *.info file. I think the convention is to increase this version number when the feature changes. In a distributed ...
0
votes
0answers
14 views

Unable to update registration unless duplicates are allowed

Whenever I try to edit and save an existing registration, unless in the event I keep in the "Allow duplicate registrants" I get an error that that user is already registered (event though I am not ...
0
votes
1answer
29 views

Get taxonomy term ID from standard URL and then pass it to a View as a contextual filter

is a simple question, I whant get the term ID (tid) from standard drupal taxonomy url taxonomy/term/167 ou 167 is my tid and use as argument on views. I found this code to get the tid: $term_path=...
0
votes
2answers
21 views

Should I share the same image style as much as possible or create different styles for each size?

I have an image field displayed in slightly different sizes. Let's say : 100px X 100px as a view field format 120px X 120px as another view field format 150px X 150px as a node view format My ...
0
votes
0answers
19 views

Adding local task tabs to node display for specific content type

I'm creating a custom module (it's called cil_meet) which adds two content types (organisation and room). On an organisation node I want a local task tab (next to 'view' and 'edit') of 'add room', ...
0
votes
0answers
29 views

Problem updating drupal core

I'm trying to upgrade an older version 8.5 of drupal core to 8.6.14. I get the following message when I refresh or try to do the update.php on my site: Warning: Class Drupal\Core\Extension\...
1
vote
1answer
61 views

Change title of certain paragraphs in a form

Please see the attached pictures. In one of my projects I have a taxonomy, which users can edit and add data. It has multiple tabs (see picture one) and each tab has multiple fields in which ...
-1
votes
0answers
25 views

Get filtered tweets that have images

on D7.60 I am looking for the way to get a feed from twitter filtering by time range keyword tweet has an image in it (only tweets with images). Later I would like to be able to save the feed as ...
0
votes
0answers
29 views

how use httpclient for a GET request and this request have a redirect?

I try to use a API for a logout process, in the documentation of the api give a endpoint for it "https://example.com/logout", this is a GET request, i need to send a token, state , and url_post_logout ...
0
votes
1answer
17 views

Display multi-value entity reference field in node edit form as draggable?

Is there a way to display a multi-value entity reference field as a draggable widget in a node edit form? I'm looking for the exact same behavior that a multi-value image field has by default. I would ...
-1
votes
0answers
10 views

Protected Downloads inside a view

I'm looking for some insight. Is it possible to have a view containing files that are protected (you'd need to submit a form to be allowed to download). I have a list of 500 or so documents and ...
0
votes
0answers
8 views

How do I create a link for unapproved comments of an article?

In addition to the default links (Delete, Edit, Reply, Approve), how do I create a link such as "Email" for unapproved comments of an article(ex: /comment/12#commnet-12)?

15 30 50 per page