All Questions

1
vote
0answers
7 views

Using parameters in routes

I am using the pathauto module to create url aliases for all user account url, so: /user/[uid] will become /u/[user:account-name]-[user:uid] which means: /user/36 will become /u/john-smith-36 In ...
0
votes
0answers
6 views

How can I get field definition values in a hook_views_query_alter?

This is a little related to my earlier question, I'm using a hook_views_query_alter to only show results for the latest (last) value in a list field, and then also in that set only show the results ...
0
votes
1answer
6 views

entity_hierarchy.nested set storage factory has non existent service

I am trying to start a previously migrated site and I get this error. Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "entity_hierarchy....
0
votes
0answers
11 views

Migrate into Multi-value Checkbox from CSV

I'm running into a bit of an issue using Migrate API. I thought I had a fairly simple use-case, but am unable to actually find an example for this particular instance. I have a CSV I'm importing, ...
0
votes
0answers
11 views

Submenu tree problem

I have a website build with Drupal 7 CMS and I am using the Submenu tree module. Everything was working fine for months, but few weeks ago I have received a feedback from the client that all the links ...
0
votes
0answers
8 views

Composer.json deletes dir even with preserve path

I am running composer on Drupal 7 and I am just trying to update my site; however when I run composer update, the composer deletes all the preserve paths I had specified. My structure is as follows: ...
0
votes
0answers
13 views

How can I limit views results based on the value of two fields?

I may have to do this programmatically, but I was wondering if there's another way in the UI. Basically, I have a list of articles with Volume and Issue fields. I want the view to only show articles ...
-2
votes
0answers
11 views

Cybersouce Secure Acceptance Web/Mobile module

Is a Drupal 8 version of the Commerce module "Cybersouce Secure Acceptance Web/Mobile," or an equivalent replacement, available or in development?
-1
votes
0answers
13 views

How can I configure a webform in a modal to be responsive?

I am using the bootstrap theme on my project, and I create a webform module, and I am displaying it using the Drupal Modal option enabling the Link to form feature on a content type. The problem is ...
0
votes
1answer
26 views

I broke a view and i'm not sure how to fix it

I broke a view by adding the "flagged" relationship to the view, then filtering by the flag_id, then deciding against it and removing the relationship. The filter for flag_id was not removed when the ...
0
votes
0answers
20 views

How to create a copy of ResultRow without reference?

I need to have different values in each row based on the same row, so I create $this_row from $row. But field_x contains the same value in rendered view. I guess the $row reference is the same and I ...
0
votes
1answer
21 views

How do you populate existing entities with the default value for a newly added field?

Let's say I have a content type, Article, with several fields. I already have hundreds of Article nodes created, but now I want to add a new field. After I set a default value for this field, how can ...
0
votes
0answers
12 views

Remove Filter When Exposed Filter is Selected

Currently, I'm working on an events view in Drupal 8 which needs to only show events that are on or after the current date (now() filter). This view also has an exposed date range filter that allows ...
-3
votes
1answer
28 views

How do I export content types, fields, and views associated with the content types? [on hold]

How do I export content types, fields, and views associated with the content types in Drupal 8? I also need to put all the configurations as a custom module.
0
votes
0answers
7 views

View order error drupal 8 [on hold]

