Acquia Status

Acquia has detected a temporary interruption in Acquia Cloud interface services

7 hours 59 minutes ago

Apr 25, 15:52 UTC
Resolved - The underlying cause of this service interruption has been addressed. All services are currently operational. However, please note that the aggregated data for the affected time window has been lost and cannot be retrieved or backfilled.

Apr 25, 11:23 UTC
Monitoring - A fix for the cause of the interruption of service impacting some Acquia Cloud Stack Metrics has been deployed. We are currently monitoring the situation.

Apr 24, 19:07 UTC
Identified - The cause of the interruption of service impacting some Acquia Cloud Stack Metrics has been identified. We are currently working towards the fix and will provide additional information as it becomes available.

Apr 24, 13:28 UTC
Investigating - We are currently investigating an interruption in Acquia Cloud interface services impacting Acquia Cloud Stack Metrics to not report any Varnish data. We will provide additional information as it becomes available.

Drupal StackExchange

How to fallback to default language when listing nodes in a view if no translation is available

13 hours 50 minutes ago

I have a list of projects, mostly in english, but some are translated in French.

When i visit the French version of my website, how can I list all projects that are translated in French and if no translation is available for a specific node, display the english counterpart.

Is that something possible in the view UI ? Or I'm guessing with a hook_query_alter.

Thanks,

Ebpo

Replacement pattern for one value of a multivalue field in views

14 hours 48 minutes ago

Rewriting the results of a views field, I wonder if there is a way to use a replacement pattern for the first, second and third value of a multivalue field.

In my case, as example:

I have tried to use this rewritten tags field: [field_tagging:0] [field_tagging:1] [field_tagging:2]

However, this is not rewritten/recognized as replacement patterns.

The result I need, is that in the views field has three tag links, which have a rewritten path (in this case it also uses !1 for the contextual value in the URL)

Yuri

How to link different contents together and display the linked content on the same page?

15 hours 47 minutes ago

I am fairly new to Drupal and would need some help.

on my site I have to show a few images (A - B - C - D ) created by a content type X.

Each of these images will link to a different content Type Y ( 1 - 2 - 3 - 4 ).

So when I click on A , the content 1 should show below it. Same for content B -2 , C -3, D-4.

I am not sure how to achieve such a result and what are the tools to use.

Thank you for your help.

newbie

Best no-charge Drupal alternatives to Acquia's Site Studio [closed]

16 hours 7 minutes ago

This is a general one. I would like to know better the spectrum of choices for Acquia Site Studio alternative in 2024.

The most important features from my perspective are:

  • ability to create many reusable visual web components relatively quickly (doesn't have to be low-code though)
  • possibility to configure how the components look just via UI
  • easy for content editing from UI
  • working well with standard Drupal's architecture (no not-flexible black-box thing inside my CMS)
  • works well with Drupal 9+

Thanks for any insights that you may have!

Adamssef

Checkboxes not rendering

16 hours 49 minutes ago

All the other form elements render properly. Radios and Checkboxes do not. The title and descriptions show up, but not the boxes or radios.

$options7 = array(); foreach ($resqry1 as $option) { $options7[$option->id] = $option->id; } $form = array(); $form['lis'] = array( '#type' => 'checkboxes', '#options' => $options7, ); return $form;

Please help me out. Thanks

Jack15

Image style is not rendering

17 hours 51 minutes ago

My field_image is not rendering on user-profile.tpl. I have the following code (two different ways to render for testing):

$image = field_get_items('user', $user, 'field_image'); $output = field_view_value('user', $user, 'field_image', $image[0], array( 'type' => 'image', 'settings' => array( 'image_style' => 'header_image_160x160', ), )); print render($output);

This produces the following in html:

<img src="https://coinme.io/sites/default/files/styles/header_image_160x160/public?itok=f31sbmSd" width="160" height="160" alt="">

I get the dead image logo. It is missing the final part of the file structure. And this is how I normally render:

$to_render = field_view_field('user', $user, 'field_image', array('settings' => array('image_style' => 'header_image_160x160'))); print render($to_render);

This is showing the default image, even though the image does exist:

https://coinme.io/sites/default/files/styles/header_image_160x160/public/images/profile/profile-large.png?itok=rb-2qFOw

I have the same field in a content type which is rendering correctly (only difference being the $user user -> $node node.

<?php $to_render = field_view_field('node', $node, 'field_image', array('settings' => array('image_style' => 'header_image_160x160'))); print render($to_render);?>

So it appears that when using user-profile specifically is the issue. I have also tried adding a new field type and same effect. Any suggestions?

Thanks, Paul.

Paul

User authentication handled by a web service

19 hours 44 minutes ago

I seek your help and advice. By default, Drupal manages user authentification using the user module that resides in the "core/modules" and through the main Drupal Database. In my case, the user is authenticated through an external webservice, the process is as follow: 1- The user enters his credentials and click submit 2- the credentials are then sent to the webservice 3- the webservice checks the data(credentials) to the one he has in his database 4- upon validation the webservice sends a token (JWT) otherwise it sends 401 Unauthorized

PS: the admin will have normal login (through Drupal Database)

The question is how can I proceed to elaborate this process of authentification?

  • Is there some existing modules that could help with this?
  • should I override the existing user module or create a new module?

Any info will be of great help.

Abouhassane Abdelhamid

Message template with mail key

20 hours 39 minutes ago

In template_preprocess_mimemail_message() I checked that mail key is mimemail_message__subscriptions_mail__node-type-post, but none of these templates is using in the email:

mimemail_message__subscriptions_mail__node-type-post.tpl.php mimemail_message--subscriptions_mail--node-type-post.tpl.php mimemail-message--subscriptions-mail--node-type-post.tpl.php

What I'm doing wrong?

MelNik