πŸ‡¦πŸ‡·Argentina @OPtii

Account created on 2 February 2023, over 1 year ago
#

Recent comments

πŸ‡¦πŸ‡·Argentina OPtii

I fixed it using hook_mail_alter() and set text/html in Content-Type:
"nl2br" is also used to avoid losing the
when going from plain text to html
function my_custom_module_mail_alter(&$message) {
$message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed; delsp=yes';
$message['body'][0] = nl2br($message['body'][0]);
}

πŸ‡¦πŸ‡·Argentina OPtii

Hi @leopaccanaro. Yes, I have read that information about the module. I will tell you about my situation, I am currently using the Drupal "PWA" (Progressive Web App) module, as a result of this module what I need is to send notifications to those devices that have the web installed as an APP.
I know there is a module "Advanced Progressive Web App" that sends notifications but only with the "minishlink/web-push" library version 4, which I can't install because it requires PHP 7 or lower and I'm currently working with PHP 8
So I was trying to do it with this firebase module.

πŸ‡¦πŸ‡·Argentina OPtii

I found my mistake, inside the footer of the view I inserted another view. Both views had the same machine name "page_1" so when rendering the footer view it stepped on the Replacement Tokens of my current view.
When I changed the machine name to my current view it worked "{{ field_image_de_tapa }}" as it should.

πŸ‡¦πŸ‡·Argentina OPtii

Hello, applying the patch, it still doesn't work for drupal 10.0.8.
The text field of the "caption field" when adding an image does not appear.
In drupal 9.5.8 the module works perfectly but I need to use it in drupal 10.0.8. Any solution? Thx

πŸ‡¦πŸ‡·Argentina OPtii

Solution

1. Go to modules/contrib/social_post_facebook/src/Plugin/RulesAction/Post.php
2. In this file modify line 23: "context" to "context_definitions"

Production build 0.69.0 2024