Drupal is up and running but how do I ...?

Drupal Tutorial: Creating Role Specific Drupal Registration Forms

I've created a new tutorial on how to create role-specific registration forms, though any post-registration tasks that need to be automated can be handled in this method:

Creating Role Specific Drupal Registration Forms

Create New Account button causes "DB Error: constraint violation"

Dear Drupal Community

I need your help with a Drupal DB Error. I want to know how to fix it without losing site data.

When an anonymous user clicks on the "Create new account" button (with Admin approval required), the following error results:

===============================================================
The website encountered an unexpected error. Try again later.

How can I create an automatic logo slider?

I have a content type 'Logo' with an image field.

Then I have a view which displays all logos.

I want to format this view so it shows the logos as an automatic scrolling slider, something like this:

https://elfsight.com/logo-showcase-widget/drupal/

I've tried Slick carousel, Views slideshow, Flexslider, jCarousel and they all just display like a gallery.

Converting View Exposed Filters (facets with bef) from Checkboxes to Select Elements While Maintaining Proper URL Parameters

I've been struggling for several days to display the same exposed filters (facets) as different form elements across two pages.

On the view's main page, the filters work correctly as checkboxes. However, on another page, I need to display them as select dropdowns to allow single selection.

What I've tried:

  1. Using hook_preprocess_views_exposed_form() - didn't work

  2. Using hook_form_alter() - partially worked but introduced URL parameter issues

Applying CSS Class to Images in Drupal 10?

I am using Drupal 10, CKEditor 5 and IMCE File Manager. In Drupal 7 you used to have an Advanced tab where you could assign CSS classes to the images.  I found the module Editor Advanced Link for links but cannot find anything similar to add a class to the IMG tags.   Anyone know of any modules that help bring back that Advanced tab for images where someone can add CSS classes to the images?

I know I can do it clicking SOURCE and hand coding it but trying to make it easier for the end user that does not know how to do that.

How to add free text search on title in Solr with Drupal? Facets vs exposed filters

Hey folks, I have a doubt.
I'm working on my first Solr search setup.

  • I have the server defined

  • I've exported the config.zip and loaded it in ddev

  • I've created taxonomy facets

  • The view is entity-based instead of fields and only has the status=true filter (to show only published content)

  • The facets are added as blocks (instead of exposed filters) and they work fine

Now I need to add free text search functionality for the title.

Pages

Subscribe with RSS Subscribe to RSS - Post installation