I have same problem
Fields pending deletion [nothing]
with date_recur version 3.4.
Upgrade to 3.6.1 fix this. Problem gone for me.
Thanx megachriz. Right now a i found XML source so i don need custom module.
I decided with ChatGPT how to fix problem with confirmation message. But confirmation page steel doesn't work ☹️.
Need to cahnge PasswordlessLoginForm.php to
<?php
namespace Drupal\passwordless\Form;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Drupal\user\Form\UserPasswordForm;
/**
* Provides a user password reset form for passwordless login.
*/
class PasswordlessLoginForm extends UserPasswordForm {
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'passwordless_login';
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this->config('passwordless.settings');
$form = parent::buildForm($form, $form_state);
// Pretend this is the core login form.
$form['#attributes']['class'][] = 'user-login-form';
$form['name']['#type'] = 'email';
$form['name']['#title'] = $this->t('Email address');
$form['mail']['#markup'] = $this->t('A login link will be sent to your registered email address.');
$form['actions']['submit']['#value'] = $this->t('Get a login link', [], ['context' => 'passwordless_login_form']);
if (!empty($config->get('passwordless_show_help'))) {
$form['passwordless_help_link'] = [
'#title' => $config->get('passwordless_help_link_text'),
'#type' => 'link',
'#url' => Url::fromRoute('passwordless.help'),
'#attributes' => [
'id' => 'passwordless-help-link',
'rel' => 'nofollow',
],
'#weight' => 1000,
];
if (!empty($config->get('passwordless_add_css'))) {
$form['passwordless_help_link']['#attached'] = ['library' => ['passwordless/passwordless.login']];
}
}
return $form;
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this->config('passwordless.settings');
$langcode = $this->languageManager->getCurrentLanguage()->getId();
$redirect = 'user.page';
$account = \Drupal::entityTypeManager()
->getStorage('user')
->loadByProperties(['mail' => $form_state->getValue('name')]);
$account = $account ? reset($account) : NULL;
if ($account) {
// Mail one-time login URL and instructions using current language.
$mail = _user_mail_notify('password_reset', $account, $langcode);
if (!empty($mail)) {
$this->logger('passwordless')
->notice('Login link mailed to %name at %email.', [
'%name' => $account->getDisplayName(),
'%email' => $account->getEmail(),
]);
}
} else {
$this->logger('user')
->info('Passwordless-login form was submitted with an unknown or inactive account: %name.', [
'%name' => $form_state->getValue('name'),
]);
}
$this->messenger()
->addStatus($this->t('If %identifier is a valid account, an email will be sent with a login link.', [
'%identifier' => $form_state->getValue('name'),
]));
if (!empty($config->get('passwordless_toggle_sent_page'))) {
$redirect = 'passwordless.user_login_sent';
}
$form_state->setRedirect($redirect);
}
}
Patch attached
Sory, this patch is incompatible with new version of module.
I attach new patch for 2.0.0-beta2
hirvinen, thanks for this gigantic work, but patch #7 is not compatible with current version of passwordless.
ben.hamelin → credited vasyok → .
My TEXT field that has a character limit have default characters limit 255. End i import to this field from XML sources. But from ical - no.
Sorry ben.hamelin, maybe i write something wrong.
Now i catch only errors with date fields.
My ics sourse file:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-////NONSGML kigkonsult.se iCalcreator 2.26.9//
BEGIN:VEVENT
DTSTART:20240331T021300
SUMMARY:Title 1
END:VEVENT
BEGIN:VEVENT
DTSTART:20240331T021400
SUMMARY:Title 2
END:VEVENT
END:VCALENDAR
Mappings:
Titles fields imported well but fields from DTSTART became
1711851180
and
1711851240
Because if name of the source have same name as one of Predifined values - it's not imported correctly.
Hi ben.hamelin
Yes,
If the feed source has name test, then this field stay in Ical option group.
But what id if the feed source has name LOCATION,
how to place it outside Predifined option group?
https://www.drupal.org/files/issues/2024-07-31/predifined.png →
From /admin/config/development/configuration/full/export you can export full configuration with all settings.
If you need export only user field, then here
/admin/config/development/configuration/single/export
Configuration type: Field
Configuration name: user.user.field_NAME_OF_YOUR_FIELD
and
Configuration type: Field storage
Configuration name: user.field_NAME_OF_YOUR_FIELD
You can add new fields here:
/admin/config/people/accounts/fields
Then here you can change fields order (also on registration form):
/admin/config/people/accounts/form-display
Ok, i did it without module.
Here is my workflow.
Text fields on node
I think, that it will works with date_recur fields.
View with hidden fields
Global: custom text field is rewritten in template views-view-field--NAME-OF-VIEW--block-1--nothing.html.twig:
{{ attach_library('symnews/fullcalendar') }}
<script>
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
// Function to calculate duration from DTSTART and DTEND
function calculateDuration(dtstart, dtend) {
var start = new Date(dtstart);
var end = new Date(dtend);
var durationInMs = end - start;
var durationInHours = durationInMs / (1000 * 60 * 60);
return durationInHours + ':00';
}
// Event details
var dtstart = '{{ view.field.field_start_text_field.original_value }}';
var dtend = '{{ view.field.field_end_text_field.original_value }}';
var duration = calculateDuration(dtstart, dtend);
var rrule = '{{ view.field.field_rrule_text_field.original_value }}';
var calendarConfig = {
firstDay: 1,
headerToolbar: {
right: 'dayGridMonth,timeGridWeek,timeGridDay',
center: 'title',
left: 'prevYear,prev,next,nextYear'
},
initialDate: dtstart,
events: []
};
if (rrule) {
var rruleString = 'DTSTART:' + dtstart + '\nRRULE:' + rrule;
calendarConfig.events.push({
title: '{{ view.field.title.original_value }}',
rrule: rruleString,
duration: duration // Use calculated duration
});
} else {
calendarConfig.events.push({
title: '{{ view.field.title.original_value }}',
start: dtstart,
end: dtend,
duration: duration // Use calculated duration
});
}
var calendar = new FullCalendar.Calendar(calendarEl, calendarConfig);
calendar.render();
});
</script>
<div id='calendar'></div>
MYTHEME.libraries.yml:
fullcalendar:
version: 1.x
header: true
js:
https://unpkg.com/fullcalendar@5.11.5/main.min.js: {}
https://cdn.jsdelivr.net/npm/rrule@2.6.4/dist/es5/rrule.min.js: {}
https://cdn.jsdelivr.net/npm/@fullcalendar/rrule@5.11.5/main.global.min.js: {}
css:
theme:
https://unpkg.com/fullcalendar@5.11.5/main.min.css: {}
Result here:
https://planetallgaeu.de/timely-import/kurkonzert-im-kurpark-bad-wurzach
if node will not exist - it looks like:
Text field as the date field is not supported?
But on the module page it is written:
You need a long plain text field to present the RRULE string for recurring logic of an event. For example,
DTSTART:20200302T100000Z
EXDATE:20200309T100000Z
EXDATE:20200311T100000Z
RRULE:FREQ=WEEKLY;UNTIL=20200331T120000Z;INTERVAL=1;WKST=MO;BYDAY=MO,WE
Why EXDATE is writen twice?
Ok, i provide new long plain text field vith value from readme...
...and rebuild view
And… Nothing… Again.
Thanks @itmaybejj!
#7 is working for me.
Thanks, MegaChriz! Solved.
Seems like XPath for title should be
properties/summary/text
🤔
Hello gues!
Can you say: its possible to import date_recur values with feeds_ical?
With last patch from here https://www.drupal.org/project/date_recur/issues/3050030 ✨ Add date_recur Feeds Target Needs work i can import from SCV files, but when i use feeds_ical there is some touble: value from RRULE - UNTIL come to Start date.
#16 Patch Failed to Apply
So i add some correction, but it's doesn't work correct (for me)
Recurring dates field settings
Feeds mapping
Values in source
DTSTART:20240804T180000
DTEND:20240804T210000
RRULE:FREQ=WEEKLY;UNTIL=20241006T210000Z;INTERVAL=1;WKST=MO;BYDAY=SA,SU
But after import in result UNTIL value come to Start date and End date.
Why it's happened?
So need to use patches #5 and #13?
And what library is compatible with this patched version?
https://github.com/fullcalendar/fullcalendar
I testeted with 4,5,6 version but non of them contain fullcalendar.min.js
Fid Fullcalendar Block suport views?
patch #10 is not compatible with current version 5.1.14
In one tab of browser run update.php
When it stopped admin/reports/dblog/confirm confirm removing of all event logs, then reload tab with update.php.
Or uninstall dblog module while your site is updating.
"It all just worked and I NEVER have to worry about updating it."
Updating on Wordpress just worked? Automatic update on Wordpress is turned OFF by default.
Look how many topicks on wordpress comunity site about updating https://wordpress.org/search/update/.
Sory, don't expect for miracles. Everyone hwo own big wordpress site have trobles with updating.
Can you add on Wordpress new content types, fields, categories? Can you create lists of this types (i talk about views)? Yes. But with Drupal its match more easy. Without programming and paid modules.
"It wanted me to learn all sorts of stuff like Composer and have special environments on my server."
Composer require knowledge only 3 commands to use: require, update and remove.
What environment? PHP, MySQL and... what else?
Please delete this topic.
My mistake. Text format was not allowed for text field.
Hello drupalers!
I try to install PECL uploadprogress library on server with Ubuntu 24 and nginx (no apach).
So i run
apt-get install php8.2-uploadprogress
and it write:
NOTICE: You are seeing this message because you have apache2 package installed.
Processing triggers for php8.3-cli (8.3.8-2+ubuntu24.04.1+deb.sury.org+1) ...
Processing triggers for libapache2-mod-php8.3 (8.3.8-2+ubuntu24.04.1+deb.sury.org+1) ...
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
invoke-rc.d: initscript apache2, action "restart" failed.
× apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-06-18 17:36:01 MSK; 14ms ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 10867 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 26ms
Jun 18 17:36:01 my-server.com systemd[1]: Starting apache2.service - The Apache HTTP Server...
Jun 18 17:36:01 my-server.com apachectl[10869]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Jun 18 17:36:01 my-server.com apachectl[10869]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Jun 18 17:36:01 my-server.com apachectl[10869]: no listening sockets available, shutting down
Jun 18 17:36:01 my-server.com apachectl[10869]: AH00015: Unable to open logs
Jun 18 17:36:01 my-server.com systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jun 18 17:36:01 my-server.com systemd[1]: apache2.service: Failed with result 'exit-code'.
Jun 18 17:36:01 my-server.com systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
whats wrong?
After that in status report i see:
Upload progress Enabled (PECL uploadprogress)
Thanx for the patch, but i don't understand: why it shown incorrect time?
I set 2 PM on node, but on calendar I see 10:07 AM (current time).
Steps for reproduce.
Field value on node.
Calendar view
Views format settings
Result with incorrect time.
Hello guess.
How can you think its really possible to place exported file in file system?
I choose filename
Change export method to Batch
But nothing happen. This Initializing line doesn't grow.
With audacious player its happen in 100%.
But if I visit in one tab to YuoTube, after that in another tab to drupal.org - it can hapean to, but not in 100%.
Tested with
https://www.drupal.org/project/ckeditor/releases/1.0.2 →
.
Works.
Thanks, mortona2k!
change
"repositories": [{
"type": "composer",
"url": "https://packages.drupal.org/8"
}],
to
"repositories": [{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "package",
"package": {
"name": "sachinchoolur/lightgallery",
"version": "1.2.21",
"type": "drupal-library",
"source": {
"url": "https://github.com/sachinchoolur/lightGallery",
"type": "git",
"reference": "1.2.21"
}
}
}
],
then command
composer require 'drupal/lightgallery:^1.4'
work properly
VasyOK → created an issue.
Thanx @jrockowitz! You righ!
Hi guess.
Today patch can not be applied.
In current version there is no /src/Controller/SocialAuthController.php file.
@dineshkumarbollu
patch applyed with Composer
$("#" + spb_popup_id + " .block-olivero-content-modal").
i think it should be work not only in olivero theme
Dublicate?
https://www.drupal.org/project/simple_popup_blocks/issues/3381678
🐛
Popup is not display when using delay
Needs review
Thanx, solene_ggd!
Patch worked.
1. Where
/admin/structure/webform/config
/admin/structure/webform/manage/contact/handlers - every email edit
2. Why
I don't wanna see CKEditor anywhere outside content editing.
Editor make unusable
tags in webform messages body. Also there is no choosing text format for messages text areas.
Дякую @proweb.ua .
Якщо добавити у профіль покупця поле типу Novaposhta,
то при оформлені пише:
A valid shipping method must be selected in order to check out.
Відділення НП по місто знаходить, одразу з тим пише що не може відправити на адресу.
Або що "Поле Warehouse є обов'язковим" (хоча відділення обране).
Чому так?
Тому я видалив поле з профілю та поставив у налаштуваннях профілю Profiles of this type includes Novaposhta address.
На жаль після вибору відділення пише.
There are no shipping rates available for this address.
Якщо трохи "попинати" поля вводу даних вартість доставки все ж видає. Але до цього не кожна людина додумається.
Що робити?
Схоже я трохи поспішив з деферамбами. Чисто технічно патч працює. Тобто вибір Область - місто у наявності. Але будь-які дії з налаштуванням поля Нової пошти призводять до unecpected error. Навіть інсталювання пропатченого модуля пише помилку у журнал.
Тип php
Drupal\Core\Config\UnsupportedDataTypeConfigException: Invalid data type in config commerce_novaposhta.schema, found in file modules/contrib/commerce_novaposhta/config/schema/commerce_novaposhta.schema.yml: yaml_parse(): parsing error encountered during parsing: did not find expected key (line 30, column 5), context while parsing a block mapping (line 24, column 3) in Drupal\Core\Config\FileStorage->read() (line 118 of /var/www/html/web/core/lib/Drupal/Core/Config/FileStorage.php).
dunot, попреше, дякую за цю неймовірну роботу 🤝.
Без патча вибір міста банально вішає браузер.
Взяв на себе сміливість трохи підкорегувати патч.
Сподіваюся автори внесуть цей код до наступнойї версії.
Доброго дня.
Наврядчи це все буде хтось читати англійською мовою. Якщо дізнаюся відповідь - можу написати і англійською.
Тож щодо налаштувань модуля.
Якщо вибрати Стандартна ставка - розрахунок оплати йде.
Нажаль вибору відділення або поштомату немає. Або я щось не так роболю.
Якщо вибрати тип тарифа Стандартна ставка ...
...пише There are no shipping rates available for this address.
Що робити?
😤
Ok, I find answer.
Need to edit Order type and check Enable shipping for this order type and Checkout flow: Shipping
patch #15 applied, but today I don't feel difference.
Google page speed points after patching not changed.
#11 don't work with Drupal 10.2 :(
In my preview patch admin toolbar shows all menu items while appearing. Problem was with core/modules/toolbar/js/toolbar.anti-flicker.js. So I unset this file.
New pathc for
https://www.drupal.org/project/toolbar_themes/releases/8.x-1.0-alpha4 →
attached.
Patched module for D10 attached to. Permission still not exist but module works. Maybe someone test it?
I don know: leave this
toolbar_themes.libraries.yml:
dependencies:
- core/jquery
or change with dependence from
https://www.drupal.org/project/jquery_ui →
?
Yes, we have tons of suggestions!
Nobody know about this forum stage exсept Drupal fans.
There is no simple link to this stage on drupal.org. Even on main menu link to /forum was removed.
Today to get here you need to click Community(not clickable) -> About the Community -> Forum (middle of the page) -> Paid Drupal services.
Thanx, @Anybody, you right!
I add class "photoswipe-gallery" to view field - and galleries worked!
VasyOK → created an issue.
What module should I use to obtain Formatter: Rendered entity on views image field?
Ok, for example i have display mode for node
and it's work:
But same node on views doesn't have image field zoom. Other modules for image field - works.
Test view:
Image field settings:
Result (no image):
Sory it doesn't work.
If i place Rewrite plugin before Exploding - it write:
cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
Thanx, @sarwan_verma !
I make some changes to you code in this files:
- src/Form/ToolbarThemesSettingsForm.php
- templates/toolbar-themes--toolbar.html.twig
After patching module work with D10 but:
- I dont know how to make permission "Configure toolbar themes". Today it loose. Sorry, I have no ideas how to set it I just clickbuilder
- While appearing admin toolbar shows all menu items.
Sorry, I don't understand how to use Twig variables in wrappers.
I add to XML Items Wrapper
<offer id="{{ nid }}">
but it's dosn't work, result code stiil not catch variable:
Yes @abhiyanshu_rawat, you right!
Thanx!
Solution referensed from https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...
add function to mytheme.theme
function mytheme_css_alter(&$css, \Drupal\Core\Asset\AttachedAssetsInterface $assets, \Drupal\Core\Language\LanguageInterface $language) {
unset($css['modules/contrib/jquery_ui/assets/vendor/jquery.ui/themes/base/theme.css']);
unset($css['core/assets/vendor/jquery.ui/themes/base/theme.css']);
unset($css['modules/contrib/jquery_ui/assets/vendor/jquery.ui/themes/base/accordion.css']);
}
#6 patch doesn't work with Drupal10
Theanx, gues! Patch worked,
Maybe someone write how to add CSS class to table in properties window?
Thanx, Harlor!
I will test your job.
Sory abhiyanshu_rawat, it doesn't work.
smustgrave → credited VasyOK → .
as you wish
Thanks!
With 4.0 this containers are customizable in Style settings of every fieldset such as another views fields.
Wood be great if Customize field HTML and Customize field and label wrapper HTML sets to -None-
and Add default classes unchecked for new fieldsets.
Thanx, smustgrave!
With 4.0.x worked.