Drupal asks for keycloak secret. What is that, where do you get it?
Turns out, our client needs to have Client authentication enabled:
then you will have a new tab credentials where you will see the client secret.
Turns out, our client needs to have Client authentication enabled:
then you will have a new tab credentials where you will see the client secret.
The issue stems from the preview being in an undefined style.
1. Go to configuration -> image styles and review the styles available. I have a style called "200x200 thumb".
2. After adding an image field to a content type, go to manage form display, expand the display of the image, and specify an existing style from step 1 as the preview style.
After taking these steps, the page for adding/editing this content type should render correctly.
Via chatgpt.
An easier example is to set the default title first:
Handling configuration settings in custom modules involves using the Configuration API provided by Drupal. This API allows you to define, manage, and access configuration settings in a structured and consistent way. Here’s how I approach it and an example of using the Configuration API in Drupal 10/11:
Using the Configuration API
Fixing this took me years... I can't believe how long it took. The answers on stack overflow did not help.
The error was due to a mismatching php configuration for running in the shell ( /etc/php/8.1/cli/php.ini ) and in apache (/etc/php/8.1/apache2/php.ini ).
Specifically, I had to enable short tags for the shell:
Based on this excellent stackoverflow answer.
$bid = ??? // Get the block id through config, SQL or some other means
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->
getViewBuilder('block_content')->view($block);
return $render;.
From drupalsun.
Cron tasks are defined by implementing the hook_cron hook in your module, just like in previous Drupal versions.
/**
* Implements hook_cron().
**/
function example_cron() {
// Do something here.
}And that's pretty much it. Rebuild cache and next time cron runs your hook will be called and executed.
Hello everyone! I have a one-off project in Drupal, that I'd like to hire for. The detailed description is available here: https://redmine.wasya.co/issues/3491
If you are interested in talking about this task, or sending me your resume and credentials, please use this contact form: https://wasya.co/contact-us
I recently had to justify the amount of effort that software development takes. Someone unfamiliar with the process thought that software development is easy, or that it doesnt take much time. They thought, for example, that an advanced reporting app can get pdf export capability if they just said to the development team, "implement pdf export." Literally, they thought that writing a single line of text like that in a specification document would result in the organization gaining that functionality.