All Questions

0
votes
0answers
3 views

Force div wrapped to the next row by flex-wrap to be the same width as non-wrapped divs

I'm using flexbox to display a row of divs based on a view. As the width of the window narrows, I want the divs to shrink and then to wrap. I'm using the following (simplified) css: .container { ...
0
votes
0answers
6 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
4 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
12 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 ...
1
vote
0answers
13 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
14 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
15 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
23 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
6 views

Display articles based on group combinations of various group types

I took a look 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 ...
0
votes
0answers
21 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
10 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
13 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
26 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 ...
0
votes
0answers
17 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
18 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 ...
-3
votes
0answers
12 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
21 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
19 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
31 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
7 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 ...
-2
votes
0answers
13 views

Login credentials verify then logged out when using reverse proxy

I have Drupal 8 installed on Nginx server for a company. The company is using a reverse proxy. When I try to login, the credentials are verified and further page redirects to the site dashboard but ...
0
votes
0answers
9 views

Strange Behavior of Product Attributes

Using Drupal 8.6.15 with Php 7.2. This issue I have checked with a fresh drupal installation no other theme, only with Bartik. I have created a product attribute called Tiles Color. It suppose to ...
0
votes
0answers
17 views

Flag/Unflag Taxonomy term when updating Taxonomy field in user profile

I asked this question a few days ago: Send email to all users that are tagged with the same tag a node is when created I decided to go a different route and use the flag and rules module to associate ...
1
vote
1answer
21 views

Why is Twig not outputting this correctly?

I have function hook_theme_preprocess(array &$variables, $hook) { $variables['bla'] = ' AA <strong> BB </strong> CC '; } In my template I have: {{ bla }} The problem is, in ...
-4
votes
0answers
18 views

Creating a view matrix

Is it possible to create a view that would be a table like the the following and if so how? The data is events with a date and an entity reference to those attending.
0
votes
0answers
12 views

Rule that sends one email out at specific time each day with view content in it

I have 5 different views that show different metrics within blocks on the front of my website. I want a rule that can send this information to me by email each day at a certain time. How do I do this, ...
0
votes
1answer
14 views

How to set time limit only for one php file?

I have a script which walks through database table, makes some checks and based on them it makes notifications for website users. It works for a pretty long time. Currently in dev it takes a minute ...
0
votes
1answer
7 views

Get node form inside preprocess_views_view_fields()

how can I get the node id through the : preprocess_views_view_fields()
0
votes
1answer
22 views

Get the data of a given content type inside any Twig template

I have a content type named Flower with two fields : Name and Color. In my-theme/templates/page.html.twig I want to print the name and the color of each flower : <div id="page"> {% for ...
1
vote
1answer
7 views

How to change image style using hook_views_pre_render()

I am trying to adapt the following Drupal 7 code to Drupal 8, in order to set a different image style to every image in a view: // Assigns a random style name to each image function <MODULE_NAME&...
-2
votes
0answers
10 views

Create a AMP simple template hook [on hold]

I need to replace the usual tags from html to amp tags. (Drupal 7) For example: <html> to <html amp> <img> to <amp-img>, but I don't want to replace the complete template, ...
-2
votes
0answers
10 views

Error when creating Pie Chart in Charts Module

When I try to create a pie or donut chart it gives me this error message: "Cannot read property 'color' of null". All other chart types work. Any idea why the module returns this error or how to fix ...
0
votes
0answers
7 views

Add radio buttons to search block and have selection persist

I'm relatively new to Drupal and have been working with 7 and 8. I'm trying to modify the search block to add radio buttons - allowing users to select if they're searching the site or a catalog. ...
0
votes
0answers
22 views

How many different ways are there to create a “page”

By page I mean what's served by a given route/url. Trying to understand all the options so I know what I can combine (e.g. create a View, and use a render alter hook to add a form at the bottom). ...
0
votes
1answer
15 views

Print module download pdf file name change characters into HTML entities

I am using print module to generate pdf using dompdf library. I am facing issue with file name which node title have ampersand(&) sign, this character is converting into &amp;. For example- ...
-1
votes
0answers
10 views

Add A Field in Product Variation that lets user Choose From A List of Terms in A Specific Vocabulary

I want to add a field in product variation that lets customer choose from a list of terms in a specific vocabulary. For example, I have a vocabulary of "Pizza Recipes". The terms in the vocabulary ...
0
votes
1answer
12 views

Contextually filtering a view using values from a completely separate table?

I have a table "user_connections" id | uid1 | uid2 1 | 1 | 2 2 | 3 | 1 etc So, if the current user has uid = 1, then according to my table, he is "connected" to use 2 and 3. So I just want ...
1
vote
1answer
12 views

Display a view block with a list of content excluding the one currently displayed on the page

I sometimes use contextual filters to display fields matching the content ID from url In that case , i would like to display a list of content as a view block , except the one that is displayed It ...
0
votes
0answers
16 views

Creating a “tag blacklist” for users on a view

I'm looking to allow users to create a "blacklist" of certain tags on a site. My plan was to do this through adding a "Blacklisted Tags" field on the user entity, but I'm open to other solutions. If ...
3
votes
1answer
55 views

Alter webform messages found in WebformMessageManager

List item Is there a way to change the hardcoded webform messages from /webform/src/WebformMessageManager.php? for example, the one on line 284 case WebformMessageManagerInterface::...
-4
votes
0answers
19 views

Is there any module that supports RTMP (Real-Time Messaging Protocol) in Drupal 8? [on hold]

I need to implement RTMP services in my site. Does core media module support RTMP?
0
votes
0answers
18 views

Add an anchor to the redirect URL

I have a website with some news. I create a view that shows them and filter by category. When I use the filter, it reloads the page and goes at the top of the page. I want it doesn't move on the top ...
-6
votes
0answers
15 views

How to upload a large files 500-1500 MB and how to restrict the number and time of uploads?

How to upload a large files 500-1500 MB and how to restrict the number and time of uploads? Need to upload genomics FASTQ files. The backend will process them and return results to the email, provided ...
-2
votes
0answers
25 views

How to use custom theme for a single custom module [on hold]

I have a .module file for my custom module where i have written a hook. I want this custom module to use custom theme. I am using Drupal 8. function check_theme($existing, $type, $theme, $path) { ...
-2
votes
0answers
13 views

training comparsion between drupalize.me and build a module [on hold]

We are looking for online tutorials and found 2 options 1. Build a module 2. Drupalize.me could somebody please help which of these websites have good and structured content for learning .
-2
votes
2answers
21 views

How to create a rule and inject mysql code?

Can I create a rule on my drupal 7 website and that rule will: Whenever a user is logged in (only logged in users can see this content) and a certain content is clicked I want to write a mysql update ...
0
votes
1answer
10 views

How to use a token in the reference fields

1-I have a node with the name of the project. 2-this node has a project_name field that generates by these Tokens 3- I have a reference field that it load an entity type in the project create the ...
1
vote
0answers
13 views

IEF reference show parent field as title using Auto Entity Label

I am new to Drupal 8 want to add a field value to IEF reference title. for now, I am using Auto Entity Label version 2.x-dev to automatically generate a title for my Entities but when it comes to IEF ...
0
votes
0answers
2 views

Drupal Commerce KickStart - Add 'Quantity Widget' in Products Page

I want to add a quantity widget in the content of my product page. It wasnt present in my interface. I dont why the quantity widget shows up automatically in other content types. I viewed managed ...
1
vote
1answer
19 views

How to disable views pager programatically in certain cases

I have a paragraph which shows a view. The editor may set some options as argument filters, sort and show/hide pager. "Normal" fields are used to collect these options and ...

15 30 50 per page