Stack Exchange - Drupal Answers
203 FOLLOWERS
Drupal Q&A is a question and answer site for Drupal developers and administrators.
Stack Exchange - Drupal Answers
3d ago
Following the scenario for appointment tool
In first step there is a calendar where user select the date.
In second step user selects the time for the date selected.
Remaining steps are contact form and confirmation.
Now the challenging part is - in the first step I need to called the API to get list of available dates and times. I'm planning to build custom form element for date and time selection separately, but the question is where to store email for settings, which I can retrieve for fetch date and time?
Also since single API call is providing both dates and time slots, I want to store ..read more
Stack Exchange - Drupal Answers
3d ago
I have install and configured https://www.drupal.org/project/cloudflare_stream module in Drupal 10. I have used "Field type" as "Cloudflare Video" for upload file field.
I haven't received any response to save after complete the file upload.
Video file is locating my LOCAL path only, not cloudflare streaming video path.
I am expecting the data "Video ID" , "Video URL" and "Video streaming URL".
How to display the cloudflare streaming video ..read more
Stack Exchange - Drupal Answers
3d ago
Hello and thank you for helping me! I'm new to Drupal, working on someone else's site.
Background:
The site was successfully migrated from Drupal 7 to 9.5.9.
Quiz 6.0.0-alpha7 is installed.
Multiple choice and true/false answers modules are installed.
All the other quizzes are working.
The previous dev added a quiz and its questions. It was working for awhile, I believe. It has had users who took it, which limits how much I can change it.
I was asked to edit the text in the question and answers. I created a new revision for this, hoping it would solve my inability to take the quiz ..read more
Stack Exchange - Drupal Answers
3d ago
I have issue I can't solve it and I don't know the reason of it
I already have page in drupal have status published and when I change status to draft still page not change status to draft it's seen published
how can I solve this problem and thanks ..read more
Stack Exchange - Drupal Answers
3d ago
In my form settings (/admin/structure/webform/manage/testing/settings/form) I have:
Form preview settings > Enable preview page > Optional
to be able to display the preview page, which I can access from the last step on the form by clicking the "preview" button.
The preview page is also contemplated on the "progress line" as an additional step, and this is what I need to avoid.
I mean, right now, if the form has 6 steps, it shows 7 on the progress line because of the preview page, if I disable the preview page, the step disappears, but the preview page is no longer available...
Any ideas ..read more
Stack Exchange - Drupal Answers
5d ago
I am trying to set up a workflow for a Drupal site and I want to plan for ongoing updates and some development. It is a Drupal 10 site, and I am using PHPStorm. I have three versions of the site: Devel, where I test out changes, Deploy where I confirm it all locally, and Production, on a shared remote server.
My plan is to try out code on devel, upload it to deploy and then upload to production. I will also download user files and database changes from production down to devel to keep everything matched up.
I set this up on PHPStorm, and I can use PHPStorm's sync feature to upload the code cha ..read more
Stack Exchange - Drupal Answers
5d ago
How I can convert gif (animation images) to webm? I'm add webm format to ImageMagic but after create image style with convert to webm I have error:
ImageMagick error 1: convert-im6.q16: delegate failed `'ffmpeg' -nostdin -v -1 -i '%M%%d.pam' -plays %I '%u.%m' 2> '%u'' @ error/delegate.c/InvokeDelegate/1966. [command: convert [convert] [core/modules/image/sample.png] [-quality] [95] [WEBM:/var/www/html/web/sites/default/files/styles/w700gif/public/core/modules/image/sample.png.webm ..read more
Stack Exchange - Drupal Answers
5d ago
Although Drupal is designed to be styled using css files and configuration in the *.libraries.yml files, the CKEditor 5 module defines some styles in a Java Script file which:
Is included at the end of the page in Drupal so it overrides all styles defined in css files which are included in header.
Uses css variables to define various properties for styling purposes.
These variables are supposed to be modified as described in the CKEditor 5 Theme customization documentation. However, when a css file with custom values is included in Drupal, it's placed in the header which means the js overrid ..read more
Stack Exchange - Drupal Answers
5d ago
We have a content type which has a customized template. In general, the body content of these nodes is short -- one to two sentences at most.
In some cases, however, the body content is a paragraph or more.
If the body content is shorter than 200 words, we would like to display the body field as-is.
If the body content is longer than 200 words, we would like to display the summary with a customized "read more" link.
Besides digging into the content array and counting words in the template, is there a graceful way to do this with view modes or field templates?
At the moment our clunky solution ..read more
Stack Exchange - Drupal Answers
1w ago
I am stucked with this issue that correct price is not loaded based on product variation setup in drupal 9.5.
Here is my product variation.
And here is my marketplace product price and variation displayed
Please help me with this issue or any kind of hint so i can resolve it ..read more