While I click on particular order to VIEW details it gives me error of Error: Call to a member function label() on null in commerce_payment_preprocess_commerce_order() (line 127 of /modules/contrib/...
-3
votes
0answers
19 views

i want to create user find search page with views [on hold]

I want to build a views search page that search page will facilitate to site members to search other site members with their first name, last name, and email. expect output result if a member open ...
0
votes
1answer
15 views

Share URL of clicked node instead of current page

I'am using the Social media share module I have created a filed in my content type (field of type social_share) I have added that field to the view fields I have render it inside each node the ...
0
votes
1answer
18 views

Print image URL with image style

I would like to print an image URL with an image-style. This doesn't work, since I don't have a ".value"-value for the image: How to find image style URL from within twig template? Is there anything ...
0
votes
0answers
25 views

Hooks vs Events vs Extension - when to use what?

Im writing a module. One thing it will do is alter the menu edit form. I've been looking at core code and examples on the internet and can't really figure out when to extend Drupals core classes, use ...
-4
votes
0answers
16 views

i want to display total number of posts of every organic group and their total members. using d7 [on hold]

i want to display total number of posts of every organic group and their total members. using d7 i am trying to achieve total number of post of every organic group and their total members next ...
0
votes
0answers
17 views

Non secure links redirect to homepage rather than serving over HTTPS

I have a site that is forcing HTTPS so that any links get redirected to being loaded securely if they aren't already so. For the most part, this works but there are a few links that work fine when ...
0
votes
0answers
23 views

Update Symfony before Drupal core?

Right now there are some security updates for Symfony: curl -sS https://get.symfony.com/cli/installer | bash echo y | ~/.symfony/bin/symfony self:update ~/.symfony/bin/symfony security:check Symfony ...
-2
votes
0answers
17 views

How to get netflix like login functionality restrict user login based on session?

Allow administrators to limit the number of simultaneous sessions per user role. Assuming the session limit is 1, if a user is logged in to a Drupal site from their work computer and they log in from ...
1
vote
0answers
11 views

Views alter query, add condition doesn't work

I have a taxonomy with 2 level of depth and I have a view that get some documents. In this view I can filter by the type of document (get from the taxonomy) but only by the first level. The problem ...
-2
votes
0answers
10 views

Content is displaying below the script

In my content, first I'm adding some text, then I'm adding an external JavaScript tag. Example text (in full HTML): I'm working in Drupal7. and then the script tag: <script src="https://XXX" ...
0
votes
0answers
12 views

change Comments per page

I need to change the comments per page value, I set it 50 from the field setting but in some pages, I need showing only 10 comments, not 50. I tried to use this method setSettings([ 'per_page' =...
-3
votes
0answers
18 views

How to use dependency injection for \Drupal::service('page_cache_kill_switch')->trigger();?

How to use dependency injection for \Drupal::service('page_cache_kill_switch')->trigger();
0
votes
0answers
9 views

Error: Event registration is not enabled

So I have a basic node with a button allowing users to register, it is not a custom module, but when I click the 'register to the event' button in debug mode it shows that message on the log and doesn'...
0
votes
1answer
17 views

May I know the difference between field_data_body and field_revision_body?

As I am a beginner of this Drupal 7 I have some doubts regarding these database tables.I need a short notes regarding all these database tables.The doubt which I had found is that when I add the ...
-2
votes
1answer
19 views

Update jQuery version on drupal 7.59

I'm newbie in drupal. Currently, my site is running on drupal 7.59 and jQuery 1.5. Is it possible to update jQuery version to 3.4.0?
2
votes
1answer
18 views

How to replace drush_download_file in Drush 9

drush_download_file() existed in includes/drush.inc for Drush 8 and below, but this has been removed in Drush 9 as far as I can tell. Is there a standard way that file downloads should be executed in ...
0
votes
0answers
24 views

Have alias URL remain alias instead of resolving to target URL

I have a Drupal site with an Event content type. This content type has an Event Categories taxonomy field on it, which, as you can guess, categorizes events. When you navigate to the URL of a ...
0
votes
0answers
10 views

How to include book traversal links on a custom twig template page

I use the Book module to create books with chapters. When I use the default twig template node.html.twig to display a book chapter, a section titled "Book traversal links" is included, with links to ...
1
vote
1answer
20 views

Which hook to use for updates of all nodes of a particular type

This question is about Drupal 7. For a particular node type, let's take three examples: a) book b) article c) customcontenttype I would like to be able to capture the moment of an update of an ...
0
votes
2answers
26 views

How to render all paragraphs of a node as slider instead among themselves?

Initial situation I have a node type with a paragraph field. Each paragraph of the paragraph field is rendered among themselves. What I want to achieve The paragraph field inside the node should ...
0
votes
0answers
26 views

Return an Ajax Response from EventSubscriber?

I am trying to return an ajax response when a user logs in while the page is loading post-login. /#1 approach was attaching an ajax callback to the user login form submit with form_alter. However ...
0
votes
1answer
19 views

amp-img tag, replace to simple img

I need to change this tag <img> to <amp-img>, I've been researching about this and I have this function for change the img tag. function amptheme_image($variables) { // Remove RDF ...
0
votes
1answer
37 views

How to setCookie in samlredirect function

I am trying to logout users when they hit a particular path in the website and log them back in to renew the session(because it has its own login session and its expiry is not in sync with the actual ...
1
vote
1answer
13 views

How to display articles based on group combinations of various group types?

I looked at the group module. Defining permissions based on user and entity memberships would suit my needs very well, but sometimes I would need a combination of various group memberships to define ...
0
votes
0answers
30 views

A field only visible when a node is being edited

I have a custom field which should be only visible when a node (an article) is being edited (and not shown when a new content is created). I'd like to avoid installing a module for this, so my ...
0
votes
0answers
14 views

How to order datetime items chronologicaly on save

Is there a module or a simple way to order a multipe datetime/datetime_range field chronologicaly on every save? I want to be sure that the last item is always the last one.
0
votes
1answer
16 views

How can I use a content type field on the body of the e-mail message template on the Webform module?

For usability matters, I would like to let the editor create his own confirmation message on my Event content type. So I create a field for that. I also have another field to select which webform is ...
0
votes
2answers
28 views

Change html tag in template file tpl

I have this template file for a view: views-view--ir-news--page.tpl.php But right now, I need to use Google AMP only for this view (Machine name: ir_news) What I want to know is if something like ...
-1
votes
0answers
18 views

Change git repository in Drupal install [on hold]

I have started to work on a new project and was provided with bitbucket git repository, when I looked on staging server I noticed that the old developer was working on a gitlab repo. I have spoken to ...
0
votes
0answers
20 views

Validation after all other validations were successful

I have a form with several form fields and two validation handlers. function my_module_my_form_validate_integer($element, &$form_state) { // validation stuff } function ...
-2
votes
0answers
13 views

How can we alter drupal primary links?

I want to add and remove some links at runtime. How can I do this in Drupal 6? I want to display them on a conditional basis.
1
vote
1answer
23 views

How to add a condition for an array on an entity query for a config entity?

I want to execute an entity query on a config entity type. However when I want to add an IN condition on a property which is an array I am getting an error. For example, I want to retrieve all user ...
0
votes
1answer
23 views

How do I convert "entity:node/9 in a link?

I need to get some values from a custom block I've created, and I am using the following code. // Get the block $block = \Drupal\block\Entity\Block::load('hightlight'); // Get the block content $...
2
votes
1answer
43 views

Is it compatible with PHP 7.2?

We have a Drupal 7 site running Drupal Commerce. Our host has now informed us that they will be updating PHP from 5.6.3 to PHP 7.2. Is Drupal Commerce for Drupal 7 compatible with PHP 7.2? I have ...
0
votes
0answers
9 views

Views dependent filter not working correctly

I am using views dependent filter to apply multiple dependent filters in my view. The view is a simple listing page. I have multiple categories and set of different filters that will be grouped and ...

15 30 50 per page